comparison mercurial/templates/gitweb/map @ 36322:f3fd4fe0506f

hgweb: show each obsfateentry on its own line Commits with more than one reason for being obsolete used to just show obsfate entries all on one line, and that doesn't look good. Let's show each entry on its own line. In paper and coal the lines are simply split using a <br> element, and in other hgweb themes each entry has its own table header. This is done by analogy with changeset parents and children -- in paper and coal they are all put into one table row, and everywhere else each one gets a separate row.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 19 Feb 2018 12:48:50 +0800
parents 7ec5925c971e
children 7c18798fc24d
comparison
equal deleted inserted replaced
36321:ef7b48e6388d 36322:f3fd4fe0506f
275 obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}' 275 obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}'
276 obsfateverb = '{obsfateverb(successors, markers)}' 276 obsfateverb = '{obsfateverb(successors, markers)}'
277 obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}' 277 obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}'
278 obsfateusers = '{if(obsfateusers(markers), ' by {join(obsfateusers(markers)%'{user|obfuscate}', ', ')}')}' 278 obsfateusers = '{if(obsfateusers(markers), ' by {join(obsfateusers(markers)%'{user|obfuscate}', ', ')}')}'
279 obsfatedate = '{if(obsfatedate(markers), ' {ifeq(min(obsfatedate(markers)), max(obsfatedate(markers)), '<span class="age">{min(obsfatedate(markers))|rfc822date}</span>', 'between <span class="age">{min(obsfatedate(markers))|rfc822date}</span> and <span class="age">{max(obsfatedate(markers))|rfc822date}</span>')}')}' 279 obsfatedate = '{if(obsfatedate(markers), ' {ifeq(min(obsfatedate(markers)), max(obsfatedate(markers)), '<span class="age">{min(obsfatedate(markers))|rfc822date}</span>', 'between <span class="age">{min(obsfatedate(markers))|rfc822date}</span> and <span class="age">{max(obsfatedate(markers))|rfc822date}</span>')}')}'
280 obsfateentry = '{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}' 280 obsfateentry = '
281 <tr>
282 <td>obsolete</td>
283 <td>{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}</td>
284 </tr>'
281 shortlogentry = ' 285 shortlogentry = '
282 <tr class="parity{parity}"> 286 <tr class="parity{parity}">
283 <td class="age"><i class="age">{date|rfc822date}</i></td> 287 <td class="age"><i class="age">{date|rfc822date}</i></td>
284 <td><i>{author|person}</i></td> 288 <td><i>{author|person}</i></td>
285 <td> 289 <td>