From f5815915217ab217d4d1aa5db592d24c2a2744a9 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 19 Oct 2019 15:29:32 -0700 Subject: [PATCH] gitweb: Minor visual changes to templates - Remove cancel button in favor of back button. - In create/edit form, make the form full width to make it consistent with other forms. The styling for all the forms can be changed together, if desired. - Remove dead HTML code outside block context in inherited template. - Add missing 'list-group' parent for repository list as suggested by bootstrap. Signed-off-by: Sunil Mohan Adapa --- .../gitweb/templates/gitweb_configure.html | 47 ++++++++++--------- .../gitweb/templates/gitweb_create_edit.html | 4 +- .../gitweb/templates/gitweb_delete.html | 3 -- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/plinth/modules/gitweb/templates/gitweb_configure.html b/plinth/modules/gitweb/templates/gitweb_configure.html index d48780a62..84b615f33 100644 --- a/plinth/modules/gitweb/templates/gitweb_configure.html +++ b/plinth/modules/gitweb/templates/gitweb_configure.html @@ -44,8 +44,6 @@ {% endblock %} -

{{ title }}

- {% block configuration %} {{ block.super }} @@ -56,30 +54,35 @@ {% if not repos %}

{% trans 'No repositories available.' %}

{% else %} - {% for repo in repos %} -
- - - - - - +
+ {% for repo in repos %} +
+ + + + + + + + {% if repo.access == 'private' %} - + {% endif %} - - {{ repo.name }} - -
- {% endfor %} + + + {{ repo.name }} + +
+ {% endfor %} +
{% endif %} - {% endblock %} diff --git a/plinth/modules/gitweb/templates/gitweb_create_edit.html b/plinth/modules/gitweb/templates/gitweb_create_edit.html index b251e8ab3..9af6cb3af 100644 --- a/plinth/modules/gitweb/templates/gitweb_create_edit.html +++ b/plinth/modules/gitweb/templates/gitweb_create_edit.html @@ -25,7 +25,7 @@ {% block content %}

{{ title }}

-
+
{% csrf_token %} @@ -34,5 +34,5 @@
-
+ {% endblock %} diff --git a/plinth/modules/gitweb/templates/gitweb_delete.html b/plinth/modules/gitweb/templates/gitweb_delete.html index c6d138e8b..b02e121bf 100644 --- a/plinth/modules/gitweb/templates/gitweb_delete.html +++ b/plinth/modules/gitweb/templates/gitweb_delete.html @@ -40,9 +40,6 @@ - - {% trans "Cancel" %} {% endblock %}