From 420afd3206d59ca76309087234f838edb32d7b8b Mon Sep 17 00:00:00 2001 From: Eric Sunshine Date: Wed, 31 Dec 2014 04:50:05 -0500 Subject: 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 Signed-off-by: Alberto Bertogli --- views/summary.html | 3 +-- 1 file changed, 1 insertion(+), 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 -
+% end -- cgit v1.2.3