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>
This commit is contained in:
Eric Sunshine 2014-12-31 04:50:05 -05:00 committed by Alberto Bertogli
parent 605421f2d6
commit 420afd3206

@ -39,9 +39,8 @@
% limit = repo.info.commits_in_summary, % limit = repo.info.commits_in_summary,
% shorten = shorten, repo_root = ".", offset = 0) % shorten = shorten, repo_root = ".", offset = 0)
% include commit-list **kwargs % include commit-list **kwargs
% end
<hr/> <hr/>
% end
<table class="nice"> <table class="nice">
<tr> <tr>