[PATCH 2 of 3] hgweb: fix help pages title in gitweb and monoblue

Anton Shestakov av6 at dwimlabs.net
Tue Jun 30 10:50:04 CDT 2015


# HG changeset patch
# User Anton Shestakov <av6 at dwimlabs.net>
# Date 1435678279 -28800
#      Tue Jun 30 23:31:19 2015 +0800
# Node ID 85befe3726cf65a2f27d7e4545c136fc25afc8b2
# Parent  7b074b48443f651c884fd99faefb4daf754b8900
hgweb: fix help pages title in gitweb and monoblue

Help pages in gitweb and monoblue were setting a completely inappropriate
title: "Branches". Let's have a proper title (copy-pasted from paper style).

diff --git a/mercurial/templates/gitweb/help.tmpl b/mercurial/templates/gitweb/help.tmpl
--- a/mercurial/templates/gitweb/help.tmpl
+++ b/mercurial/templates/gitweb/help.tmpl
@@ -1,5 +1,5 @@
 {header}
-<title>{repo|escape}: Branches</title>
+<title>Help: {topic}</title>
 <link rel="alternate" type="application/atom+xml"
    href="{url|urlescape}atom-tags" title="Atom feed for {repo|escape}"/>
 <link rel="alternate" type="application/rss+xml"
diff --git a/mercurial/templates/gitweb/helptopics.tmpl b/mercurial/templates/gitweb/helptopics.tmpl
--- a/mercurial/templates/gitweb/helptopics.tmpl
+++ b/mercurial/templates/gitweb/helptopics.tmpl
@@ -1,5 +1,5 @@
 {header}
-<title>{repo|escape}: Branches</title>
+<title>Help: {title}</title>
 <link rel="alternate" type="application/atom+xml"
    href="{url|urlescape}atom-tags" title="Atom feed for {repo|escape}"/>
 <link rel="alternate" type="application/rss+xml"
diff --git a/mercurial/templates/monoblue/help.tmpl b/mercurial/templates/monoblue/help.tmpl
--- a/mercurial/templates/monoblue/help.tmpl
+++ b/mercurial/templates/monoblue/help.tmpl
@@ -1,5 +1,5 @@
 {header}
-    <title>{repo|escape}: Branches</title>
+    <title>Help: {topic}</title>
     <link rel="alternate" type="application/atom+xml" href="{url|urlescape}atom-log" title="Atom feed for {repo|escape}"/>
     <link rel="alternate" type="application/rss+xml" href="{url|urlescape}rss-log" title="RSS feed for {repo|escape}"/>
 </head>
diff --git a/mercurial/templates/monoblue/helptopics.tmpl b/mercurial/templates/monoblue/helptopics.tmpl
--- a/mercurial/templates/monoblue/helptopics.tmpl
+++ b/mercurial/templates/monoblue/helptopics.tmpl
@@ -1,5 +1,5 @@
 {header}
-    <title>{repo|escape}: Branches</title>
+    <title>Help: {title}</title>
     <link rel="alternate" type="application/atom+xml" href="{url|urlescape}atom-log" title="Atom feed for {repo|escape}"/>
     <link rel="alternate" type="application/rss+xml" href="{url|urlescape}rss-log" title="RSS feed for {repo|escape}"/>
 </head>


More information about the Mercurial-devel mailing list