sapling/mercurial/templates/monoblue
FUJIWARA Katsunori cd5e04a455 templates: use canvaswidth instead of fixed width for canvas (issue2683)
Before this patch, template files for "graph" web page use fixed width
size "480" for canvas element.

This causes pruned lanes and invisible vertexes, if there are 16 or
more vertical lanes at once. In such case, part of graph in right side
area over 480 is invisible, even though corresponded summary text
blocks are visible correctly.

This limitation isn't reasonable for workflow using many branches at
once (e.g. "one branch per issue" workflow).

There were changes below related to width of canvas:

  - 6c855f5350cd (templates: widen the graph canvas (issue2683)),
    released as a part of Mercurial 1.8.2

    According to the description, this assumed that 15 parallel
    branches was enough for ordinary workflow, and bumped width of
    canvas up from 224 to 480.

  - f5506d2a674c (hgweb: make graph data suitable for template usage),
    released as a part of Mercurial 2.3

    This introduced "canvaswidth" template keyword as a part of
    refactoring around graph rendering.

    But 'width="480"' of canvas element in template files wasn't
    replaced by 'width="{canvaswidth}"' in it (or subsequent one).

This patch uses dynamic value "{canvaswidth}" instead of fixed width
size "480" for canvas element.

This is posted for "stable", because:

  - this is re-fixing issue2683

  - this is simple enough for stable

  - using "{canvaswidth}" doesn't require any additional cost

    Calculation of canvaswidth is already implied as a part of "graph"
    web command.
2016-01-21 02:42:01 +09:00
..
bookmarks.tmpl monoblue: correct feed links on /branches, /tags and /bookmarks 2015-12-29 01:40:34 +08:00
branches.tmpl monoblue: correct feed links on /branches, /tags and /bookmarks 2015-12-29 01:40:34 +08:00
changelog.tmpl hgweb: don't dereference symbolic revision in monoblue style 2015-06-16 13:59:49 +08:00
changelogentry.tmpl hgweb: apply the websub filter to revision descriptions 2013-02-09 16:48:21 +01:00
changeset.tmpl monoblue: port code selection without line numbers from gitweb 2015-09-23 16:02:35 +08:00
error.tmpl hgweb: don't show summary link as active on error pages in monoblue 2015-06-30 22:15:58 +08:00
fileannotate.tmpl monoblue: add a link to the latest file revision 2015-10-12 15:20:04 +08:00
filecomparison.tmpl monoblue: add a link to the latest file revision 2015-10-12 15:20:04 +08:00
filediff.tmpl monoblue: add a link to the latest file revision 2015-10-12 15:20:04 +08:00
filelog.tmpl hgweb: don't dereference symbolic revision in monoblue style 2015-06-16 13:59:49 +08:00
filerevision.tmpl monoblue: add a link to the latest file revision 2015-10-12 15:20:04 +08:00
footer.tmpl monoblue: remove unused elements and related css 2015-08-11 13:45:54 +08:00
graph.tmpl templates: use canvaswidth instead of fixed width for canvas (issue2683) 2016-01-21 02:42:01 +09:00
header.tmpl hgweb: urlescape all urls, HTML escape repo/tag/branch/... names 2013-02-01 20:43:35 +01:00
help.tmpl monoblue: fix page subtitle on help pages 2015-09-03 22:25:16 +08:00
helptopics.tmpl templates: support linking to main help page 2015-12-30 17:26:33 -07:00
index.tmpl monoblue: remove unused elements and related css 2015-08-11 13:45:54 +08:00
manifest.tmpl hgweb: don't dereference symbolic revision in monoblue style 2015-06-16 13:59:49 +08:00
map templates: differentiate between partial and full topic name 2015-12-30 17:01:28 -07:00
notfound.tmpl hgweb: don't try to show repo on repo-not-found page in monoblue 2015-06-30 23:34:12 +08:00
search.tmpl hgweb: don't point file links at tip hash where it doesn't make sense 2015-06-12 18:34:10 +08:00
shortlog.tmpl hgweb: don't dereference symbolic revision in monoblue style 2015-06-16 13:59:49 +08:00
summary.tmpl monoblue: add archive links on summary page 2015-08-19 21:43:13 +08:00
tags.tmpl monoblue: correct feed links on /branches, /tags and /bookmarks 2015-12-29 01:40:34 +08:00