Commit Graph

246 Commits

Author SHA1 Message Date
Brendan Cully
9c2bed2cfd hgweb: add raw manifest template 2006-12-19 17:03:34 -08:00
Matt Mackall
cdbe57fc80 hgweb: report detected character set
Add comments on overriding charset to CGI scripts
2006-12-03 18:47:05 -06:00
Brendan Cully
13601730e7 hgweb: add heads to gitweb summary 2006-10-24 13:31:01 -07:00
Edouard Gomez
67504f12fd Send encoding information in rss header 2006-12-21 20:41:56 +01:00
Thomas Arendsen Hein
b6713ee084 Add #motd# to gitweb pages. Needs to pass self.motd to index template, too. 2006-10-21 20:19:46 +02:00
Brendan Cully
0960978444 gitweb: add revision numbers to annotate changeset links 2006-10-19 16:15:01 -07:00
Brendan Cully
a47ef8b283 gitweb: add revision numbers to filerevision changeset links 2006-10-19 16:12:43 -07:00
Brendan Cully
34d1353b76 hgweb: add revision numbers to changeset parent/child links 2006-10-19 15:58:43 -07:00
Thomas Arendsen Hein
a67b9554ca Added extra changeset info to templater and map-cmdline.default. 2006-10-18 18:09:32 +02:00
Thomas Arendsen Hein
affb901953 Add new branch info to templater and use it in map-cmdline.default.
The template currently shows old (hg log -b style) branch tags, too,
but not in the same way as the built in changeset_printer.
2006-10-18 17:58:51 +02:00
Thomas Arendsen Hein
525802e3bf Adjust default cmdline style to really match verbose/debug log. 2006-10-18 12:17:02 +02:00
Brendan Cully
890887a258 Fix RSS URLs (closes issue396) 2006-10-16 11:18:06 -07:00
Brendan Cully
54071df886 Convert changenav bar from revisions to hashes (closes issue189) 2006-10-16 11:02:11 -07:00
Benoit Boissinot
24c1ce6af8 add footer to old style 2006-10-16 12:56:41 +02:00
Benoit Boissinot
31da9ceb93 fix rss template 2006-10-16 12:49:11 +02:00
Brendan Cully
2729969583 hgweb: hoist changenav up, and use it in the filelog 2006-10-15 23:51:28 -07:00
Brendan Cully
750f8d53a2 hgweb: link to file parents in filediff, rather than changeset parents 2006-10-15 21:20:15 -07:00
Brendan Cully
c3e4669b09 hgweb: add diff links in gitweb file revision page 2006-10-14 16:39:15 -07:00
Brendan Cully
787573732f hgweb: add changeset description to file revision page 2006-10-14 16:27:51 -07:00
Brendan Cully
b8bf954420 hgweb: better file rename links 2006-10-14 16:07:52 -07:00
Brendan Cully
66d9f73786 hgweb: add changeset description to annotate page 2006-10-14 15:28:45 -07:00
Thomas Arendsen Hein
d8afe3f4b9 gitweb: Fixed parent/child links when viewing a file revision. 2006-10-12 17:48:09 +02:00
Thomas Arendsen Hein
10593de67b Keep session variables when linking from hgwebdir's index to repositories. 2006-10-12 17:06:51 +02:00
Thomas Arendsen Hein
2b666e3a4f Fixed typo in gitweb templates. 2006-10-12 16:37:03 +02:00
Thomas Arendsen Hein
01e8022cb1 hgweb: Apply the new method of passing session variables to links. 2006-10-11 22:01:24 +02:00
Thomas Arendsen Hein
0a1b56c636 hgweb: Keep session variables (currently only style) in HTML forms, too.
Adjusted default and gitweb template for this.
2006-10-11 20:59:37 +02:00
Brendan Cully
7c6d11cbd1 gitweb: Add error text to error page 2006-10-11 16:49:53 -07:00
Brendan Cully
2d1a37400d gitweb: fix link on file name in filenodelink 2006-10-11 16:39:42 -07:00
Brendan Cully
79084fa005 gitweb: fix last change field in summary 2006-10-11 16:32:06 -07:00
Brendan Cully
312f6f2425 gitweb: add file diff view 2006-10-11 16:19:11 -07:00
Matt Mackall
7f2b842075 hgweb: add file sizes to manifest browsing 2006-10-10 00:07:46 -05:00
Brendan Cully
129a05272a hgweb: fix filerevision raw URL 2006-10-06 12:58:50 -07:00
Thomas Arendsen Hein
01715c2be9 Moved hgweb map-* files into their style directories and adjusted them. 2006-10-06 18:38:32 +02:00
Brendan Cully
d12d340200 Add {getentries} to default style 2006-10-05 15:04:15 -07:00
Brendan Cully
29f47b5d22 hgweb: convert gitweb to NWI 2006-10-05 14:27:14 -07:00
Brendan Cully
75729a9251 Update templates to use NewWebInterface 2006-10-04 17:04:40 -07:00
Brendan Cully
d94a0de91d Rename default style to old 2006-10-04 17:04:40 -07:00
Brendan Cully
ab57da91f6 hgweb: fix manifest link in gitweb summary 2006-10-04 11:14:33 -07:00
Thomas Arendsen Hein
dbb7dc577f Fix minor indentation problem in template-vars.txt 2006-10-03 11:54:11 +02:00
Brendan Cully
bdb8087de8 Move raw theme into subdirectory 2006-10-02 17:37:57 -07:00
Brendan Cully
3bf852b140 Move RSS theme into subdirectory 2006-10-02 17:35:41 -07:00
Brendan Cully
5063a3e237 Move gitweb theme into subdirectory 2006-10-02 17:30:45 -07:00
Brendan Cully
d5a29645bd Fix gitweb index archive link 2006-10-02 09:58:03 -07:00
Edouard Gomez
8c243b7a6c Add gitweb style hgwebdir 2006-09-21 21:24:53 +02:00
Brendan Cully
768e7d3ebd hgweb: kill off #filenode# 2006-09-29 16:26:09 -07:00
Brendan Cully
ebabaa1a54 hgweb: kill #manifest# 2006-09-29 16:26:09 -07:00
Brendan Cully
d1c28696d4 Show copies in hg log.
The format is:
copies: destination (source)...
2006-09-29 13:01:19 -07:00
Brendan Cully
2bba3f27c5 gitweb: cosmetic fixes.
Fix the padding around the changelog description.
Alternate row colours for the changeset file list.
2006-09-27 12:08:33 -07:00
Brendan Cully
96206c5322 hgweb: yield filenode as well as node in annotate, use filenode in annotateline 2006-09-27 12:08:32 -07:00
Brendan Cully
96b5443293 hgweb: make annotate line revisions point to annotation for that rev 2006-09-27 09:10:31 -07:00
Brendan Cully
0e540990a0 hgweb: fix annotate bugs
The parent and child links were broken.
2006-09-27 09:10:29 -07:00
TK Soh
7378a6b49a gitweb: add file links to filelog page 2006-08-31 12:51:02 -05:00
TK Soh
589912867b gitweb: add annotate links to changeset page 2006-08-31 12:31:55 -05:00
TK Soh
9f7123f5cd gitweb: fix annotate page display problem on IE (6.0)
Bad support of "white-space: pre" property.
2006-08-29 14:04:54 -05:00
TK Soh
9276d5d36c gitweb: fix file page display problem on IE (6.0)
Bad support of "white-space: pre" property.
2006-08-29 14:01:11 -05:00
TK Soh
56cd89c292 gitweb: fix issue 349 2006-08-29 13:28:38 -05:00
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