[PATCH v2] my pull requests: fix page title when no site branding is set

Thomas De Schampheleire patrickdepinguin at gmail.com
Sat Feb 21 14:53:33 EST 2015


# HG changeset patch
# User Thomas De Schampheleire <thomas.de_schampheleire at alcatel-lucent.com>
# Date 1423170039 -3600
#      Thu Feb 05 22:00:39 2015 +0100
# Node ID 077945f977a22701f48e4512b42bfea6f342be13
# Parent  f5897d3eddf183efb8a9ea1ab29f2d2792936840
my pull requests: fix page title when no site branding is set

Just like any other page, the 'middot' between the page name and site name
should only be visible if a site name has been specified.

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
@@ -1,7 +1,10 @@
 <%inherit file="/base/base.html"/>
 
 <%block name="title">
-    ${_('My Pull Requests')} · ${c.site_name}
+    ${_('My Pull Requests')}
+    %if c.site_name:
+        · ${c.site_name}
+    %endif
 </%block>
 
 <%def name="breadcrumbs_links()">


More information about the kallithea-general mailing list