templates/changelog.tmpl
author Colin McMillen <mcmillen@cs.cmu.edu>
Thu, 27 Apr 2006 22:11:13 -0700
changeset 2148 c72e618c1204
parent 1425 8fe4116b3253
child 2170 29eeb2717915
permissions -rw-r--r--
Add MOTD display to hgweb and hgwebdir. The hgweb "footer" template now has space for an optional message of the day (MOTD). This is used in two contexts: 1) On the hgwebdir index page 2) On various pages of each individual repo For both cases, the MOTD is read out of an entry named "motd" in the [web] section of a config file -- the only difference is which file is used. For #1, you need to add the section to hgweb.config; for #2, you need to add to the repo's .hgrc file. I suggest something like this: [web] motd = <p>To download these repositories, <a href="http://www.selenic.com/mercurial">get Mercurial</a> and then type something like:</p><p><pre>hg clone http://gs3080.sp.cs.cmu.edu/hg.cgi/cpmpy</pre></p>You can also click the Download links to get an archive of the latest revision. An online sample is available here: http://gs3080.sp.cs.cmu.edu/hg.cgi
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
142
529bf610092e Prettify the web interface
mpm@selenic.com
parents: 138
diff changeset
     1
#header#
201
f918a6fa2572 hgweb: add template filters, template style maps, and raw pages
mpm@selenic.com
parents: 173
diff changeset
     2
<title>#repo|escape#: changelog</title>
661
148f642d1f8e Add rss tag in the changelog/filelog html template.
kreijack@inwind.REMOVEME.it
parents: 599
diff changeset
     3
<link rel="alternate" type="application/rss+xml"
148f642d1f8e Add rss tag in the changelog/filelog html template.
kreijack@inwind.REMOVEME.it
parents: 599
diff changeset
     4
   href="?cmd=changelog;style=rss" title="RSS feed for #repo|escape#">
142
529bf610092e Prettify the web interface
mpm@selenic.com
parents: 138
diff changeset
     5
</head>
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
     6
<body>
168
65cf1b0cfe86 hgweb: add tags links and manifest links
mpm@selenic.com
parents: 165
diff changeset
     7
65cf1b0cfe86 hgweb: add tags links and manifest links
mpm@selenic.com
parents: 165
diff changeset
     8
<div class="buttons">
65cf1b0cfe86 hgweb: add tags links and manifest links
mpm@selenic.com
parents: 165
diff changeset
     9
<a href="?cmd=tags">tags</a>
1410
17703aa4491e hgweb: shorten all the URLs in the standard templates
Matt Mackall <mpm@selenic.com>
parents: 981
diff changeset
    10
<a href="?mf=#manifest|short#;path=/">manifest</a>
17703aa4491e hgweb: shorten all the URLs in the standard templates
Matt Mackall <mpm@selenic.com>
parents: 981
diff changeset
    11
<a type="application/rss+xml" href="?style=rss">rss</a>
168
65cf1b0cfe86 hgweb: add tags links and manifest links
mpm@selenic.com
parents: 165
diff changeset
    12
</div>
65cf1b0cfe86 hgweb: add tags links and manifest links
mpm@selenic.com
parents: 165
diff changeset
    13
201
f918a6fa2572 hgweb: add template filters, template style maps, and raw pages
mpm@selenic.com
parents: 173
diff changeset
    14
<h2>changelog for #repo|escape#</h2>
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
    15
584
9bdf5ae63d1f [PATCH 2] ChangeLog template conformance fixes.
mpm@selenic.com
parents: 201
diff changeset
    16
<form action="#">
9bdf5ae63d1f [PATCH 2] ChangeLog template conformance fixes.
mpm@selenic.com
parents: 201
diff changeset
    17
<p>
9bdf5ae63d1f [PATCH 2] ChangeLog template conformance fixes.
mpm@selenic.com
parents: 201
diff changeset
    18
<label for="search1">search:</label>
165
7fc8385df514 Add tag/rev/node search to hgweb
mpm@selenic.com
parents: 142
diff changeset
    19
<input type="hidden" name="cmd" value="changelog">
584
9bdf5ae63d1f [PATCH 2] ChangeLog template conformance fixes.
mpm@selenic.com
parents: 201
diff changeset
    20
<input name="rev" id="search1" type="text" size="30">
1425
8fe4116b3253 hgweb: improve look-n-feel of changelog nagivation
TK Soh <teekaysoh@yahoo.com>
parents: 1410
diff changeset
    21
navigate: <small class="navigate">#changenav%naventry#</small>
584
9bdf5ae63d1f [PATCH 2] ChangeLog template conformance fixes.
mpm@selenic.com
parents: 201
diff changeset
    22
</p>
165
7fc8385df514 Add tag/rev/node search to hgweb
mpm@selenic.com
parents: 142
diff changeset
    23
</form>
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
    24
975
bdd7c53fca00 hgweb: Changed changelog page to list format syntax
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 661
diff changeset
    25
#entries%changelogentry#
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
    26
584
9bdf5ae63d1f [PATCH 2] ChangeLog template conformance fixes.
mpm@selenic.com
parents: 201
diff changeset
    27
<form action="#">
9bdf5ae63d1f [PATCH 2] ChangeLog template conformance fixes.
mpm@selenic.com
parents: 201
diff changeset
    28
<p>
9bdf5ae63d1f [PATCH 2] ChangeLog template conformance fixes.
mpm@selenic.com
parents: 201
diff changeset
    29
<label for="search2">search:</label>
165
7fc8385df514 Add tag/rev/node search to hgweb
mpm@selenic.com
parents: 142
diff changeset
    30
<input type="hidden" name="cmd" value="changelog">
584
9bdf5ae63d1f [PATCH 2] ChangeLog template conformance fixes.
mpm@selenic.com
parents: 201
diff changeset
    31
<input name="rev" id="search2" type="text" size="30">
1425
8fe4116b3253 hgweb: improve look-n-feel of changelog nagivation
TK Soh <teekaysoh@yahoo.com>
parents: 1410
diff changeset
    32
navigate: <small class="navigate">#changenav%naventry#</small>
584
9bdf5ae63d1f [PATCH 2] ChangeLog template conformance fixes.
mpm@selenic.com
parents: 201
diff changeset
    33
</p>
165
7fc8385df514 Add tag/rev/node search to hgweb
mpm@selenic.com
parents: 142
diff changeset
    34
</form>
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
    35
142
529bf610092e Prettify the web interface
mpm@selenic.com
parents: 138
diff changeset
    36
#footer#