hgweb: move common vertex code to Graph.prototype
Just to give some context to the return values: vertex() needs to return two HTML elements as strings, <li> to be used as a background and a <li> to be shown in foreground. The latter was made obsolete recently when changesets started to be rendered server-side, but background elements are still useful for now.
Showing
- mercurial/templates/gitweb/graph.tmpl 2 additions, 16 deletionsmercurial/templates/gitweb/graph.tmpl
- mercurial/templates/monoblue/graph.tmpl 2 additions, 16 deletionsmercurial/templates/monoblue/graph.tmpl
- mercurial/templates/paper/graph.tmpl 2 additions, 16 deletionsmercurial/templates/paper/graph.tmpl
- mercurial/templates/spartan/graph.tmpl 2 additions, 15 deletionsmercurial/templates/spartan/graph.tmpl
- mercurial/templates/static/mercurial.js 15 additions, 0 deletionsmercurial/templates/static/mercurial.js
- tests/test-hgweb-commands.t 2 additions, 16 deletionstests/test-hgweb-commands.t
- tests/test-hgweb-empty.t 2 additions, 16 deletionstests/test-hgweb-empty.t
Loading
Please register or sign in to comment