mercurial/templates/gitweb/map
changeset 31948 7a3fc3f3e89a
parent 29991 a816857b88b9
child 32760 58f3088aa2f5
--- a/mercurial/templates/gitweb/map	Thu Apr 13 09:59:58 2017 +0200
+++ b/mercurial/templates/gitweb/map	Thu Apr 13 10:04:09 2017 +0200
@@ -282,7 +282,7 @@
     </td>
   </tr>'
 filelogentry = '
-  <tr class="parity{parity}">
+  <tr class="parity{if(patch, '1', '{parity}')}">
     <td class="age"><i class="age">{date|rfc822date}</i></td>
     <td><i>{author|person}</i></td>
     <td>
@@ -297,7 +297,8 @@
       <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a>
       {rename%filelogrename}
     </td>
-  </tr>'
+  </tr>
+  {if(patch, '<tr><td colspan="4">{diff}</td></tr>')}'
 archiveentry = ' | <a href="{url|urlescape}archive/{symrev}{extension}{ifeq(path,'/','',path|urlescape)}">{type|escape}</a> '
 indexentry = '
   <tr class="parity{parity}">