diff --git a/templates/base.html b/templates/base.html index 2c20be8..520b737 100644 --- a/templates/base.html +++ b/templates/base.html @@ -23,13 +23,11 @@ v{{ env!("CARGO_PKG_VERSION") }} settings

+ {% block subscriptions %}{% endblock %} {% block search %}{% endblock %} code - {% block sub_list %} - {% endblock %} - {% block body %}
diff --git a/templates/post.html b/templates/post.html index 0d8596b..619005e 100644 --- a/templates/post.html +++ b/templates/post.html @@ -13,7 +13,7 @@ {% endblock %} -{% block sub_list %} +{% block subscriptions %} {% call utils::sub_list(post.community.as_str()) %} {% endblock %} diff --git a/templates/search.html b/templates/search.html index c244fc3..37edfc6 100644 --- a/templates/search.html +++ b/templates/search.html @@ -3,7 +3,7 @@ {% block title %}Libreddit: search results - {{ params.q }}{% endblock %} -{% block sub_list %} +{% block subscriptions %} {% call utils::sub_list("") %} {% endblock %} diff --git a/templates/settings.html b/templates/settings.html index 3fe6910..e0e3bf3 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -7,7 +7,7 @@ {% call utils::search("".to_owned(), "", "") %} {% endblock %} -{% block sub_list %} +{% block subscriptions %} {% call utils::sub_list("") %} {% endblock %} diff --git a/templates/subreddit.html b/templates/subreddit.html index 2617b43..e3d550d 100644 --- a/templates/subreddit.html +++ b/templates/subreddit.html @@ -11,7 +11,7 @@ {% call utils::search(["/r/", sub.name.as_str()].concat(), "") %} {% endblock %} -{% block sub_list %} +{% block subscriptions %} {% call utils::sub_list(sub.name.as_str()) %} {% endblock %} diff --git a/templates/user.html b/templates/user.html index fc7635f..c19a3ca 100644 --- a/templates/user.html +++ b/templates/user.html @@ -7,7 +7,7 @@ {% block title %}{{ user.name.replace("u/", "") }} (u/{{ user.name }}) - Libreddit{% endblock %} -{% block sub_list %} +{% block subscriptions %} {% call utils::sub_list("") %} {% endblock %} diff --git a/templates/utils.html b/templates/utils.html index cbba4ab..f8a0318 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -42,12 +42,13 @@ {% macro sub_list(current) -%} {% if prefs.subs.len() > 0 %} -
+
+ subscribed
{% for sub in prefs.subs %} {{ sub }} {% endfor %}
-
+ {% endif %} {%- endmacro %} diff --git a/templates/wiki.html b/templates/wiki.html index 0c946d8..882f228 100644 --- a/templates/wiki.html +++ b/templates/wiki.html @@ -10,7 +10,7 @@ {% call utils::search(["/r/", sub.as_str()].concat(), "") %} {% endblock %} -{% block sub_list %} +{% block subscriptions %} {% call utils::sub_list(sub.as_str()) %} {% endblock %}