sapling/mercurial/templates/paper
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 hgweb: replace implicit <tbody> with explicit <thead> where appropriate 2015-02-06 15:52:55 +08:00
branches.tmpl hgweb: replace implicit <tbody> with explicit <thead> where appropriate 2015-02-06 15:52:55 +08:00
changeset.tmpl hgweb: link to revision by node hash in paper & coal 2015-06-18 17:06:18 +08:00
diffstat.tmpl hgweb: make stripes in diffstat with CSS 2013-07-13 18:06:57 +04:00
error.tmpl paper: define searchhint message in map file and use it in other templates 2013-07-25 01:12:25 +04:00
fileannotate.tmpl hgweb: link to revision by node hash in paper & coal 2015-06-18 17:06:18 +08:00
filecomparison.tmpl hgweb: link to revision by node hash in paper & coal 2015-06-18 17:06:18 +08:00
filediff.tmpl hgweb: link to revision by node hash in paper & coal 2015-06-18 17:06:18 +08:00
filelog.tmpl hgweb: fixed invalid atom-log feed url in file log page 2015-12-29 00:48:03 +09:00
filelogentry.tmpl hgweb: also display changeset bookmarks in file log (style=paper) 2015-05-15 12:19:51 +08:00
filerevision.tmpl hgweb: replace .sourcelast with .bottomline that does the same 2015-09-14 18:41:09 +08:00
footer.tmpl web: Made elapsed time calculation dynamic (javascript). 2011-04-28 17:02:39 +02: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 paper: define searchhint message in map file and use it in other templates 2013-07-25 01:12:25 +04:00
helptopics.tmpl templates: support linking to main help page 2015-12-30 17:26:33 -07:00
index.tmpl hgweb: replace implicit <tbody> with explicit <thead> where appropriate 2015-02-06 15:52:55 +08:00
manifest.tmpl hgweb: link to revision by node hash in paper & coal 2015-06-18 17:06:18 +08:00
map templates: differentiate between partial and full topic name 2015-12-30 17:01:28 -07:00
notfound.tmpl hgweb: urlescape all urls, HTML escape repo/tag/branch/... names 2013-02-01 20:43:35 +01:00
search.tmpl hgweb: put help link in paper/search.tmpl separately for consistency 2015-06-12 15:29:12 +08:00
shortlog.tmpl hgweb: don't dereference symbolic revision in paper & coal style (issue2296) 2015-06-16 16:07:39 +08:00
shortlogentry.tmpl hgweb: split some long lines in paper, gitweb and monoblue styles 2015-05-15 02:07:43 +08:00
tags.tmpl hgweb: replace implicit <tbody> with explicit <thead> where appropriate 2015-02-06 15:52:55 +08:00