From 4901f10048196289cb76822e89330ad3ce82ee27 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 30 Jun 2020 14:00:30 +0200 Subject: minor fixes for the templates. --- newspipe/templates/admin/create_user.html | 5 +--- newspipe/templates/admin/dashboard.html | 29 ++---------------------- newspipe/templates/edit_category.html | 7 +----- newspipe/templates/feed_list.html | 13 ----------- newspipe/templates/feed_list_per_categories.html | 13 ----------- 5 files changed, 4 insertions(+), 63 deletions(-) diff --git a/newspipe/templates/admin/create_user.html b/newspipe/templates/admin/create_user.html index 04d9d631..2cfe4518 100644 --- a/newspipe/templates/admin/create_user.html +++ b/newspipe/templates/admin/create_user.html @@ -1,7 +1,4 @@ {% extends "layout.html" %} -{% block head%} -{{super()}} -{% endblock %} {% block content %}

{{ message | safe }}

@@ -15,7 +12,7 @@ {{ form.password(class_="form-control") }} {% for error in form.password.errors %} {{ error }}
{% endfor %} {{ form.automatic_crawling.label }} - {{ form.automatic_crawling(class_="form-control") }} {% for error in form.automatic_crawling.errors %} {{ error }}
{% endfor %} + {{ form.automatic_crawling(class_="form-check-input") }} {% for error in form.automatic_crawling.errors %} {{ error }}
{% endfor %}
{{ form.submit(class_="btn btn-primary") }} diff --git a/newspipe/templates/admin/dashboard.html b/newspipe/templates/admin/dashboard.html index 8bcc2db0..db56be25 100644 --- a/newspipe/templates/admin/dashboard.html +++ b/newspipe/templates/admin/dashboard.html @@ -1,7 +1,4 @@ {% extends "layout.html" %} -{% block head%} -{{super()}} -{% endblock %} {% block content %}

{{ _('Registered users') }}

@@ -17,7 +14,7 @@ {% for user in users %} - + {{ loop.index }} {% if user.is_public_profile %} @@ -33,12 +30,7 @@ {% if user.id != current_user.id %} - {% if user.is_active %} - - {% else %} - - {% endif %} - + {% if user.is_active %}{% else %}{% endif %} {% endif %} @@ -48,21 +40,4 @@ {{ _('Add a new user') }}
- {% endblock %} diff --git a/newspipe/templates/edit_category.html b/newspipe/templates/edit_category.html index 3971fdf5..befbd3b9 100644 --- a/newspipe/templates/edit_category.html +++ b/newspipe/templates/edit_category.html @@ -15,7 +15,7 @@
- {{ form.feeds(class_="selectpicker", **{'data-live-search':'true', 'data-width':'auto'}) }} + {{ form.feeds(class_="", **{'data-live-search':'true', 'data-width':'auto'}) }}
{% for error in form.feeds.errors %} {{ error }}
{% endfor %}
@@ -27,9 +27,4 @@
- {% endblock %} diff --git a/newspipe/templates/feed_list.html b/newspipe/templates/feed_list.html index 2ce7841f..56cec7c2 100644 --- a/newspipe/templates/feed_list.html +++ b/newspipe/templates/feed_list.html @@ -39,17 +39,4 @@ - {% endif %} diff --git a/newspipe/templates/feed_list_per_categories.html b/newspipe/templates/feed_list_per_categories.html index 34d10ddd..7d9ee231 100644 --- a/newspipe/templates/feed_list_per_categories.html +++ b/newspipe/templates/feed_list_per_categories.html @@ -37,16 +37,3 @@ - -- cgit