diff --git a/contrib/wix/templates.wxs b/contrib/wix/templates.wxs index 9f460d8033..0d99e63085 100644 --- a/contrib/wix/templates.wxs +++ b/contrib/wix/templates.wxs @@ -85,6 +85,7 @@ + diff --git a/mercurial/templates/gitweb/graph.tmpl b/mercurial/templates/gitweb/graph.tmpl index 7ae9c8dc63..48503489d4 100644 --- a/mercurial/templates/gitweb/graph.tmpl +++ b/mercurial/templates/gitweb/graph.tmpl @@ -39,7 +39,7 @@ graph |
    -
      +
        {nodes%graphentry}
      @@ -58,39 +58,13 @@ graph.vertex = function(x, y, radius, color, parity, cur) \{ var bg = '
    • '; var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size; - var nstyle = 'padding-left: ' + left + 'px;'; - var tagspan = ''; - if (cur[7].length || cur[8].length || (cur[6][0] != 'default' || cur[6][1])) \{ - tagspan = ''; - if (cur[6][1]) \{ - tagspan += ''; - tagspan += cur[6][0] + ' '; - } else if (!cur[6][1] && cur[6][0] != 'default') \{ - tagspan += ''; - tagspan += cur[6][0] + ' '; - } - if (cur[7].length) \{ - for (var t in cur[7]) \{ - var tag = cur[7][t]; - tagspan += '' + tag + ' '; - } - } - if (cur[8].length) \{ - for (var t in cur[8]) \{ - var bookmark = cur[8][t]; - tagspan += '' + bookmark + ' '; - } - } - tagspan += ''; + var item = document.querySelector('[data-node="' + cur.node + '"]'); + if (item) \{ + item.style.paddingLeft = left + 'px'; } - var item = '
    • '; - item += '' + cur[3] + ''; - item += ' ' + tagspan + ''; - item += '' + cur[5] + ', by ' + cur[4] + '
    • '; - - return [bg, item]; + return [bg, '']; } diff --git a/mercurial/templates/gitweb/graphentry.tmpl b/mercurial/templates/gitweb/graphentry.tmpl new file mode 100644 index 0000000000..265e25198d --- /dev/null +++ b/mercurial/templates/gitweb/graphentry.tmpl @@ -0,0 +1,7 @@ +
    • + + {desc|strip|firstline|escape|nonempty} + + {alltags} + {date|age}, by {author|person} +
    • diff --git a/mercurial/templates/gitweb/map b/mercurial/templates/gitweb/map index 64689f0929..6040708cba 100644 --- a/mercurial/templates/gitweb/map +++ b/mercurial/templates/gitweb/map @@ -262,6 +262,7 @@ filecompchild = ' ' shortlog = shortlog.tmpl graph = graph.tmpl +graphentry = graphentry.tmpl phasetag = '{ifeq(phase, 'public', '', '{phase|escape} ')}' obsoletetag = '{if(obsolete, 'obsolete ')}' instabilitytag = '{instability|escape} ' diff --git a/tests/test-hgweb-commands.t b/tests/test-hgweb-commands.t index b208f57305..0e53383e21 100644 --- a/tests/test-hgweb-commands.t +++ b/tests/test-hgweb-commands.t @@ -1782,7 +1782,35 @@ Overviews
        -
          +