Commit Graph

140 Commits

Author SHA1 Message Date
Josef "Jeff" Sipek
9feccd6d69 [hgweb] links to shortlog for the default templates 2006-07-26 20:57:00 -04:00
Josef "Jeff" Sipek
54f0ca3d08 [hgweb] Shortlog template for default theme 2006-07-26 20:26:52 -04:00
Josef "Jeff" Sipek
5d12a047d0 [hgweb] Implemented shortlog (gitweb templates only) 2006-07-24 20:56:30 -04:00
Josef "Jeff" Sipek
c45ef63c97 [hgweb] Fixed up gitweb templates
Now the gitweb templates have archive links
2006-07-24 20:10:04 -04:00
Thomas Arendsen Hein
693aaef4a8 Merged WSGI fixes from http://hg.omnifarious.org/~hopper/webmerc/ 2006-06-30 21:36:45 +02:00
Benoit Boissinot
613e2e8d77 make changeset outputted by the raw template to be closer to 'hg export' 2006-06-30 10:16:38 +02:00
Eric Hopper
f4e85c5507 Fix raw files in the web UI. 2006-06-29 18:34:26 -07:00
TK Soh
65e65dcd3d gitweb: strip leading & trailing blank lines in changeset description 2006-05-04 14:01:55 +02:00
Thomas Arendsen Hein
76df0ed346 Make hgwebdir columns sortable. 2006-05-01 18:38:25 +02:00
Thomas Arendsen Hein
3c27b42f55 Add download links to hgwebdir index page for allowed archive types.
Based on a patch by Colin McMillen <mcmillen@cs.cmu.edu>
2006-05-01 10:02:17 +02:00
Colin McMillen
710e4fc2b4 Add archive download links to tip on main changeset list page 2006-05-01 09:01:59 +02:00
Colin McMillen
d23819428b 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
2006-04-27 22:11:13 -07:00
Thomas Arendsen Hein
ca22e16860 hgweb: Synchronised filelogentry to changelogentry. 2006-04-26 07:31:04 +02:00
Thomas Arendsen Hein
3fadcea9f6 Try harder to display node hashes in tags view in monospaced font.
Used to work around Firefox's behaviour if "Allow pages to choose their
own fonts" is disabled.
2006-04-26 07:03:10 +02:00
Thomas Arendsen Hein
cb026fadc5 hgweb templates: Don't word wrap "foo bar ago" (e.g. "3 months\nago")
This made log entries or hgwebdir index look ugly with certain browser widths.
2006-04-26 06:12:42 +02:00
Thomas Arendsen Hein
2b2d4fd5fe Use <link> tag instead if CDATA import for CSS stylesheets. Fixes issue200. 2006-04-25 18:50:40 +02:00
Alexis S. L. Carvalho
23a2185010 Fix filerevision-raw.tmpl
Two bugs:
- conteXt-type instead of conteNt-type
- trailing newline

The easiest way to fix the second one (and keep it fixed) is to put
everything inline in map-raw.
2006-04-19 11:39:34 -07:00
Thomas Arendsen Hein
ee03ece428 Group changes done by the same developer on the same with --style=changelog
Changeset and tags are appended to the change message for non-quiet and
non-verbose output, so grouping works.

Fixes last bit of issue110.
2006-04-01 21:37:08 +02:00
Thomas Arendsen Hein
f72c380299 Don't print filenames in braces for changelog style. 2006-04-01 20:56:55 +02:00
TK Soh
12159bb34c add missing filename title to gitweb's filelog page 2006-03-28 19:02:00 +02:00
TK Soh
8a6dd65e43 don't overquote description on gitweb summary page (issue 184) 2006-03-28 18:54:00 +02:00
TK Soh
27ace0dd4d show committer's name on gitweb's summary page (issue 137) 2006-03-26 07:28:52 -08:00
Vadim Gelfer
2e0f1be283 add changelog style to command line template.
to use, "hg log --style=changelog".  makes different output with no
flags, -q, -v, --debug.

templater module has new template filters for this.
email - committer email address
fill68 - refill text to 68 colums
fill76 - refill text to 76 colums
tabindent - prefix every not empty line with tab
shortdate - iso 8631 date, no time zone
stringify - turn template iterator into string
2006-03-21 23:29:21 -08:00
Vadim Gelfer
db2689cacf add changeset_quiet to templates. 2006-03-12 15:58:56 -08:00
Vadim Gelfer
e0191ece5f add tests for command line template.
fix default template problem found in test.
2006-03-04 21:12:53 -08:00
Vadim Gelfer
49cb97855a make --style=compact look for map-cmdline.compact.
change name of key in map file from changelog to changeset.
rename command map files to start with map-cmdline.
rename ui.logmap to ui.style in hgrc.

now --style=foo does this:
tries to open foo as file.
tries as map-cmdline.foo in template path.
tries as foo in template path.
2006-03-04 15:15:18 -08:00
Vadim Gelfer
5de8501662 fix some things people wanted to be cleaner.
rename --map-file to --style.
no more -t alias for --template.
update docs.
rename template entry in map files to changelog.
if --verbose, use changelog_verbose if there, else changelog.
2006-03-04 12:40:10 -08:00
Vadim Gelfer
8fe551cfbe add extra newline to verbose log template. asak found this. 2006-02-27 21:37:57 -08:00
Vadim Gelfer
db8f1ef9b9 print tags in compact template. 2006-02-27 13:25:40 -08:00
Vadim Gelfer
b5016aab02 let commands that show changesets use templates.
mechanism is same as hgweb templates.

old show_changeset code is still used for now if no template given,
because it is faster than template code when verbose or debug.

simple template can be given on command line using -t, --template.

example:

  hg log -t '{author|person}\n'

complex template can be put in template map file, given on command line
using --map-file.

we give two example map files:
map-log.compact prints 3 lines of output for every change.
map-log.verbose prints exact same output as default "hg log -v".

map files are searched where user says, then in template path as backup.

example:

  hg log --map-file map-log.compact

defaults can be set in hgrc with ui.logtemplate and ui.logmap.
2006-02-27 13:18:57 -08:00
Vadim Gelfer
e8d01e14ea use safer string parser for template engine. 2006-02-27 09:35:43 -08:00
Josef "Jeff" Sipek
50ccddca40 [hgweb] Added favicon to standard/gitweb templates 2006-02-22 01:06:17 -05:00
Matt Mackall
a318b34fa1 Merge with jeffpc 2006-02-21 17:36:27 -06:00
Thomas Arendsen Hein
07effec89b Merged RSS feed for tags from Peter van Dijk 2006-02-21 16:04:47 +01:00
Josef "Jeff" Sipek
c7fceb5172 [hgweb] Move CSS from headers into static files 2006-02-18 22:01:09 -05:00
Josef "Jeff" Sipek
e9671d8e11 Merge 2006-02-14 21:55:05 -05:00
Johannes Stezenbach
3d04a1848f add changenav at bottom of page
if one reads through the changelog and wants to go to the
previous or next page one needs the navigation links at
the bottom, not at the top of the page
2006-02-07 23:01:11 -06:00
Johannes Stezenbach
e5bc05a46d display revision numbers
revision numbers are useful for orientation when browsing
through the changelog
2006-02-06 17:35:22 -06:00
Matt Mackall
904ecd9ca5 Merge with crew 2006-02-05 22:18:38 -06:00
Josef "Jeff" Sipek
98503dee36 [hgweb] Added rename information to gitweb templates & misc cleanups
Fixed up file log template's title
Removed double entry for filelogentry in gitweb map file
2006-02-05 20:52:55 -05:00
Thomas Arendsen Hein
7d93bb0429 Merge with Peter van Dijk 2006-02-03 12:58:40 +01:00
Peter van Dijk
53e2d42bd5 remove escaping from decriptions on repo index page 2006-02-03 12:56:41 +01:00
Thomas Arendsen Hein
8dc011fb10 Added raw view for file annotate in hgweb. 2006-02-03 12:50:02 +01:00
Benoit Boissinot
481a5f04df hgweb/templates: remove unused vars from map-raw
annotateline contains html and it is unused
filenodelink is unused but should be defined
2006-02-03 11:54:16 +01:00
Benoit Boissinot
88cc0dc818 hgweb/templates: no need to escape the '<' '>' and '&' in raw templates 2006-02-03 11:54:12 +01:00
Peter van Dijk
7ab6d5942d add rss link to tags page 2006-02-03 11:23:34 +01:00
Peter van Dijk
9e3427d564 implement entriesnotip for tags in hgweb.py ; change entries to entriesnotip in templates/tags-rss.tmpl 2006-02-03 02:21:28 +01:00
Peter van Dijk
d48a492803 tags-rss support; still shows tip 2006-02-02 12:00:45 +01:00
Matt Mackall
d2f2e55e1e hgweb: show copy/rename links in file history 2006-01-29 17:10:38 +13:00
Peter van Dijk
c8cea7f5b8 unbreak templates/summary-gitweb.tmpl 2006-01-29 00:31:11 +01:00