From 1c9a10161bfa782c6c2a40b009f437031ab4fd81 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jun 06 2016 08:21:39 +0000 Subject: remove the branch chooser from the repoheader Previously, there was a branch chooser dropdown that was in the repoheader, up near the fork button. This is now removed from there, and placed at the top of the pages where this applies. This dropdown would only show on certian pages in a repo, and could lead to confusion as to why it wasnt showing, so now on the files pages, and the commits pages, it is at the top right of the content of those tabs. On the overview page, we always had the full branch listing there, so there is no dropdown. Also as part of this change, i restyled teh fork button. --- diff --git a/pagure/static/pagure.css b/pagure/static/pagure.css index 22e57ac..ba55e94 100644 --- a/pagure/static/pagure.css +++ b/pagure/static/pagure.css @@ -201,6 +201,24 @@ min-height: 85vh; right:6px!important; } +.button-label{ + padding: .25rem .75rem; + font-size: .875rem; + line-height: 1.5; + border-radius: .2rem; + display: inline-block; + font-weight: 400; + text-align: center; + white-space: nowrap; + vertical-align: middle; + border: 1px solid transparent; +} + +.button-label-default +{ + background-color:#eee; +} + .ellipsis { white-space: nowrap; overflow: hidden; diff --git a/pagure/templates/commits.html b/pagure/templates/commits.html index 0827f00..c824857 100644 --- a/pagure/templates/commits.html +++ b/pagure/templates/commits.html @@ -4,7 +4,7 @@ {% set tag = "home" %} {% block repo %} -
+
{% if repo_obj and repo_obj.is_empty %}
{% else %} +

Commits {{number_of_commits}}

+
-
- Displaying {{number_of_commits}} commits in - +
+
+
{% if repo.is_fork %} + {{ repo.user.user }}/{{ repo.name }} {% else %} - + {{ repo.name }} {% endif %} - {{ repo.fullname }} - - - - {{branchname}} - + +
+ {% if branchname %} +
+ + +
+ {% endif %}
+
+
{% if diff_commits|count > 0 %}