From 940ed4f66a7e901ac27e3e31850b9aac002b5cd3 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jan 22 2016 08:29:50 +0000 Subject: tidied up the front page of a repo also added a view to show list the branches --- diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html index 91c174e..388c048 100644 --- a/pagure/templates/repo_info.html +++ b/pagure/templates/repo_info.html @@ -178,12 +178,8 @@ git push -u origin master {% endif %}
- {%- if repo.url %} -

Project Website

-

{{ repo.url }}

- {% endif %} -

Admins

-

+

Owners
+ -
- -
-
- GIT URLs -
-
-
-
-
SSH
- -
-
-
-
GIT
- -
+
Branches
+
+ {% for branch in branches %} +
+ {% if not branchname == branch %} + + {% endif %} + {{branch}} + {% if not branchname == branch %} + + {% endif %} +
+ {% endfor %}
- {% if authenticated and repo_admin %} -
- {% if config['DOC_APP_URL'] and repo and repo.settings.get('project_documentation', True) %} -

Docs

-
-
-
SSH
- -
+
Source GIT URLs{% if authenticated and repo_admin %} + {%endif%}
+
+
+
+
SSH
+
-
-
-
GIT
- -
+
+
+
+
GIT
+
- {%endif%} - {% if config.get('ENABLE_TICKETS', True) %} -

Tickets

-
-
-
SSH
- +
+ {% if authenticated and repo_admin %} +
+ {% if config['DOC_APP_URL'] and repo and repo.settings.get('project_documentation', True) %} +
Docs GIT URLs
+
+
+
SSH
+ +
-
-
-
-
GIT
- +
+
+
GIT
+ +
-
- {%endif%} -

Requests

-
-
-
SSH
- + {%endif%} + {% if config.get('ENABLE_TICKETS', True) %} +
Issues GIT URLs
+
+
+
SSH
+ +
-
-
-
-
GIT
- +
+
+
GIT
+ +
+
+ {%endif%} +
Pull Requests GIT URLs
+
+
+
SSH
+ +
+
+
+
+
GIT
+ +
-
- - {% endif %} + {% endif %} +
diff --git a/pagure/templates/repo_master.html b/pagure/templates/repo_master.html index 2c99e4b..c7b5c03 100644 --- a/pagure/templates/repo_master.html +++ b/pagure/templates/repo_master.html @@ -66,8 +66,9 @@
{% endif %} -
- {% if repo.description %}{{ repo.description | markdown |safe }}{% else %}-{% endif -%} +
+ {% if repo.description %}{{ repo.description | safe }}{% else %}-{% endif -%} + {%- if repo.url %}  |  {{ repo.url }}{% endif %}