# HG changeset patch # User Thomas De Schampheleire # Date 2015-03-03 21:37:44 # Node ID 42f3115cc2acdc53e682ccca65fac2c977ee4502 # Parent a7bbf4e18ec35bf4d88720d85dbae69b83cabc04 style: add class 'normal-indent' instead of repeated explicit margins Add a new CSS class for the standard indentation inside the main box, instead of repeating 'style="..."' statements on the relevant elements. Ideally, this class should not exist as the necessary padding would be added to the main box itself, but reworking this is a bigger exercise (to be done later). diff --git a/kallithea/public/css/style.css b/kallithea/public/css/style.css --- a/kallithea/public/css/style.css +++ b/kallithea/public/css/style.css @@ -958,6 +958,10 @@ tbody .yui-dt-editable { cursor: pointer padding-bottom: 2px; } +#content div.box div.normal-indent { + margin: 0 20px 10px 20px; +} + #content div.box p { color: #5f5f5f; font-size: 12px; diff --git a/kallithea/templates/pullrequests/pullrequest_show_all.html b/kallithea/templates/pullrequests/pullrequest_show_all.html --- a/kallithea/templates/pullrequests/pullrequest_show_all.html +++ b/kallithea/templates/pullrequests/pullrequest_show_all.html @@ -41,7 +41,7 @@ ${self.repo_context_bar('showpullrequest -
+
%if c.closed: ${h.link_to(_('Hide closed pull requests (only show open pull requests)'), h.url('pullrequest_show_all',repo_name=c.repo_name,from_=c.from_))} diff --git a/kallithea/templates/pullrequests/pullrequest_show_my.html b/kallithea/templates/pullrequests/pullrequest_show_my.html --- a/kallithea/templates/pullrequests/pullrequest_show_my.html +++ b/kallithea/templates/pullrequests/pullrequest_show_my.html @@ -20,7 +20,7 @@ ${self.breadcrumbs()}
-
+
%if c.closed: ${h.link_to(_('Hide closed pull requests (only show open pull requests)'), h.url('my_pullrequests'))}