From 3fb285242ef3ff9b8eb9ffcaa8f36ae069f53155 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jan 21 2016 03:31:45 +0000 Subject: added more information to the commit list page now shows the project and branch name at the top of the content area, so the user knows what branch they are looking at for sure. also, provides a alert box at the top if the branch being browsed has commits ahead of the main branch / upstream project. the alert box also has a collapsed area that shows just the commits that are different from the upstream / main branch. --- diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html index 203d14f..1358c0d 100644 --- a/pagure/templates/repo_info.html +++ b/pagure/templates/repo_info.html @@ -33,29 +33,81 @@ git push -u origin master {% else %} {% if origin == 'view_commits' %} +

Commits {{number_of_commits}}

+
+ Displaying {{number_of_commits}} commits in + {% + if repo.is_fork %} {% + else %} {% + endif %}{{ repo.fullname }} + + + {{branchname}} + +
- {% if diff_commits and authenticated and repo.settings.get('pull_requests', True) %} - - + This branch contains {{ + diff_commits|count }} commits not in {% + if repo.is_fork %}the upstream project + + + {{ repo.name }} + {% + else %}the main branch{% + endif %} + + + {{head}} + + + {% if diff_commits and authenticated and (repo.is_fork or repo.settings.get('pull_requests', True)) %} +
+ {% if repo_admin %}Request pull{% else %}Compare{% endif %} - - {% elif authenticated and repo.settings.get('pull_requests', True) %} +
+ {#{% elif authenticated and repo.settings.get('pull_requests', True) %} Open a remote pull-request - +
#} {% endif %} + + + + {%endif%} -
+