annotate mercurial/templates/paper/graphentry.tmpl @ 35529:5afe0ca59b07

paper: make actual changeset entries have backgrounds on /graph This patch removes a separate container for backgrounds only and puts backgrounds on changeset elements themselves. This makes it so that JS code doesn't need to create background elements separately anymore. There's a bit of manipulating positions of elements: every changeset entry has a "fg" element that gets a higher z-index than <canvas> element. This prioritizes text information, so that even if it somehow gets close to the graph drawn on <canvas> (which has z-index of 5), it'll still be on top of it. This can happen if commit message has a long first line and browser window is narrow, for example.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 05 Jan 2018 18:46:06 +0800
parents ab9d8d298510
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
35219
5857eb81c1f3 paper: render changesets server-side on /graph page
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
1 <li data-node="{node|short}">
35529
5afe0ca59b07 paper: make actual changeset entries have backgrounds on /graph
Anton Shestakov <av6@dwimlabs.net>
parents: 35522
diff changeset
2 <div class="fg">
5afe0ca59b07 paper: make actual changeset entries have backgrounds on /graph
Anton Shestakov <av6@dwimlabs.net>
parents: 35522
diff changeset
3 <span class="desc">
5afe0ca59b07 paper: make actual changeset entries have backgrounds on /graph
Anton Shestakov <av6@dwimlabs.net>
parents: 35522
diff changeset
4 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape|nonempty}</a>
5afe0ca59b07 paper: make actual changeset entries have backgrounds on /graph
Anton Shestakov <av6@dwimlabs.net>
parents: 35522
diff changeset
5 </span>
5afe0ca59b07 paper: make actual changeset entries have backgrounds on /graph
Anton Shestakov <av6@dwimlabs.net>
parents: 35522
diff changeset
6 {alltags}
5afe0ca59b07 paper: make actual changeset entries have backgrounds on /graph
Anton Shestakov <av6@dwimlabs.net>
parents: 35522
diff changeset
7 <div class="info"><span class="age">{date|rfc822date}</span>, by {author|person}</div>
5afe0ca59b07 paper: make actual changeset entries have backgrounds on /graph
Anton Shestakov <av6@dwimlabs.net>
parents: 35522
diff changeset
8 </div>
35219
5857eb81c1f3 paper: render changesets server-side on /graph page
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
9 </li>