From 2639c44b8b1f18111d64c1dd0317004c2869d690 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 12 2017 19:45:51 +0000 Subject: Ship a custom repo_info template with information specific for dist-git This allows providing some Fedora specific information for this Fedora specific instance of pagure. Signed-off-by: Pierre-Yves Chibon --- diff --git a/MANIFEST.in b/MANIFEST.in index f3390ac..ac7dcd0 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,3 +2,4 @@ include LICENSE include README.rst include dist_git_auth.py include dist_git_auth_tests.py +recursive-include template * diff --git a/template/repo_info.html b/template/repo_info.html new file mode 100644 index 0000000..9b85c8d --- /dev/null +++ b/template/repo_info.html @@ -0,0 +1,434 @@ +{% extends "repo_master.html" %} + + +{% block title %}{{ select.capitalize() }} - {{ + repo.namespace + '/' if repo.namespace }}{{ repo.name }}{% endblock %} +{% set tag = "home" %} + +{% block header %} + + + +{% endblock %} + +{% block repo %} +
+ {% if g.repo_obj and g.repo_obj.is_empty %} +
+ +
+ {% else %} +
+
+
+
+
+
+ +
+
+ {% if readme %} +
+ {{ readme | noJS | safe }} +
+ {% else %} +
+
+
+ The {{repo.name}} project's README file is empty or unavailable. +
+
+
+ {% endif %} +
+ {% endif %} +
+
+
+
Contributors
+
+ + {% for access in repo.contributors %} + {% for user in repo.contributors[access] %} + + {% endfor %} + {% endfor %} + {% for access in repo.contributor_groups %} + {% for group in repo.contributor_groups[access] %} +
+ + @{{ group.group_name }} + + - {{ access }} +
+ {% endfor %} + {% endfor %} +
+
Branches
+
+ {% if head %} +
+
+ {% if branchname == head %} + + {{ head }} + {% else %} + + + {{ head }} + + {% endif %} +
+
+ +
+
+ {% endif %} + + {% for branch in g.branches if branch != head%} +
+
+ + {% if branchname != branch %} + {{ branch }} + + {% else %} + {{ branch }} + {% endif %} + +
+
+ {% if g.repo_committer and branch != head %} +
+ {{ form.csrf_token }} + + + +
+ {% endif %} +
+
+ {% endfor %} +
+
Source GIT URLs{% if + (authenticated and g.repo_committer) or + (config['DOC_APP_URL'] and repo and + repo.settings.get('project_documentation', True)) + %} + {%endif%}
+
+
+
+
SSH
+ +
+
+
+
+
GIT
+ +
+
+
+ {% if config['DOC_APP_URL'] + and repo + and repo.settings.get('project_documentation', True) %} +
Docs GIT URLs
+ {% if authenticated and g.repo_committer %} +
+
+
SSH
+ +
+
+ {% endif %} +
+
+
GIT
+ +
+
+ {% endif %} + {% if authenticated and g.repo_committer %} + {% if config.get('ENABLE_TICKETS', True) + and repo.settings.get('issue_tracker', True) %} +
Issues GIT URLs
+
+
+
SSH
+ +
+
+ {% endif %} +
Pull Requests GIT URLs
+
+
+
SSH
+ +
+
+ {% endif %} +
+
+
+
+ created {{repo.date_created|humanize}} +
+
+ + {% if last_commits %} + +
+ {% endif %} +
+ + + +{% endblock %} + +{% block jscripts %} +{{ super() }} + +{% endblock %}