From a77f6e9d27f98bc36d0911ce58c109f4a18bd835 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 12 Jan 2018 12:43:03 +0100 Subject: Move post actions to partial. --- templates/post_actions.html | 5 +++++ templates/post_teaser.html | 6 +----- templates/show_post.html | 10 +++++----- 3 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 templates/post_actions.html diff --git a/templates/post_actions.html b/templates/post_actions.html new file mode 100644 index 0000000..acc47d5 --- /dev/null +++ b/templates/post_actions.html @@ -0,0 +1,5 @@ +
+ Edit | + Publish | + Delete +
diff --git a/templates/post_teaser.html b/templates/post_teaser.html index 482cf73..4d412ba 100644 --- a/templates/post_teaser.html +++ b/templates/post_teaser.html @@ -1,11 +1,7 @@

{{ .title }}

-
- Edit | - Publish | - Delete -
+ {{> post_actions.html }}
{{ .body }} diff --git a/templates/show_post.html b/templates/show_post.html index 5a7d806..31c2ca3 100644 --- a/templates/show_post.html +++ b/templates/show_post.html @@ -5,15 +5,15 @@ -- cgit v1.2.3