Commit Graph

37 Commits

Author SHA1 Message Date
Peter van Dijk
53e2d42bd5 remove escaping from decriptions on repo index page 2006-02-03 12:56:41 +01:00
Matt Mackall
d2f2e55e1e hgweb: show copy/rename links in file history 2006-01-29 17:10:38 +13:00
Peter van Dijk
45d8535751 changed template escape filter, added urlescape filter; audited all templates for insertion bugs; added note to manifest.py about newlines in filenames 2006-01-29 00:18:52 +01: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
Thomas Arendsen Hein
efdab2b6e8 Catch IOErrors and RepoErrors when serving repositories via hgweb. 2005-11-17 19:38:57 +01: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
TK Soh
d433b1666f hgweb file: fixed left-justified line numbers on IE v6.0
IE (v6.0) seemed to squash the spaces surrounding the line
numbers, making them appeared as left- instead of being
right-justified.

Testing with IE v6.0 and Firefox 1.0.6.
2005-09-23 17:19:35 -07:00
Thomas Arendsen Hein
f1b6c5859a Completed renaming author to contact in hgwebdir:
Prefer [web] contact = foo instead of author, but still accept the old name.
Adjusted template to show obfuscated contact. Drop bogus <i>email</i> entry.
2005-08-28 18:13:28 +02:00
Ollivier Robert
7b63c2d000 Add RSS link to the repository index.
Index: hg/templates/index.tmpl
===================================================================
2005-08-27 23:45:27 -07:00
Ollivier Robert
2f777bc14b Use a template for the error message. 2005-08-27 23:44:15 -07:00
Wojciech Milkowski
3273ff69eb tarball support v0.3 pt 2 2005-08-26 20:51:48 -07:00
mpm@selenic.com
e827a5700c Add a multi-repository server
This merges a bunch of the ideas for a multi-repository CGI script and
simplifies things a bit.

It uses PATH_INFO so it generally wants paths of the form:

http://host/hg.cgi/virtualpath

This gets mapped via a simple config file to the real path. All info
about the repo is read from the repo's hgrc.
2005-08-19 16:38:25 -08:00
Jeff Sipek
aebe0b9925 [PATCH] Move default page name into map file
Move default page name from code into the map file. This way, different
hgweb styles/themes are free to select their default (no cmd in args)
page.
2005-08-08 19:49:48 -08:00
Thomas Arendsen Hein
f82882a913 Use changelogentry.tmpl for search results, too.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Use changelogentry.tmpl for search results, too.
Since both are lists of changelog entries, they don't need to look different.
This fixes a bug where only changelogentry was updated, but searchentry not.

manifest hash: 9bfe7a3dd4512d3ee4e5538f369371bce6d55520
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC13zrW7P1GVgWeRoRAghNAJ9Agd+uPQ2iGdHAnjebr2R/RzAzUACdEyWq
+yKY7wp16TD72ls6Q49LHJg=
=9aSM
-----END PGP SIGNATURE-----
2005-07-15 10:07:55 +01: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
4acd72ad9f [PATCH 4/5]: cleaning the template parent management in hgweb
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

From: Goffredo Baroncelli <kreijack@libero.it>

Now the patch remove every use of the tag p1/p2/p1rev/p2rev from the
code ( even+the ones not used ), replacing everywhere with the tag
parent ( even where the previous +tag are not use ), so the
information to the templates is still given.

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

iD8DBQFCyEqxywK+sNU5EO8RAjc5AJ9o8AU6/YRuERblO/0kgWwDN4rqQQCgkVj/
UBtzW5x0yD65mK6rb4f+bQk=
=07yG
-----END PGP SIGNATURE-----
2005-07-03 12:29:37 -08:00
mpm@selenic.com
a6df11250c [PATCH] Tags template cleanup
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] Tags template cleanup

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

Tags template cleanup

This page lists all tags, thus using divs doesn't structure well
the information. Better use a list (ul). Each tag becomes a li
element. The li element also carries the parity information.

As font style tags are highly deprecated in newer HTML variants
get rid of the tt element, relaced by a simple span that gets
a CSS class that mimics tt default style (monospaced text)

Added CSS classes required to match old style.

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

iD8DBQFCx1ijywK+sNU5EO8RAjaAAJoCVaD37YUC6DueL6Kd5D9aoCF8bQCfSWw0
xFVkpEtnr6ST4eyJjR8K17U=
=nphb
-----END PGP SIGNATURE-----
2005-07-02 19:16:51 -08:00
mpm@selenic.com
c2fed80967 [PATCH] Changelogentry template cleanup
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] Changelogentry template cleanup
From: Edouard Gomez <edouard.gomez@gmail.com>

Changelogentry template cleanup

Removed unuseful outside div (was probably used to carry the
parity class, it's no use, multiple css classes can be assigned
to the inner table instead)

Removed all hardwired styles in html tags. The style has been
externalized to equivalent CSS classes.

The inner table is now assigned the parity CSS class.

Changed all relevant table cells from td to th.

Added classes to all cells in order to give some semantic rationale
to these table cells.

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

iD8DBQFCx1g5ywK+sNU5EO8RAhKGAKCWAHrx+lLMAXjd4/vgvG7vmfSkAACfTZ+m
/EyUsDVaYeVcGzFsp8liReI=
=vt2N
-----END PGP SIGNATURE-----
2005-07-02 19:15:05 -08:00
mpm@selenic.com
7376d96b33 [PATCH 3/5]: cleaning the template parent management in hgweb
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

From: Goffredo Baroncelli <kreijack@libero.it>

the filediff template use the old style p1/p2 and p1rev/p2rev
inteface; the patch removes this old stuff, and update the code to the
new style

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

iD8DBQFCxvplywK+sNU5EO8RApW4AKCrTLHofr8jELtvNRpoNJHc0sjEfgCfaY2q
/H96T6BMMXA4VLFVxzOBHCo=
=u4El
-----END PGP SIGNATURE-----
2005-07-02 12:34:45 -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
bfb94728dd Add parent revision numbers back to hgweb
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Add parent revision numbers back to hgweb

From: Goffredo Baroncelli <kreijack@libero.it>

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

iD8DBQFCxccYywK+sNU5EO8RAkW7AJ9aXTUZ9JnbZMrxCrcuXozYzkdw/gCfT8IO
qnqe966Mvapr2jULeXldQW4=
=XiV5
-----END PGP SIGNATURE-----
2005-07-01 14:43:36 -08:00
mpm@selenic.com
70952fe5b2 Add multiple keyword search to hgweb
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Add multiple keyword search to hgweb

People kept pestering me about this one. Now it's done.

If you type a tag/id/rev in the search box, it takes you to that entry
in the changelog.

If you type some other random keywords, it does a case-insensitive
search through the history and returns the most recent N items.

It's not super-fast, but it's serviceable.

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

iD8DBQFCxO6JywK+sNU5EO8RArAwAKCq+9qO/OL0mQxa1J7C77Z6AcZoWgCfbiDC
AZ5KllldwBtdRRREn7HH6go=
=sIy0
-----END PGP SIGNATURE-----
2005-06-30 23:19:37 -08:00
mpm@selenic.com
d208532351 hgweb: missed a long hash
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hgweb: missed a long hash

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

iD8DBQFCsQurywK+sNU5EO8RAvfEAKCgUYzKeSzKwGKuyVhnJP+A7UrfMQCgo4BP
GAdHa6jMtH+wifOHz7kIfL8=
=z0wj
-----END PGP SIGNATURE-----
2005-06-15 21:18:35 -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
91c58aba0f hgweb: add file permissions
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hgweb: add file permissions

From: Goffredo Baroncelli <kreijack@libero.it>

Show permissions in hgweb

Tweaked by mpm

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

iD8DBQFCsHFqywK+sNU5EO8RAoqFAJ44P8kZoZDiY5Fw8LWpL/3ArXNE2QCeO3z4
0zV5rXWa/r/xgf+AVTLeQ/4=
=FzLj
-----END PGP SIGNATURE-----
2005-06-15 10:20:26 -08:00
Thomas Arendsen Hein
0058a0f0ff Obfuscate author in all HTML templates. 2005-06-02 09:14:12 +01: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
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
mpm@selenic.com
2424ff846c Fix some broken parent links in hgweb 2005-05-25 09:04:38 -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
mpm@selenic.com
27835c58e5 Fix pos in navbar
Fix bad parent link in changelog
2005-05-23 21:15:36 -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