/util/hg_templates: 6a7b1f57b167: Improve the first indentation ...

Jorge Villase?or salinasv at gmail.com
Tue Oct 20 00:40:01 EDT 2015


Changeset: 6a7b1f57b1676b7e37b6ae9fd667ecd705282b4b
Author:	 Jorge Villase?or <salinasv at gmail.com>
Date:	 2015-10-19 21:38 -0700
Branch:	 default
URL: https://hg.pidgin.im/util/hg_templates/rev/6a7b1f57b167

Description:

Improve the first indentation on the file view

Fix the space in the line number block.
Patch from dx.

diffstat:

 gitweb/map |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (31 lines):

diff --git a/gitweb/map b/gitweb/map
--- a/gitweb/map
+++ b/gitweb/map
@@ -95,7 +95,7 @@ filecomparison = filecomparison.tmpl
 filelog = filelog.tmpl
 fileline = '
   <div style="font-family:monospace" class="parity{parity}">
-    <pre><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</pre>
+    <pre><a class="linenr" href="#{lineid}" id="{lineid}"> {linenumber}</a> {line|escape}</pre>
   </div>'
 annotateline = '
   <tr style="font-family:monospace" class="parity{parity}">
@@ -103,13 +103,13 @@ annotateline = '
       <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}"
          title="{node|short}: {desc|escape|firstline}">{author|user}</a>
     </td>
-    <td><pre><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a></pre></td>
+    <td><pre><a class="linenr" href="#{lineid}" id="{lineid}"> {linenumber}</a></pre></td>
     <td><pre>{line|escape}</pre></td>
   </tr>'
-difflineplus = '<span style="color:#008800;"><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</span>'
-difflineminus = '<span style="color:#cc0000;"><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</span>'
-difflineat = '<span style="color:#990099;"><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</span>'
-diffline = '<span><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</span>'
+difflineplus = '<span style="color:#008800;"><a class="linenr" href="#{lineid}" id="{lineid}"> {linenumber}</a> {line|escape}</span>'
+difflineminus = '<span style="color:#cc0000;"><a class="linenr" href="#{lineid}" id="{lineid}"> {linenumber}</a> {line|escape}</span>'
+difflineat = '<span style="color:#990099;"><a class="linenr" href="#{lineid}" id="{lineid}"> {linenumber}</a> {line|escape}</span>'
+diffline = '<span><a class="linenr" href="#{lineid}" id="{lineid}"> {linenumber}</a> {line|escape}</span>'
 
 comparisonblock ='
   <tbody class="block">



More information about the Commits mailing list