Commit Graph

12 Commits

Author SHA1 Message Date
TK Soh
3b9b77f616 hgweb: improve look-n-feel of changelog nagivation 2005-10-24 14:53:25 -07:00
Matt Mackall
53102ac984 hgweb: shorten all the URLs in the standard templates
A URL like this:

http://www.selenic.com/hg/?cmd=changeset;node=508f0bbee11b595bcba6f255aeb93fe10e78af85

is now presented as:

http://www.selenic.com/hg/?cs=5010207c352

(though the old style still works, of course)
2005-10-18 23:08:35 -07:00
Josef "Jeff" Sipek
2e63eb1703 hgweb: Changed changelog page to list format syntax 2005-08-17 21:45:44 -05:00
kreijack@inwind.REMOVEME.it
605fa025a7 Add rss tag in the changelog/filelog html template.
# HG changeset patch
# User kreijack@inwind.REMOVEME.it
# Node ID 20edcc82038fce8460076ca5723fbbb919016356
# Parent  5155a0b6300820be38eb7e04d26525be39307df2
Add rss tag in the changelog/filelog html template.
This patch add rss tags in the changelog/filelog template
html pages. This tags permit the browser to detect the rss feed.
2005-07-10 15:59:26 -08:00
mpm@selenic.com
f1ebc0d231 [PATCH] Add RSS support to hgweb
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] Add RSS support to hgweb

From: Goffredo Baroncelli <kreijack@libero.it>

with the two small patches below, now hgweb can act as feed source.
Two kinds ofobjects can be tracked: the changelong and the files. This
can be useful if anyone would track the changes of a file ( and
because git has it, mercurial have to has ).

To check the changelog the url is
http://127.0.0.1:8000/pippo.pluto?cmd=changelog;style=rss

To check a file ( the mercurial/hgweb.py for examples ) the url is
http://127.0.0.1:8000/?cmd=filelog;file=mercurial/hgweb.py;filenode=0;style=rss

The first patch adds a new filter for the template: the filter is
named rfc822date, and translates the date from the touple format to a
rfc822 style date. The second patch adds the templates needed to
create the rss pages.

Tested with akgregator ( kde ).

[tweaked by mpm:

 add Content-type: text/xml
 add support for URL to header()
 add header with link and content type
 add RSS links on the normal pages]

manifest hash: 170c03d50490d7160097f59abdde1a5073d2ba82
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCyFmLywK+sNU5EO8RApkrAKCYF/vZ3DwdMXPBds2LxGEX8+tK5QCfTeOc
ZhPN8Xjt2cD3wMbNXMcoNSo=
=COlM
-----END PGP SIGNATURE-----
2005-07-03 13:32:59 -08:00
mpm@selenic.com
cd39b0077c [PATCH 2] ChangeLog template conformance fixes.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH 2] ChangeLog template conformance fixes.

From: Edouard Gomez <edouard.gomez@gmail.com>

# HG changeset patch
# User ed.gomez@free.fr
# Node ID e0661b00c613fa2bf1b670db1c9097423b4a107f
# Parent  b2e9146c237d84a1dd24af9a08bfb031bcc3a523

ChangeLog template conformance fixes.

As per: http://www.w3.org/TR/html401/interact/forms.html#h-17.3
form element MUST have action attribute

As per: http://www.w3.org/TR/html401/interact/forms.html#h-17.4
input has no length attribute, replace by size (i don't couple this
with maxlength because a tag may be used in future versions and no
length limit might be required ?).

manifest hash: c8dccb4805167a47f159094fc5f57500caec4951
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCx1fdywK+sNU5EO8RAliGAJ4iBaSn2D9rRXVmreEYUwNvDyxMlQCeLxMU
HcVHU0wRJDAbiXngOINk7GA=
=FyPC
-----END PGP SIGNATURE-----
2005-07-02 19:13:33 -08:00
mpm@selenic.com
c6171242df hgweb: add template filters, template style maps, and raw pages
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hgweb: add template filters, template style maps, and raw pages

Template filters:

in templates, you can now specify a chain of filters like

#desc|firstline|escape#
#desc|escape|addbreaks#
#date|age#

to specify how you'd like raw text (or whatever) to be transformed.

Template style maps:

add ;style=foo to a URL and we'll use templates/map-foo if it exists.

Raw output:

Together, these two features make it east to implement raw
downloadable files and patches. Simply link to the same page with
style=raw and present the output as unfiltered text/plain with that
template.

manifest hash: 5954a648b3d6b4e6dc2dcd1975f96b4b0178da2a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCnUMyywK+sNU5EO8RAkKjAJ9h9JElSCbWBPUnL+koCSDxgo38AwCgrccM
0qwyKdh/fUNglICxSh3HBNA=
=Svlo
-----END PGP SIGNATURE-----
2005-05-31 21:10:10 -08:00
mpm@selenic.com
d5d19174b2 hgweb: make navigation of changesets a bit nicer 2005-05-26 22:47:43 -08:00
mpm@selenic.com
546aa0fdbb hgweb: add tags links and manifest links
This adds a simple new tags page to browse by tag, adds the tag link
everywhere, and adds manifest links to the tags and changelog pages.
2005-05-26 12:24:01 -08:00
mpm@selenic.com
7ac7091e05 Add tag/rev/node search to hgweb 2005-05-26 10:08:47 -08:00
mpm@selenic.com
e4397937b5 Prettify the web interface
Add header, footer templates
Add null parent handling
Combine files and directories
Add parity flag for alternating line colors
Add line numbers to filerevision
2005-05-23 20:57:48 -08:00
mpm@selenic.com
61d83d35a2 Revamped templated hgweb 2005-05-23 16:00:02 -08:00