Commit Graph

340 Commits

Author SHA1 Message Date
Thomas Arendsen Hein
fdf4576462 Obfuscate (instead of just escape) contact/owner in gitweb summary.
This could contain an email address.
2008-01-01 17:12:37 +01:00
Jesse Glick
09abfa016d Atom/RSS logo display problem using min font size.
Using Minimum Font Size = 18 on Firefox, the Atom and RSS logos in a changeset
web page look crushed together. No need to specify an absolute width for text;
just use sensible padding instead.
2007-12-20 07:05:40 -05:00
Bryan O'Sullivan
53b644c083 hgweb: make notfound templates more informative 2007-11-28 08:38:06 -08:00
Bryan O'Sullivan
adfac2beda hgweb: flesh out raw templates 2007-11-28 08:37:33 -08:00
Patrick Mezard
cbf322b12c cmdutil: make "files" list all files, add "file_mods" for modified files 2007-11-24 20:16:59 +01:00
Patrick Mezard
8f3f01adea cmdutil: always expose "files_add", "files_del" and "manifest" templater properties 2007-11-24 17:56:15 +01:00
Adam Hupp
8fafdc321a extension for synax highlighting in the hgweb file revision view
Depends on the pygments syntax highlighting library:
http://pygments.org/
2007-11-10 17:54:57 -05:00
Thomas Arendsen Hein
23916758e6 hgweb: Show date of last change for each file in manifest 2007-08-31 11:18:29 +02:00
Robert Bachmann
39aeb8022a Atom support: replaced xhtml namespace prefix with default namespace 2007-08-30 18:55:56 +02:00
Robert Bachmann
ecb337b8cb Added support for the Atom syndication format 2007-08-30 16:42:17 +02:00
Brendan Cully
9924dc69e3 gitweb: add notfound template 2007-07-05 19:47:04 -07:00
Markus F.X.J. Oberhumer
43b8992e98 gitweb: do not mix shortlog and changelog in summary page. 2007-06-25 14:46:20 +02:00
Matt Mackall
0e05064142 gitweb: hide email addresses in shortlog with |person 2007-06-25 11:35:40 -05:00
Matt Mackall
e9f9dbad44 Make shortlog the default page in hgweb 2007-06-25 11:35:14 -05:00
Matt Mackall
840be93118 hgweb: improve shortlog formatting
shorten author with |person
don't shrink font (default font is presumed to be preferred reading size)
set widths based on font ems rather than page percents.
2007-06-25 11:30:05 -05:00
Thomas Arendsen Hein
3019bb7a0b Kill trailing spaces 2007-06-21 09:25:49 +02:00
Josef "Jeff" Sipek
066eaf6a84 gitweb: Display branch and tag labels
Pages which display labels:
- summary
- shortlog
- changelog
- changeset
- search
2007-06-01 19:56:39 -04:00
Thomas Arendsen Hein
d5b47506f2 merge with stable 2007-06-04 22:08:42 +02:00
Thomas Arendsen Hein
12e05b20f0 Obfuscate author in gitweb shortlog (issue578) 2007-06-04 22:05:47 +02:00
Thomas Arendsen Hein
0a5e6f77d2 Add archive download links to hgweb search template 2007-06-01 13:03:21 +02:00
Josef "Jeff" Sipek
77b18ca042 gitweb: Fixed-up search template
It seems that the search template has been forgoten over time, and needed
major revamping.
2007-05-31 20:12:40 -04:00
Josef "Jeff" Sipek
4e35e4bffc gitweb: Add search box to the summary page 2007-05-31 19:59:02 -04:00
Josef "Jeff" Sipek
fa8b3358b4 gitweb: file diff: Display metadata in same order as changeset does 2007-05-29 06:52:40 -04:00
Josef "Jeff" Sipek
82ea78db9e gitweb: file annotate: Display metadata in same order as changeset does 2007-05-29 11:16:57 -04:00
Josef "Jeff" Sipek
da522aa30f gitweb: file rev template: Display metadata in same order as changeset does 2007-05-29 11:10:28 -04:00
Josef "Jeff" Sipek
f714cffe12 gitweb: changeset template: remove manifest link from cset metadata 2007-05-29 11:07:33 -04:00
Josef "Jeff" Sipek
ceacc5e184 gitweb: shortlog: display nav links near the bottom 2007-05-29 07:00:36 -04:00
Josef "Jeff" Sipek
03896dcd20 gitweb: file log: display nav links near the bottom 2007-05-29 07:00:26 -04:00
Josef "Jeff" Sipek
64af18129f gitweb: file log template: removed excesive whitespace 2007-05-29 06:35:45 -04:00
Josef "Jeff" Sipek
0e1bc7bd9a hgweb: manifest: pass parity for the '[up]' link 2007-05-29 05:08:01 -04:00
Josef "Jeff" Sipek
402bb29e51 gitweb: manifest template: do not include trailing slash in directory names 2007-05-29 04:57:12 -04:00
Josef "Jeff" Sipek
34f3b8c299 gitweb: Add title separator to tags template 2007-05-29 03:37:03 -04:00
Josef "Jeff" Sipek
5b9b857015 gitweb: changelog template: removed excessive whitespace 2007-05-29 15:31:29 +02:00
Josef "Jeff" Sipek
4279b478ed gitweb: shortlog template: removed excessive whitespace, added title bar.
The title bar is currently empty, this is just a preparation for filling it
with content.
2007-05-29 15:30:40 +02:00
Josef "Jeff" Sipek
70e1ff4e8f gitweb: Fixed manifest template opening an extra div tag 2007-05-29 03:27:02 -04:00
Josef "Jeff" Sipek
0d97a1222b gitweb: Fix summary page ellipsis line colspans 2007-05-29 03:19:45 -04:00
Matt Mackall
e2dfe968ea Merge with stable 2007-04-16 12:37:30 -05:00
Alexis S. L. Carvalho
62e2a7bfb7 command line templates: add formatnode filter
This will print a full hash node with --debug and a short one otherwise.

Use it with some default templates and in map-cmdline.default to print
the parents.  This should fix issue538.
2007-04-16 13:00:23 -03:00
Alexis S. L. Carvalho
d6886d1abf hgweb: don't display heads in gitweb-style summary page 2007-03-27 01:41:25 -03:00
greg@maptuit.com
889f908913 hgweb: display named branches in gitweb-style summary page 2007-03-16 17:55:42 -04:00
Alexis S. L. Carvalho
b95f1add5a hgweb: allow static files to be served directly by the HTTP server 2007-02-15 08:51:32 -02:00
Brendan Cully
fa88c0d825 gitweb: prevent wrapping of "changeset | manifest" links 2007-01-27 15:43:16 -08:00
Benoit Boissinot
774b73b308 hgweb: add raw template to hgwebdir 2007-01-12 14:27:59 +01:00
Edouard Gomez
fa16bdc53b Send encoding information in rss header 2006-12-21 20:41:56 +01:00
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
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