- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 16 May 2005 08:41:48 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/share/templates/en_US In directory hutz:/tmp/cvs-serv14175/share/templates/en_US Modified Files: invalid.tmpl valid.tmpl Added Files: error_loop.tmpl Log Message: First attempt at fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=1393 Not very elegant yet (can be streamlined, since I am basically adding to the case valid what was already used for case invalid) and a bit clumsy due to templating not able to test beyond the existence of a variable... Index: valid.tmpl =================================================================== RCS file: /sources/public/validator/share/templates/en_US/valid.tmpl,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- valid.tmpl 19 Mar 2005 14:26:59 -0000 1.10 +++ valid.tmpl 16 May 2005 08:41:45 -0000 1.11 @@ -8,6 +8,9 @@ <dt><a href="http://www.w3.org/2001/06tips/">Tip Of The Day</a>:</dt> <dd><a href="<TMPL_VAR NAME="tip_uri" ESCAPE="HTML">"><TMPL_VAR NAME="tip_slug"></a></dd> </dl> + +<TMPL_INCLUDE NAME="error_loop.tmpl"> + <p> <TMPL_IF NAME="is_upload"> The uploaded document "<TMPL_VAR NAME="file_uri" ESCAPE="HTML">" Index: invalid.tmpl =================================================================== RCS file: /sources/public/validator/share/templates/en_US/invalid.tmpl,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- invalid.tmpl 10 May 2005 07:13:43 -0000 1.11 +++ invalid.tmpl 16 May 2005 08:41:45 -0000 1.12 @@ -12,33 +12,7 @@ an SGML parser. </p> </TMPL_IF> - <ol> -<TMPL_IF NAME="opt_show_source"> - <TMPL_LOOP NAME="file_errors"> - <li> - <em>Line <a href="#line-<TMPL_VAR NAME="line" ESCAPE="HTML">"><TMPL_VAR NAME="line" ESCAPE="HTML"></a>, - column <TMPL_VAR NAME="char" ESCAPE="HTML"></em>: - <span class="msg<TMPL_IF NAME="class"> <TMPL_VAR NAME="class"></TMPL_IF>"><TMPL_VAR NAME="msg" ESCAPE="HTML"></span> -<TMPL_IF NAME="uri">(<a href="<TMPL_VAR NAME="uri" ESCAPE="HTML">">explain...</a>)</TMPL_IF>. -<pre><code class="input"><TMPL_VAR NAME="src"></code></pre> -<TMPL_IF NAME="expl"><TMPL_VAR NAME="expl"></TMPL_IF> - </li> - </TMPL_LOOP> -<TMPL_ELSE> - <TMPL_LOOP NAME="file_errors"> - <li> - <em>Line <TMPL_VAR NAME="line" ESCAPE="HTML"> - column <TMPL_VAR NAME="char" ESCAPE="HTML"></em>: - <span class="msg<TMPL_IF NAME="class"> <TMPL_VAR NAME="class"></TMPL_IF>"><TMPL_VAR NAME="msg" ESCAPE="HTML"></span> -<TMPL_IF NAME="uri">(<a href="<TMPL_VAR NAME="uri" ESCAPE="HTML">">explain...</a>)</TMPL_IF>. -<pre><code class="input"><TMPL_VAR NAME="src"></code></pre> -<TMPL_IF NAME="expl"><TMPL_VAR NAME="expl"></TMPL_IF> - </li> - </TMPL_LOOP> -</TMPL_IF> - </ol> -<TMPL_IF NAME="opt_verbose"> - <script type="text/javascript" src="loadexplanation.js"></script> -</TMPL_IF> +<TMPL_INCLUDE NAME="error_loop.tmpl"> + </div> --- NEW FILE: error_loop.tmpl --- <ol> <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">Info</TMPL_IF><TMPL_IF NAME="err_type_warn">Warning</TMPL_IF><TMPL_IF NAME="err_type_err">Error</TMPL_IF></span> <em>Line <a href="#line-<TMPL_VAR NAME="line" ESCAPE="HTML">"><TMPL_VAR NAME="line" ESCAPE="HTML"></a>, column <TMPL_VAR NAME="char" ESCAPE="HTML"></em>: <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>. <pre><code class="input"><TMPL_VAR NAME="src"></code></pre> <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">Info</TMPL_IF><TMPL_IF NAME="err_type_warn">Warning</TMPL_IF><TMPL_IF NAME="err_type_err">Error</TMPL_IF></span> <em>Line <TMPL_VAR NAME="line" ESCAPE="HTML"> column <TMPL_VAR NAME="char" ESCAPE="HTML"></em>: <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>.<pre><code class="input"><TMPL_VAR NAME="src"></code></pre><TMPL_IF NAME="expl"><TMPL_VAR NAME="expl"></TMPL_IF> </li> </TMPL_LOOP> </TMPL_IF> </ol> <TMPL_IF NAME="opt_verbose"> <script type="text/javascript" src="loadexplanation.js"></script> </TMPL_IF>
Received on Monday, 16 May 2005 09:43:14 UTC