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

login
register
mail settings
Submitter Anton Shestakov
Date June 30, 2015, 3:50 p.m.
Message ID <85befe3726cf65a2f27d.1435679404@neuro>
Download mbox | patch
Permalink /patch/9833/
State Accepted
Headers show

Comments

Anton Shestakov - June 30, 2015, 3:50 p.m.
# HG changeset patch
# User Anton Shestakov <av6@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).

Patch

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>