diff --git a/pagure/themes/srcfpo/templates/repo_info.html b/pagure/themes/srcfpo/templates/repo_info.html new file mode 100644 index 0000000..0e14e02 --- /dev/null +++ b/pagure/themes/srcfpo/templates/repo_info.html @@ -0,0 +1,346 @@ +{% extends "repo_master.html" %} + +{% block title %}{{ select.capitalize() }} - {{ + repo.namespace + '/' if repo.namespace }}{{ repo.name }}{% endblock %} +{% set tag = "home" %} + +{% if g.repo_watch_levels == ['issues', 'commits'] %} + {% set watch_button_title = 'You are watching issues, PRs, and commits on this project' %} + {% set watch_button_text = 'Unwatch' %} +{% elif g.repo_watch_levels == ['issues'] %} + {% set watch_button_title = 'You are watching issues on this project' %} + {% set watch_button_text = 'Unwatch' %} +{% elif g.repo_watch_levels == ['commits'] %} + {% set watch_button_title = 'You are watching commits on this project' %} + {% set watch_button_text = 'Unwatch' %} +{% else %} + {% set watch_button_title = 'You are not watching this project' %} + {% set watch_button_text = 'Watch' %} +{% endif %} + +{% block header %} + +{% endblock %} + +{% block repo %} +
+
+ {% block overviewtabs %}{{ super() }}{% endblock %} +
+
+
+
+ {% if repo.is_fork -%} + + {% elif repo.avatar_email %} + + {% endif %} +

+ {% if repo.is_fork -%} + {{ repo.user.user }} /  + {%- endif -%} + {%- if repo.namespace -%} + {{ repo.namespace }} /  + {%- endif -%}{{ repo.name }} + {% if repo.private %} + + {% endif %} +

+ {% if repo.is_fork and repo.parent %} + + Forked from + + {{ repo.parent.fullname }} + + {{repo.date_created|humanize}} + + {% elif repo.is_fork and not repo.parent %} + + Forked from a deleted repository {{repo.date_created|humanize}} + + {% endif %} + {% if not repo.is_fork %} + + Created by + + {{- repo.user.user -}} + + {{repo.date_created|humanize}} + + {% endif %} +
+ {% if repo.description %}{{ repo.description | noJS | safe }}{% else %}-{% endif -%} + {%- if repo.url %}  |  {{ repo.url }}{% endif %} +
+ + + +
+ + + Members + + {{repo.contributors|length+1}} + +
+ {% if last_commits %} + {% set commit = last_commits[0] %} +
+ +
+ {{ commit.author | author2avatar(20) | safe }} {{commit.author.name}} committed {{ commit.commit_time|humanize }} +
+
+ {% endif %} +
+
+ {% 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 %} +
+
+ +{% endblock %} + +{% block jscripts %} +{{ super() }} + +{% endblock %}