Move ud-ldap-cgi wml templates away from gif navbar to CSS navbar See http://lists...
authorSimon Paillard <simon.paillard@resel.enst-bretagne.fr>
Mon, 25 Jan 2010 20:54:23 +0000 (21:54 +0100)
committerMartin Zobel-Helas <zobel@debian.org>
Sun, 31 Jan 2010 10:22:35 +0000 (11:22 +0100)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
html/.wmlrc
html/template/common_translation.wml
html/template/header.wml
html/template/navbar.wml

index 2320f93..e2fa3b6 100644 (file)
@@ -8,3 +8,5 @@
 -D DISTRIB="http://www.debian.org/distrib"
 -D HOME="http://www.debian.org"
 -D PICS="http://www.debian.org/Pics"
+-D STYLE="style"
+-D CHARSET=utf-8
index fc4bfcf..3850f9a 100644 (file)
@@ -21,6 +21,9 @@
 <define-tag home whitespace=delete>
   <gettext>Home</gettext>
 </define-tag>
+<define-tag skipquicknav whitespace=delete>
+  <gettext>Skip Quicknav</gettext>
+</define-tag>
 <define-tag about whitespace=delete>
   <gettext>About</gettext>
 </define-tag>
index a31a0af..d86727d 100644 (file)
@@ -2,11 +2,11 @@
 
 <ifeq "$(DOCTYPE)" xhtml
    "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://ww w.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"
-   "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"
+   "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">"
 />
 # not using [AR: dir="RTL":] because apparently the whole page was flipped
 # and this wasn't desirable for them
-<html lang="$(CUR_ISO_LANG)"[FA: dir="RTL":]>
+<html lang="$(CUR_ISO_LANG)"[FA: dir="RTL":][HE: dir="RTL":]>
 {:
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=$(CHARSET)" />
   <meta name="Generator" content="WML $(WML_VERSION)" />
   <meta name="Modified"  content="$(WML_GEN_ISOTIME)" />
 {#style#}
+{#style#:
+<link href="$(HOME)/debian.css" rel="stylesheet" type="text/css" />
+
+<link href="$(HOME)/debian-$(CUR_ISO_LANG).css" rel="stylesheet" type="text/css" media="all"/>
+:#style#}
 </head>
-<body text="#000000" bgcolor="#FFFFFF" link="$(LINK:-#0000FF)" vlink="$(VLINK:-#800080)" alink="$(ALINK:-#FF0000)">
+<body>
index 5ce1e56..54a3987 100644 (file)
@@ -1,44 +1,25 @@
 #use wml::common_translation
 
-<table width="100%" align="center" border="0" cellpadding="3" cellspacing="0">
-<tr>
-  <td align="left" valign="middle">
-  <a href="$(HOME)/"><img src="$(HOME)/logos/openlogo-nd-50.png" border="0" hspace="0" vspace="0" alt="" /></a>
-  <a href="$(HOME)/" rel="start"><img src="$(PICS)/debian.png" border="0" hspace="0" vspace="0" alt="<debianproject/>" /></a>
-  </td>
-</tr>
-</table>
+<div id="header">
+   <div id="upperheader">
+   <div id="logo">
+  <a href="$(HOME)/"><img src="$(LOGOS:-$(HOME)/logos)/openlogo-nd-50.png" width="50" height="61" alt="" /></a>
+  <a href="$(HOME)/" rel="start"><img src="$(PICS)/debian.png" width="179" height="61" alt="<debianproject/>" /></a>
+  </div> <!-- end logo -->
+</div> <!-- end upperheader -->
 
 <!--UdmComment-->
-<table bgcolor="#DF0451" border="0" cellpadding="0" cellspacing="0" width="100%">
-<tr>
-<td valign="top">
-<img src="$(PICS)/red-upperleft.png" align="left" border="0" hspace="0" vspace="0" alt="" />
-</td>
-<td rowspan="2" align="center">
-<a href="$(INTRO)/about"><img src="$(PICS)/about.$(CUR_ISO_LANG).gif" align="middle" border="0" hspace="4" vspace="7" alt="<aboutdebian/>" /></a>
-<a href="$(HOME)/News/"><img src="$(PICS)/news.$(CUR_ISO_LANG).gif" align="middle" border="0" hspace="4" vspace="7" alt="<news/>" /></a>
-<a href="$(DISTRIB)/"><img src="$(PICS)/getting.\
-<if <file-exists "$(PICS)/getting.$(CUR_ISO_LANG).gif" /> "$(CUR_ISO_LANG)" "en" />\
-.gif" align="middle" border="0" hspace="4" vspace="7" alt="<gettingdebian/>" /></a>
-<a href="$(HOME)/support"><img src="$(PICS)/support.$(CUR_ISO_LANG).gif" align="middle" border="0" hspace="4" vspace="7" alt="<support/>" /></a>
-<a href="$(HOME)/devel/"><img src="$(PICS)/devel.$(CUR_ISO_LANG).gif" align="middle" border="0" hspace="4" vspace="7" alt="<develcorner/>" /></a>
-<a href="$(HOME)/sitemap" rel="contents"><img src="$(PICS)/sitemap.\
-<if <file-exists "$(PICS)/sitemap.$(CUR_ISO_LANG).gif" /> "$(CUR_ISO_LANG)" "en" />\
-.gif" align="middle" border="0" hspace="4" vspace="7" alt="<sitemap_short/>" /></a>
-<a href="$(SEARCH)"><img src="$(PICS)/search.$(CUR_ISO_LANG).gif" align="middle" border="0" hspace="4" vspace="7" alt="<search/>" /></a>
-</td>
-<td valign="top">
-<img src="$(PICS)/red-upperright.png" align="right" border="0" hspace="0" vspace="0" alt="" />
-</td>
-</tr>
-<tr>
-<td valign="bottom">
-<img src="$(PICS)/red-lowerleft.png" align="left" border="0" hspace="0" vspace="0" alt="" />
-</td>
-<td valign="bottom">
-<img src="$(PICS)/red-lowerright.png" align="right" border="0" hspace="0" vspace="0" alt="" />
-</td>
-</tr>
-</table>
+<div id="navbar">
+<p class="hidecss"><a href="#inner"><skipquicknav/></a></p>
+<ul>
+   <li><a href="$(INTRO)/about"><aboutdebian/></a></li>
+   <li><a href="$(HOME)/News/"><news/></a></li>
+   <li><a href="$(DISTRIB)/"><gettingdebian/></a></li>
+   <li><a href="$(HOME)/support"><support/></a></li>
+   <li><a href="$(HOME)/devel/"><develcorner/></a></li>
+   <li><a href="$(HOME)/sitemap"><sitemap_short/></a></li>
+   <li><a href="$(SEARCH)"><search/></a></li>
+</ul>
+</div> <!-- end navbar -->
+</div> <!-- end header -->
 <!--/UdmComment-->