Mercurial > hg
comparison mercurial/templates/gitweb/map @ 31948:7a3fc3f3e89a
gitweb: handle "patch" query parameter in filelog view
As for paper style, in f36dc643ffdc, we display "diff" data as an additional
row in the table of revision entries for the gitweb template.
Also, as these additional diff rows have a white background, they may be
confused with log entry rows ("age", "author", "description", "links") of even
parity (parity0 also have a white background). So we disable parity colors for
log entry rows when diff is displayed and fix the color to the
"dark" parity (i.e. parity1 #f6f6f0) so that it's always distinguishable from
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Thu, 13 Apr 2017 10:04:09 +0200 |
parents | a816857b88b9 |
children | 58f3088aa2f5 |
comparison
equal
deleted
inserted
replaced
31947:6c08dfd19e0b | 31948:7a3fc3f3e89a |
---|---|
280 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> | | 280 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> | |
281 <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a> | 281 <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a> |
282 </td> | 282 </td> |
283 </tr>' | 283 </tr>' |
284 filelogentry = ' | 284 filelogentry = ' |
285 <tr class="parity{parity}"> | 285 <tr class="parity{if(patch, '1', '{parity}')}"> |
286 <td class="age"><i class="age">{date|rfc822date}</i></td> | 286 <td class="age"><i class="age">{date|rfc822date}</i></td> |
287 <td><i>{author|person}</i></td> | 287 <td><i>{author|person}</i></td> |
288 <td> | 288 <td> |
289 <a class="list" href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}"> | 289 <a class="list" href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}"> |
290 <b>{desc|strip|firstline|escape|nonempty}</b> | 290 <b>{desc|strip|firstline|escape|nonempty}</b> |
295 <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a> | | 295 <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a> | |
296 <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> | | 296 <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> | |
297 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a> | 297 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a> |
298 {rename%filelogrename} | 298 {rename%filelogrename} |
299 </td> | 299 </td> |
300 </tr>' | 300 </tr> |
301 {if(patch, '<tr><td colspan="4">{diff}</td></tr>')}' | |
301 archiveentry = ' | <a href="{url|urlescape}archive/{symrev}{extension}{ifeq(path,'/','',path|urlescape)}">{type|escape}</a> ' | 302 archiveentry = ' | <a href="{url|urlescape}archive/{symrev}{extension}{ifeq(path,'/','',path|urlescape)}">{type|escape}</a> ' |
302 indexentry = ' | 303 indexentry = ' |
303 <tr class="parity{parity}"> | 304 <tr class="parity{parity}"> |
304 <td> | 305 <td> |
305 <a class="list" href="{url|urlescape}{sessionvars%urlparameter}"> | 306 <a class="list" href="{url|urlescape}{sessionvars%urlparameter}"> |