From a61046d7d08bfb345b4adf40e1c46383172c790e Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Fri, 30 Mar 2018 11:01:08 +0530 Subject: [PATCH] snapshots: Move manual page link to the index page Signed-off-by: Joseph Nuthalapati Reviewed-by: James Valleroy --- .../snapshot/templates/snapshot_manage.html | 138 +++++++++--------- plinth/modules/snapshot/views.py | 2 +- 2 files changed, 71 insertions(+), 69 deletions(-) diff --git a/plinth/modules/snapshot/templates/snapshot_manage.html b/plinth/modules/snapshot/templates/snapshot_manage.html index 573fdfb42..612c6a5e7 100644 --- a/plinth/modules/snapshot/templates/snapshot_manage.html +++ b/plinth/modules/snapshot/templates/snapshot_manage.html @@ -21,83 +21,85 @@ {% load bootstrap %} {% load i18n %} -{% block configuration %} -

-

-
- {% csrf_token %} -
- +{% block content %} + {% block configuration %} +

+

+ + {% csrf_token %} +
+ +
+ + - - -
-

+

-
-
- - - - - - - - - - {% for snapshot in snapshots %} - {% if snapshot.description != "current" %} - - - - - - + + + {% endif %} + {% endfor %} + +
{% trans "Number" %}{% trans "Date" %}{% trans "Description" %}{% trans "Rollback" %}{% trans "Delete" %}
- {{ snapshot.number }} - {% if snapshot.is_default %} - - {% trans "active" %} - - {% endif %} - {{ snapshot.date }}{{ snapshot.description }} - - - - - {% if not snapshot.is_default %} - +
+ + + + + + + + + + {% for snapshot in snapshots %} + {% if snapshot.description != "current" %} + + + + + - - {% endif %} - {% endfor %} - -
{% trans "Number" %}{% trans "Date" %}{% trans "Description" %}{% trans "Rollback" %}{% trans "Delete" %}
+ {{ snapshot.number }} + {% if snapshot.is_default %} + + {% trans "active" %} + + {% endif %} + {{ snapshot.date }}{{ snapshot.description }} + - - {% endif %} -
+
+ {% if not snapshot.is_default %} + + + + {% endif %} +
+
-
+ {% endblock %} {% endblock %} diff --git a/plinth/modules/snapshot/views.py b/plinth/modules/snapshot/views.py index e8a3c661f..4be7f4b45 100644 --- a/plinth/modules/snapshot/views.py +++ b/plinth/modules/snapshot/views.py @@ -60,6 +60,7 @@ def index(request): request, 'snapshot.html', { 'title': snapshot_module.name, 'description': snapshot_module.description, + 'manual_page': snapshot_module.manual_page, 'subsubmenu': subsubmenu, 'form': form }) @@ -82,7 +83,6 @@ def manage(request): 'snapshots': snapshots, 'has_deletable_snapshots': has_deletable_snapshots, 'subsubmenu': subsubmenu, - 'manual_page': snapshot_module.manual_page, })