diff options
author | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-09-01 03:43:48 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-09-01 03:57:00 +0200 |
commit | 79344b1efee7e914b8d23bd0dfd92664cf698c11 (patch) | |
tree | f58163e1eb3d60c3fcc5aa36cfb0389f7528b63b /template | |
parent | cd2e069816416dd42ed2528e4843c07309a31f27 (diff) |
W3C Validator (HTML 5 + XHTML 1.1 + CSS level 3)
Diffstat (limited to 'template')
-rw-r--r-- | template/domain-list.html | 22 | ||||
-rw-r--r-- | template/error.html | 7 | ||||
-rw-r--r-- | template/login.html | 62 |
3 files changed, 49 insertions, 42 deletions
diff --git a/template/domain-list.html b/template/domain-list.html index 3dae0bb..52d819e 100644 --- a/template/domain-list.html +++ b/template/domain-list.html @@ -1,11 +1,12 @@ -<html> +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>Domain names for <TMPL_VAR NAME=USER></title> <link href="/css/style.css" media="all" rel="stylesheet" type="text/css" /> </head> <body> - <div id=header> + <div id="header"> <div class="left column"> Root / </div> @@ -14,25 +15,28 @@ ><TMPL_VAR NAME=USER_LOCALPART>@<TMPL_VAR NAME=USER_DOMAINPART></a> | <a href="<TMPL_VAR NAME=URL>?a=logout">Log out</a> </div> - <br> + <br/> + </div> <h1>Manage domains</h1> - <table class=list> + <table class="list"> <thead> <tr class="odd"> - <th>Domain (<a href=<TMPL_VAR NAME=URL>/?a=AddDomain>add</a>)</th> + <th>Domain (<a href="<TMPL_VAR NAME=URL>/?a=AddDomain">add</a>)</th> <th>Permissions</th> <th>Description</th> <th>Active?</th> </tr> </thead> - <TMPL_LOOP NAME=DOMAIN> + <tbody> + <TMPL_LOOP NAME=DOMAINS> <TMPL_IF NAME=__even__><tr class="odd"><TMPL_ELSE><tr></TMPL_IF> <td><a href="<TMPL_VAR NAME=URL>/<TMPL_VAR NAME=DOMAIN>/"><TMPL_VAR NAME=DOMAIN></a></td> - <td><TMPL_IF NAME=PERMS><TMPL_VAR NAME=PERMS><TMPL_ELSE><span class=none>(none)</span></TMPL_IF></td> - <td><TMPL_IF NAME=DESCRIPTION><TMPL_VAR NAME=DESCRIPTION><TMPL_ELSE><span class=none>(none)</span></TMPL_IF></td> - <td><TMPL_IF NAME=ISACTIVE><span class=active>✔</span><TMPL_ELSE><span class=nonactive>✘</span></TMPL_IF></td> + <td><TMPL_IF NAME=PERMS><TMPL_VAR NAME=PERMS><TMPL_ELSE><span class="none">(none)</span></TMPL_IF></td> + <td><TMPL_IF NAME=DESCRIPTION><TMPL_VAR NAME=DESCRIPTION><TMPL_ELSE><span class="none">(none)</span></TMPL_IF></td> + <td><TMPL_IF NAME=ISACTIVE><span class="active">✔</span><TMPL_ELSE><span class="nonactive">✘</span></TMPL_IF></td> </tr> </TMPL_LOOP> + </tbody> </table> </body> </html> diff --git a/template/error.html b/template/error.html index 34a4762..d9d4eb1 100644 --- a/template/error.html +++ b/template/error.html @@ -1,4 +1,5 @@ -<html> +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title><TMPL_IF NAME=NAME> <TMPL_VAR NAME=NAME> </TMPL_IF></title> @@ -6,13 +7,13 @@ </head> <body> <TMPL_IF NAME=NAME> - <p>This is the <span class=error><TMPL_VAR NAME=NAME></span> page. + <p>This is the <span class="error"><TMPL_VAR NAME=NAME></span> page. You are not suppose to see this. If you think it is a bug, please report it to <a href="mailto:admin@fripost.org">admin@fripost.org</a>. </p> </TMPL_IF> - <TMPL_IF NAME=MESSAGE><p class=error><b><TMPL_VAR NAME=MESSAGE></b></p></TMPL_IF> + <TMPL_IF NAME=MESSAGE><p class="error"><b><TMPL_VAR NAME=MESSAGE></b></p></TMPL_IF> <hr/> <TMPL_IF NAME=URL><p><a href="<TMPL_VAR NAME=URL>">Back</a></p></TMPL_IF> diff --git a/template/login.html b/template/login.html index 676cc09..e0f648b 100644 --- a/template/login.html +++ b/template/login.html @@ -1,38 +1,40 @@ -<html> +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>Log In | Fripost's Administrator panel</title> <link href="/css/style.css" media="all" rel="stylesheet" type="text/css" /> </head> - <body class=loginform onLoad="document.loginform.authen_username.focus();"> - </br> - <a href=https://fripost.org - ><img alt=Fripost - src="/img/fripost_logo.png" - title="fripost.org|demokratisk e-post" - /></a> - <h2>Administrator Panel</h2> - </br> - </br> - <form class=loginform name=loginform - method=POST action="./" > - <table class=loginform> - <tr> - <td align="right">Username</td> - <td><input type="text" name="authen_username" size=20 /></td> - </tr> - <tr> - <td align="right">Password</td> - <td><input type="password" name="authen_password" size=20 /></td> - </tr> - <tr> - </table> - <div> - <input type="hidden" name="destination" value="<TMPL_VAR DESTINATION>" /> - <input type="submit" name="login" value="Log in" /> - </div> - </form> - <TMPL_IF NAME=ERROR><p class=error>Invalid username or password.</p></TMPL_IF> + <body class="loginform" onload="document.loginform.authen_username.focus();"> + <div> + <br/> + <a href="https://fripost.org" + ><img alt="Fripost" + src="/img/fripost_logo.png" + title="fripost.org|demokratisk e-post" + /></a> + <h2>Administrator Panel</h2> + <br/> + <br/> + <form class="loginform" name="loginform" + method="post" action="./" > + <table class="loginform"> + <tr> + <td class="label">Username</td> + <td><input type="text" name="authen_username" size="20" /></td> + </tr> + <tr> + <td class="label">Password</td> + <td><input type="password" name="authen_password" size="20" /></td> + </tr> + </table> + <div> + <input type="hidden" name="destination" value="<TMPL_VAR DESTINATION>" /> + <input type="submit" name="login" value="Log in" /> + </div> + </form> + <TMPL_IF NAME=ERROR><p class="error">Invalid username or password.</p></TMPL_IF> + </div> </body> </html> |