diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2014-12-31 10:50:05 +0100 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2015-01-11 22:18:06 +0100 |
commit | 420afd3206d59ca76309087234f838edb32d7b8b (patch) | |
tree | 9aba014ffb2e1f65e21d8e9a2e520e747c655426 /views | |
parent | 605421f2d6696db307309aa7b454ff368c2ba742 (diff) | |
download | git-arr-fork-420afd3206d59ca76309087234f838edb32d7b8b.zip |
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>
Diffstat (limited to 'views')
-rw-r--r-- | views/summary.html | 3 |
1 files changed, 1 insertions, 2 deletions
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> |