project list page is now valid xhtml
project list page is now valid xhtml

Signed-off-by: Chris Han <xiphux@gmail.com>

--- a/templates/header.tpl
+++ b/templates/header.tpl
@@ -24,17 +24,17 @@
     </style>
     {/if}
     {if $javascript}
-    <script language="javascript">
+    <script type="text/javascript">
       var GITPHP_RES_LOADING="{t escape='js'}Loading…{/t}";
       var GITPHP_RES_LOADING_BLAME_DATA="{t escape='js'}Loading blame data…{/t}";
     </script>
     <link rel="stylesheet" href="css/ext/jquery.qtip.css" type="text/css" />
-    <script language="javascript" src="js/ext/jquery-1.4.2.min.js"></script>
-    <script language="javascript" src="js/ext/jquery.qtip.min.js"></script>
-    <script language="javascript" src="js/tooltips.js"></script>
-    <script language="javascript" src="js/lang.js"></script>
+    <script type="text/javascript" src="js/ext/jquery-1.4.2.min.js"></script>
+    <script type="text/javascript" src="js/ext/jquery.qtip.min.js"></script>
+    <script type="text/javascript" src="js/tooltips.js"></script>
+    <script type="text/javascript" src="js/lang.js"></script>
     {foreach from=$extrascripts item=script}
-    <script language="javascript" src="{$script}"></script>
+    <script type="text/javascript" src="{$script}"></script>
     {/foreach}
     {/if}
     {$smarty.capture.header}
@@ -47,18 +47,20 @@
       {if $supportedlocales}
       <div class="lang_select">
         <form action="{$SCRIPT_NAME}" method="get" id="frmLangSelect">
+         <div>
 	{foreach from=$requestvars key=var item=val}
 	{if $var != "l"}
 	<input type="hidden" name="{$var}" value="{$val}" />
 	{/if}
 	{/foreach}
-	<label for="l">{t}language:{/t}</label>
+	<label for="selLang">{t}language:{/t}</label>
 	<select name="l" id="selLang">
 	  {foreach from=$supportedlocales key=locale item=language}
 	    <option {if $locale == $currentlocale}selected="selected"{/if} value="{$locale}">{if $language}{$language} ({$locale}){else}{$locale}{/if}</option>
 	  {/foreach}
 	</select>
 	<input type="submit" value="{t}set{/t}" id="btnLangSet" />
+         </div>
 	</form>
       </div>
       {/if}

--- a/templates/projectlist.tpl
+++ b/templates/projectlist.tpl
@@ -5,7 +5,6 @@
  *
  *  Copyright (C) 2009 Christopher Han <xiphux@gmail.com>
  *}
-
 {include file='header.tpl'}
 
 <div class="index_header">
@@ -63,9 +62,9 @@
 
     <tr class="{cycle values="light,dark"}">
       <td>
-        <a href="{$SCRIPT_NAME}?p={$proj->GetProject()|urlencode}&a=summary" class="list {if $currentcategory != ''}indent{/if}">{$proj->GetProject()}</a>
+        <a href="{$SCRIPT_NAME}?p={$proj->GetProject()|urlencode}&amp;a=summary" class="list {if $currentcategory != ''}indent{/if}">{$proj->GetProject()}</a>
       </td>
-      <td><a href="{$SCRIPT_NAME}?p={$proj->GetProject()|urlencode}&a=summary" class="list">{$proj->GetDescription()}</a></td>
+      <td><a href="{$SCRIPT_NAME}?p={$proj->GetProject()|urlencode}&amp;a=summary" class="list">{$proj->GetDescription()}</a></td>
       <td><em>{$proj->GetOwner()}</em></td>
       <td>
         {assign var=projecthead value=$proj->GetHeadCommit()}
@@ -80,13 +79,13 @@
 	{/if}
       </td>
       <td class="link">
-        <a href="{$SCRIPT_NAME}?p={$proj->GetProject()|urlencode}&a=summary">{t}summary{/t}</a>
+        <a href="{$SCRIPT_NAME}?p={$proj->GetProject()|urlencode}&amp;a=summary">{t}summary{/t}</a>
 	{if $projecthead}
 	| 
-	<a href="{$SCRIPT_NAME}?p={$proj->GetProject()|urlencode}&a=shortlog">{t}shortlog{/t}</a> | 
-	<a href="{$SCRIPT_NAME}?p={$proj->GetProject()|urlencode}&a=log">{t}log{/t}</a> | 
-	<a href="{$SCRIPT_NAME}?p={$proj->GetProject()|urlencode}&a=tree">{t}tree{/t}</a> | 
-	<a href="{$SCRIPT_NAME}?p={$proj->GetProject()|urlencode}&a=snapshot&h=HEAD">{t}snapshot{/t}</a>
+	<a href="{$SCRIPT_NAME}?p={$proj->GetProject()|urlencode}&amp;a=shortlog">{t}shortlog{/t}</a> | 
+	<a href="{$SCRIPT_NAME}?p={$proj->GetProject()|urlencode}&amp;a=log">{t}log{/t}</a> | 
+	<a href="{$SCRIPT_NAME}?p={$proj->GetProject()|urlencode}&amp;a=tree">{t}tree{/t}</a> | 
+	<a href="{$SCRIPT_NAME}?p={$proj->GetProject()|urlencode}&amp;a=snapshot&amp;h=HEAD">{t}snapshot{/t}</a>
 	{/if}
       </td>
     </tr>

comments