Commit Graph

28 Commits

Author SHA1 Message Date
Thomas Arendsen Hein
01e8022cb1 hgweb: Apply the new method of passing session variables to links. 2006-10-11 22:01:24 +02:00
Brendan Cully
d12d340200 Add {getentries} to default style 2006-10-05 15:04:15 -07:00
Brendan Cully
75729a9251 Update templates to use NewWebInterface 2006-10-04 17:04:40 -07:00
Brendan Cully
ebabaa1a54 hgweb: kill #manifest# 2006-09-29 16:26:09 -07:00
Josef "Jeff" Sipek
9feccd6d69 [hgweb] links to shortlog for the default templates 2006-07-26 20:57:00 -04:00
Muli Ben-Yehuda
5ff82e08cd - duplicate the parent link logic to show child links
- don't show trivial parent or children links
2005-12-29 14:51:29 -06:00
TK Soh
b81e3092eb hgweb: add strip and rstrip filters to handle summary 2005-10-25 14:57:14 -07:00
Matt Mackall
f36b3ac27d hgweb: add a mercurial link to the footer 2005-10-20 00:26:24 -07:00
Benoit Boissinot
4066fd89f5 hgweb: hide trivial parent (like in show_changeset) 2005-10-19 20:54:46 -07:00
Matt Mackall
3334f94a60 hgweb: fix too short manifest link 2005-10-18 23:58:00 -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
Matt Mackall
40dfb0cd7e hgweb: remove various manifest and file hashes from display 2005-10-01 13:11:48 -07:00
mpm@selenic.com
e243599beb Various cleanups for tarball support
s/tarball/archive/
query config rather than maintaining a list
default all archive support to off
use changeset nodes rather than manifest nodes
use web:name for archive name
don't use rev number in filename, it's not portable
refactor manifest lookup bits
use finally: clause to delete tmpfile
2005-08-26 20:52:31 -07:00
Wojciech Milkowski
3273ff69eb tarball support v0.3 pt 2 2005-08-26 20:51:48 -07:00
Wojciech Milkowski
340ba8e86e tarball support v0.3
Hello,

I'm slowly improving support for tarballs in Mercurial. Attached patch
is made against current tip in Matt's repository - c582763bc7fd, and
contains everything done so far.

Changes:
- gzip and bzip2 tarballs are sent immediately without writing to
temporary files (I was wrong Matt, it can be done very easy)
- hgrc customization, you can choose which type (if any) you will support

There's no easy way to support compression levels, since TarFile open()
assume that it is 9. I tried to use gzopen(), and bz2open() methods
instead, but it seems that headers of generated archives, are missing or
wrong. We could eventually try to rewrite tarfile.py and include our own
version into Mercurial, but I don't know if it's good idea...

Wojtek
2005-08-26 20:51:34 -07:00
Edouard Gomez
1a4ff4aee9 More IE friendly diff output related templates.
# HG changeset patch
# User Edouard Gomez <ed.gomez@free.fr>
# Node ID 6eee9b54c53c41643192c7920db642c984a00a21
# Parent  25ad877710029dfa51e14ac88ff498cf0a98c0f2
More IE friendly diff output related templates.

I thought i could use CSS to render properly the diff blocks in IE.
But i was obviously too optmistic and didn't realized that IE only
renders preformated text for pre tag content...

So i had to rollback some of my changes to accomodate to this IE
bug/limitation. A diff blocks become pre tags, and diff lines
become span again. Hopefully, the pages continue validating.
2005-07-10 16:14:28 -08:00
mpm@selenic.com
364654fefb Various HTML cleanups
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Various HTML cleanups

From: Edouard Gomez <ed.gomez@free.fr>

Cleaned up the changeset summary table differentiating title cells
from data cells using th and td. Added semantic classes.

Changed the big pre tag into a div that mimics pre tag style
(that is monospace font and white space preformated). This is
required because pre is an inline element, and thus cannot
be the parent of block elements as div (diffblock). I replaced
all these div blocks by a series ul lists as patches can be
seen as lists of changes in versioned files.

If someone has a better semantic to propose, i'd be pleased he
drops me an email about this patch.

- --

Cleaned up the filediff summary table differentiating title cells
from data cells using th and td. Added semantic classes.

- --

Keep style unchanged for changeset template

As promised no changes in style. This one got through my eyes
+ brain checking... sorry.

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

iD8DBQFCyLwfywK+sNU5EO8RAtE9AJ0cxl80eF3zpBWLn8OkoSs7dkZOTgCgtYto
j7T/iRk0Hq4Q0mjdos7FvYU=
=KOP2
-----END PGP SIGNATURE-----
2005-07-03 20:33:35 -08:00
mpm@selenic.com
5c93c1becd [PATCH 2/5]: cleaning the template parent management in hgweb
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH 2/5]: cleaning the template parent management in hgweb

From: Goffredo Baroncelli <kreijack@libero.it>

hgweb: rename #parent1# and #parent2# to #parent# in the template managment

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

iD8DBQFCxvmkywK+sNU5EO8RAnREAKCXuVAU054xkYsfQLug3y/u4tpGxQCfdnKA
QkX42FSUBN1EwFyzrzC6vs0=
=o8VK
-----END PGP SIGNATURE-----
2005-07-02 12:31:32 -08:00
mpm@selenic.com
6b7d3a80e3 [PATCH] Add tags to hgweb
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] Add tags to hgweb

From: Goffredo Baroncelli <kreijack@libero.it>

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

iD8DBQFCxcfHywK+sNU5EO8RAgEKAJ40SRMOyBOkbS8QU2MIBUzBnhu5AwCbBDjR
M+gaWyqzqOBzO1r+9zpb37k=
=l1pL
-----END PGP SIGNATURE-----
2005-07-01 14:46:31 -08:00
mpm@selenic.com
7b7db9ddb1 Show nice short hashes in hgweb
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Show nice short hashes in hgweb

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

iD8DBQFCsQpkywK+sNU5EO8RAmSIAJ40aYEFBi07drKuPLuofXNaUkEFtgCghC9g
mG8mmhucbBe4hcZWL0AdG8I=
=Khp7
-----END PGP SIGNATURE-----
2005-06-15 21:13:08 -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
1dd7e5c920 hgweb: alternating colors for multifile diffs 2005-05-26 20:37:05 -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
e687fa3c97 Hide most revision numbers in hgweb 2005-05-26 11:15:05 -08:00
jake@edge2.net
579f538a2d fixed problem with head/body tags, added dtd, fixed table attributes
add quotes around all attributes (w3c recommendation)
pages pass w3c validator
2005-05-24 16:08:09 -07:00
jake@edge2.net
8778053fe5 changed pos to rev for changelog cmd, changed & to ; 2005-05-24 07:42:05 -07: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