sapling/mercurial/templates/raw
Anton Shestakov 8859c1494a hgweb: use webutil.commonentry() for nodes (but not for jsdata yet) in /graph
This makes graphdata() simpler by using existing code that gets common
changeset properties for showing in hgweb. graphdata() is a nested function in
graph() that prepares entries for /graph view, but there are two different
lists of changesets prepared: "jsdata" for JavaScript-rendered graph and
"nodes" for everything else.

For "jsdata", properties "node", "user", "age" and "desc" are passed through
various template filters because we don't have these filters in JavaScript, so
the data has to be prepared server-side. But now that commonentry() is used for
producing "nodes" list (and it doesn't apply any filters), these filters need
to be added to the appropriate templates (only raw at this moment, everything
else either doesn't implement graph or uses JavaScript).

This is a bit of refactoring that will hopefully simplify future patches. The
end result is to have /graph that only renders the actual graph with nodes and
vertices in JavaScript, and the rest is done server-side. This way server-side
code can focus on showing a list of changesets, which is easy because we
already have /log, /shortlog, etc, and JavaScript code can be simplified,
making it easier to add obsolescence graph and other features.
2017-11-20 21:59:00 +08:00
..
changelog.tmpl hgweb: replace 'shortlog' with 'changelog' in raw changelog template 2013-08-16 21:41:19 +04:00
changeset.tmpl setup: install translation files as package data 2009-12-01 16:06:10 +01:00
error.tmpl setup: install translation files as package data 2009-12-01 16:06:10 +01:00
fileannotate.tmpl setup: install translation files as package data 2009-12-01 16:06:10 +01:00
filediff.tmpl setup: install translation files as package data 2009-12-01 16:06:10 +01:00
graph.tmpl hgweb: make graph data suitable for template usage 2012-05-21 00:20:05 +02:00
graphedge.tmpl hgweb: make graph data suitable for template usage 2012-05-21 00:20:05 +02:00
graphnode.tmpl hgweb: use webutil.commonentry() for nodes (but not for jsdata yet) in /graph 2017-11-20 21:59:00 +08:00
index.tmpl setup: install translation files as package data 2009-12-01 16:06:10 +01:00
logentry.tmpl hgweb: add changelog and search templates to raw style 2013-07-09 02:08:24 +04:00
manifest.tmpl setup: install translation files as package data 2009-12-01 16:06:10 +01:00
map hgweb: add changelog and search templates to raw style 2013-07-09 02:08:24 +04:00
notfound.tmpl setup: install translation files as package data 2009-12-01 16:06:10 +01:00
search.tmpl raw: show current search mode name at search results 2013-09-06 13:30:56 +04:00