markup-validator commit: Do not make line numbers links when not showing source in grouped display mode.

changeset:   3111:98508e38bd58
tag:         tip
user:        Ville Skyttä <ville.skytta@iki.fi>
date:        Wed Jun 30 23:33:08 2010 +0300
files:       share/templates/en_US/error_loop_grouped.tmpl
description:
Do not make line numbers links when not showing source in grouped display mode.


diff -r c109cd86c94e -r 98508e38bd58 share/templates/en_US/error_loop_grouped.tmpl
--- a/share/templates/en_US/error_loop_grouped.tmpl	Wed Jun 30 00:02:38 2010 +0300
+++ b/share/templates/en_US/error_loop_grouped.tmpl	Wed Jun 30 23:33:08 2010 +0300
@@ -9,8 +9,8 @@
         <ul>
         <TMPL_LOOP NAME="instances">
                         <li>
-                          <em>Line <a href="#line-<TMPL_VAR NAME="line" 
-                              ESCAPE="HTML">"><TMPL_VAR NAME="line" ESCAPE="HTML"></a>,
+                          <em>Line <TMPL_IF NAME="opt_show_source"><a href="#line-<TMPL_VAR NAME="line" 
+                              ESCAPE="HTML">"></TMPL_IF><TMPL_VAR NAME="line" ESCAPE="HTML"><TMPL_IF NAME="opt_show_source"></a></TMPL_IF>,
                               column <TMPL_VAR NAME="char" ESCAPE="HTML"></em>:
                               <span><TMPL_VAR NAME="msg" ESCAPE="HTML"></span> 
                               <pre><code class="input"><TMPL_VAR NAME="src"></code></pre>

Received on Wednesday, 30 June 2010 20:33:37 UTC