From 8550cbc710744eb11f9b2a9dc4599a9880d17f40 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 6 Nov 2020 12:02:25 -0800 Subject: [PATCH] Move user header into snippets --- bookwyrm/templates/followers.html | 2 +- bookwyrm/templates/following.html | 2 +- bookwyrm/templates/shelf.html | 2 +- bookwyrm/templates/{ => snippets}/user_header.html | 0 bookwyrm/templates/user.html | 4 +--- bookwyrm/templates/user_shelves.html | 2 +- 6 files changed, 5 insertions(+), 7 deletions(-) rename bookwyrm/templates/{ => snippets}/user_header.html (100%) diff --git a/bookwyrm/templates/followers.html b/bookwyrm/templates/followers.html index 09457408..a5fdfd82 100644 --- a/bookwyrm/templates/followers.html +++ b/bookwyrm/templates/followers.html @@ -1,7 +1,7 @@ {% extends 'layout.html' %} {% load fr_display %} {% block content %} -{% include 'user_header.html' with user=user %} +{% include 'snippets/user_header.html' with user=user %}

Followers

diff --git a/bookwyrm/templates/following.html b/bookwyrm/templates/following.html index 9131adea..c3bf976a 100644 --- a/bookwyrm/templates/following.html +++ b/bookwyrm/templates/following.html @@ -1,7 +1,7 @@ {% extends 'layout.html' %} {% load fr_display %} {% block content %} -{% include 'user_header.html' %} +{% include 'snippets/user_header.html' with user=user %}

Following

diff --git a/bookwyrm/templates/shelf.html b/bookwyrm/templates/shelf.html index 96279543..8e6cc9f8 100644 --- a/bookwyrm/templates/shelf.html +++ b/bookwyrm/templates/shelf.html @@ -1,7 +1,7 @@ {% extends 'layout.html' %} {% load fr_display %} {% block content %} -{% include 'user_header.html' with user=user %} +{% include 'snippets/user_header.html' with user=user %}
diff --git a/bookwyrm/templates/user_header.html b/bookwyrm/templates/snippets/user_header.html similarity index 100% rename from bookwyrm/templates/user_header.html rename to bookwyrm/templates/snippets/user_header.html diff --git a/bookwyrm/templates/user.html b/bookwyrm/templates/user.html index 3e409486..b6d808c8 100644 --- a/bookwyrm/templates/user.html +++ b/bookwyrm/templates/user.html @@ -1,9 +1,7 @@ {% extends 'layout.html' %} {% block content %} -
- {% include 'user_header.html' with user=user %} -
+{% include 'snippets/user_header.html' with user=user %}

Shelves

diff --git a/bookwyrm/templates/user_shelves.html b/bookwyrm/templates/user_shelves.html index af4f9d23..acda58ca 100644 --- a/bookwyrm/templates/user_shelves.html +++ b/bookwyrm/templates/user_shelves.html @@ -1,7 +1,7 @@ {% extends 'layout.html' %} {% load fr_display %} {% block content %} -{% include 'user_header.html' with user=user %} +{% include 'snippets/user_header.html' with user=user %}