W3C home > Mailing lists > Public > www-validator-cvs@w3.org > May 2010

validator/share/templates/en_US error_loop.tmpl,1.10,1.11

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 07 May 2010 18:27:49 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1OASH7-0006UJ-Ak@lionel-hutz.w3.org>
Update of /sources/public/validator/share/templates/en_US
In directory hutz:/tmp/cvs-serv24925/share/templates/en_US

Modified Files:
	error_loop.tmpl 
Log Message:
Clean up duplicate code (for show source/not cases).

Index: error_loop.tmpl
===================================================================
RCS file: /sources/public/validator/share/templates/en_US/error_loop.tmpl,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- error_loop.tmpl	7 May 2010 18:17:38 -0000	1.10
+++ error_loop.tmpl	7 May 2010 18:27:47 -0000	1.11
@@ -1,26 +1,15 @@
 <TMPL_IF NAME="has_errors"><ol id="error_loop"></TMPL_IF>
-<TMPL_IF NAME="opt_show_source">
-  <TMPL_LOOP NAME="file_errors">
-      <li<TMPL_IF NAME="class"> class="<TMPL_VAR NAME="class">"</TMPL_IF>>
-<span class="err_type"><TMPL_IF NAME="err_type_info"><img src="images/info_icons/info.png" alt="Info" title="Info" /></TMPL_IF><TMPL_IF NAME="err_type_warn"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></TMPL_IF><TMPL_IF NAME="err_type_err"><img src="images/info_icons/error.png" alt="Error" title="Error" /></TMPL_IF></span>
-        <TMPL_IF NAME="line"><em>Line <a href="#line-<TMPL_VAR NAME="line" ESCAPE="HTML">"><TMPL_VAR NAME="line" ESCAPE="HTML"></a><TMPL_IF NAME="char">,
-            Column <TMPL_VAR NAME="char" ESCAPE="HTML"></TMPL_IF></em>:</TMPL_IF>
-        <span class="msg"><TMPL_VAR NAME="msg" ESCAPE="HTML"></span>
-<TMPL_IF NAME="uri">(<a href="<TMPL_VAR NAME="uri" ESCAPE="HTML">">explain...</a>)</TMPL_IF>
-<TMPL_IF NAME="src"><pre><code class="input"><TMPL_VAR NAME="src"></code></pre></TMPL_IF>
-<TMPL_IF NAME="expl"><TMPL_VAR NAME="expl"></TMPL_IF>
-      </li>
-  </TMPL_LOOP>
-<TMPL_ELSE>
-  <TMPL_LOOP NAME="file_errors">
-      <li<TMPL_IF NAME="class"> class="<TMPL_VAR NAME="class">"</TMPL_IF>>
-          <span class="err_type"><TMPL_IF NAME="err_type_info"><img src="images/info_icons/info.png" alt="Info" title="Info" /></TMPL_IF><TMPL_IF NAME="err_type_warn"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></TMPL_IF><TMPL_IF NAME="err_type_err"><img src="images/info_icons/error.png" alt="Error" title="Error" /></TMPL_IF></span>
-        <TMPL_IF NAME="line"><em>Line <TMPL_VAR NAME="line" ESCAPE="HTML"><TMPL_IF NAME="char">, Column <TMPL_VAR NAME="char" ESCAPE="HTML"></TMPL_IF></em>:</TMPL_IF>
-        <span class="msg"><TMPL_VAR NAME="msg" ESCAPE="HTML"></span>
-<TMPL_IF NAME="uri">(<a href="<TMPL_VAR NAME="uri" ESCAPE="HTML">">explain...</a>)</TMPL_IF>
-<TMPL_IF NAME="src"><pre><code class="input"><TMPL_VAR NAME="src"></code></pre></TMPL_IF><TMPL_IF NAME="expl"><TMPL_VAR NAME="expl"></TMPL_IF>      </li>
-  </TMPL_LOOP>
-</TMPL_IF>    
+<TMPL_LOOP NAME="file_errors">
+  <li<TMPL_IF NAME="class"> class="<TMPL_VAR NAME="class">"</TMPL_IF>>
+    <span class="err_type"><TMPL_IF NAME="err_type_info"><img src="images/info_icons/info.png" alt="Info" title="Info" /></TMPL_IF><TMPL_IF NAME="err_type_warn"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></TMPL_IF><TMPL_IF NAME="err_type_err"><img src="images/info_icons/error.png" alt="Error" title="Error" /></TMPL_IF></span>
+    <TMPL_IF NAME="line"><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><TMPL_IF NAME="char">,
+        Column <TMPL_VAR NAME="char" ESCAPE="HTML"></TMPL_IF></em>:</TMPL_IF>
+    <span class="msg"><TMPL_VAR NAME="msg" ESCAPE="HTML"></span>
+    <TMPL_IF NAME="uri">(<a href="<TMPL_VAR NAME="uri" ESCAPE="HTML">">explain...</a>)</TMPL_IF>
+    <TMPL_IF NAME="src"><pre><code class="input"><TMPL_VAR NAME="src"></code></pre></TMPL_IF>
+    <TMPL_IF NAME="expl"><TMPL_VAR NAME="expl"></TMPL_IF>
+  </li>
+</TMPL_LOOP>
 <TMPL_IF NAME="has_errors"></ol></TMPL_IF>
 
 <TMPL_INCLUDE NAME="backtop.tmpl">
Received on Friday, 7 May 2010 18:27:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:42 UTC