From e2aa3c22299b04d6535bc4ec1e377183c3f1f95b Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 17 Dec 2020 16:09:44 -0800 Subject: [PATCH] gitweb: Use common styling for repo list Signed-off-by: Sunil Mohan Adapa Reviewed-by: Veiko Aasa --- .../gitweb/templates/gitweb_configure.html | 71 ++++++++----------- 1 file changed, 28 insertions(+), 43 deletions(-) diff --git a/plinth/modules/gitweb/templates/gitweb_configure.html b/plinth/modules/gitweb/templates/gitweb_configure.html index 4e4b23313..ec0922adb 100644 --- a/plinth/modules/gitweb/templates/gitweb_configure.html +++ b/plinth/modules/gitweb/templates/gitweb_configure.html @@ -7,24 +7,6 @@ {% load i18n %} {% load static %} -{% block page_head %} - -{% endblock %} - {% block configuration %} {{ block.super }} @@ -43,37 +25,40 @@ {% if not repos %}

{% trans 'No repositories available.' %}

{% else %} -
+
{% for repo in repos %} -
- - - +
+ {% if 'clone_progress' in repo %} + {{ repo.name }} + {% else %} + + {{ repo.name }} + + {% endif %} - + {% trans 'Cloning…' %} {{ repo.clone_progress }}% + + {% endif %} + + {% if repo.access == 'private' %} + + {% endif %} + + - {% if repo.access == 'private' %} - - {% endif %} - - {% if 'clone_progress' in repo %} - - {% trans 'Cloning…' %} {{ repo.clone_progress }}% - - {{ repo.name }} - {% else %} - - {{ repo.name }} - - {% endif %} + + +
{% endfor %}