git » git-arr » commit 420afd3

views: summary: suppress extra horizontal rule when no "master" branch

author Eric Sunshine
2014-12-31 09:50:05 UTC
committer Alberto Bertogli
2015-01-11 21:18:06 UTC
parent 605421f2d6696db307309aa7b454ff368c2ba742

views: summary: suppress extra horizontal rule when no "master" branch

When a repository has a "master" branch, a short summary of its most
recent commits is shown, followed by a horizontal rule. If there is no
"master" branch, then the commit summary is suppressed, however, the
rule is shown unconditionally, which is ugly, particularly when there
is already a rule following the web_url/git_url block. Therefore,
suppress the "master" branch horizontal rule when not needed. (This is
analogous to how the rule following the web_url/git_url block is
suppressed when that information is not shown).

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

views/summary.html +1 -2

diff --git a/views/summary.html b/views/summary.html
index ce92a60..c05cca7 100644
--- a/views/summary.html
+++ b/views/summary.html
@@ -39,9 +39,8 @@
 %                   limit = repo.info.commits_in_summary,
 %                   shorten = shorten, repo_root = ".", offset = 0)
 %     include commit-list **kwargs
-% end
-
 <hr/>
+% end
 
 <table class="nice">
     <tr>