[Lostwages] remove some tables and unnecessary markup

Alex Waite awaite2 at uiuc.edu
Tue May 22 00:42:45 CDT 2007


  This is my first submission to Wine, so please set me straight if I am
incorrect in anything.  This patch is merely to remove some superfluous
tables and use CSS instead.  I was unable to test the CSS since the
changes are to a .template file, but it should all work.
  Also, I'll repeat here an offer I made to Alexander Sørnes and Chris
Morgan in an e-mail.  I'm not quite sure how much documentation needs to
be done, but if there are portions of the site which need to be
re-written/updated/merged in English then I would be more than happy to
help with that as well.

---Alex
-------------- next part --------------
Index: winehq_styles.css
===================================================================
RCS file: /home/wine/lostwages/winehq_styles.css,v
retrieving revision 1.16
diff -u -r1.16 winehq_styles.css
--- winehq_styles.css	25 Oct 2005 00:04:20 -0000	1.16
+++ winehq_styles.css	22 May 2007 05:36:02 -0000
@@ -44,7 +44,7 @@
 .blueish            { background-color: #bed5f7; }
 
 /* text colors */
-.inverse            { color: #FFFFFF; }
+.inverse            { color: #FFFFFF; background: #000000; }
 .disabled           { color: #999999; }
 .normal             { color: #000000; }
 .error              { color: #ff0000; }
@@ -74,6 +74,7 @@
 .small              { font-size: 10px; }
 .big                { font-size: 14px; }
 .rowtitle           { background-color: black; color: white; font-weight: bold; }
+.commandWidth       { width: 500px; }
 
 /* Generic Buttons */
 .button             { background-color: #A50D0D; color: #ffffff; font-family: Sans-Serif; font-size: 12px; padding: 0; }
Index: templates/en/git.template
===================================================================
RCS file: /home/wine/lostwages/templates/en/git.template,v
retrieving revision 1.3
diff -u -r1.3 git.template
--- templates/en/git.template	26 Oct 2006 19:24:39 -0000	1.3
+++ templates/en/git.template	22 May 2007 05:36:02 -0000
@@ -24,7 +24,7 @@
     <li><a href="#docs">Documentation module available from Sourceforge</a>
 </ol>
 
-<p><img src="{$root}/images/grey_pixel.gif" width="100%" height=1 border=0 alt="-"></p>
+<hr />
 
 <a name="clone" class="hidden"></a>
 
@@ -32,14 +32,11 @@
 
 <p>To check out the entire Wine source tree, do:</p>
 
- <table width="500" border=0 cellpadding=10><tr><td class=black>
- <span class=inverse>
- git clone git://source.winehq.org/git/wine.git wine<br>
- </span>
- </td></tr>
- </table>
+<div class="inverse commandWidth">
+  <p>git clone git://source.winehq.org/git/wine.git wine</p>
+</div>
 
-<p><img src="{$root}/images/grey_pixel.gif" width="100%" height=1 border=0 alt="-"></p>
+<hr />
 
 <a name="uptodate" class="hidden"></a>
 
@@ -48,15 +45,12 @@
 <p>A quick way to clean up your tree after you've been modifying
    it and want to remove changes you haven't checked in is this: </p>
 
- <table width="500" border=0 cellpadding=10><tr><td class=black>
- <span class=inverse>
-  cd wine<br>
-  git diff-index -p HEAD &gt; total-<i>x.x.x</i>.diff<br>
-  patch -p1 -R &lt; total-<i>x.x.x</i>.diff<br>
-  git reset<br>
- </span>
- </td></tr>
- </table>
+<div class="inverse commandWidth">
+  <p>cd wine<br />
+  git diff-index -p HEAD &gt; total-<i>x.x.x</i>.diff<br />
+  patch -p1 -R &lt; total-<i>x.x.x</i>.diff<br />
+  git reset</p>
+</div>
 
 <p>Using the current x.x.x tags, you can keep a history of changes
 that were in your Wine tree.</p>
@@ -64,31 +58,25 @@
 <p>If you have made commits to the tree, and want to remove them all,
 you can use the following more dangerous command:</p>
 
- <table width="500" border=0 cellpadding=10><tr><td class=black>
- <span class=inverse>
-  git reset --hard origin<br>
- </span>
- </td></tr>
- </table>
+<div class="inverse commandWidth">
+  <p>git reset --hard origin</p>
+</div>
 
 <p>This will wipe out any local changes you have made, so use it with caution.</p>
 
-<p><img src="{$root}/images/grey_pixel.gif" width="100%" height=1 border=0 alt="-"></p>
+<hr />
 
 <h1>Staying Up-To-Date</h1>
 
 <p> First, make sure to clean your tree as described above, then
 run the following commands from the top level wine directory:</p>
 
- <table width="500" border=0 cellpadding=10><tr><td class=black>
- <span class=inverse>
-  git fetch<br>
-  git rebase origin<br>
- </span>
- </td></tr>
- </table>
+<div class="inverse commandWidth">
+  <p>git fetch<br />
+  git rebase origin</p>
+</div>
 
-<p><img src="{$root}/images/grey_pixel.gif" width="100%" height=1 border=0 alt="-"></p>
+<hr />
 
 <a name="sourcetree" class=hidden></a>
 
@@ -107,7 +95,7 @@
   <li><a href="http://source.winehq.org/git">source.winehq.org/git</a>, on the primary Git repository
 </ul>
 
-<p><img src="{$root}/images/grey_pixel.gif" width="100%" height=1 border=0 alt="-"></p>
+<hr />
 
 <a name="modules" class=hidden></a>
 
@@ -124,48 +112,36 @@
 
 <p>To login to the CVS server, run in a terminal:</p>
 
-<table width="500" border=0 cellpadding=10>
-  <tr><td class=black>
-    <span class=inverse>
-      CVSROOT=:pserver:cvs at cvs.winehq.org:/home/wine cvs login
-    </span>
-  </td></tr>
-</table>
+<div class="inverse commandWidth">
+  <p>CVSROOT=:pserver:cvs at cvs.winehq.org:/home/wine cvs login</p>
+</div>
 
 <p>Use &quot;cvs&quot; as the password (without the quotes).</p>
 
 <p>To get a git repository of one of the modules listed above
 create a new directory and in a terminal run in that directory:</p>
 
-<table width="550" border=0 cellpadding=10>
-  <tr><td class=black>
-    <span class=inverse>
-      git cvsimport -v -k -d :pserver:cvs at cvs.winehq.org:/home/wine MODULE<br/>
-    </span>
-  </td></tr>
-</table>
+<div class="inverse commandWidth">
+  <p>git cvsimport -v -k -d :pserver:cvs at cvs.winehq.org:/home/wine MODULE</p>
+</div>
 
 <p>Replace MODULE with one of the module names listed above.<br/>
 But be aware that this can take quite some time.</p>
 
-<p><img src="{$root}/images/grey_pixel.gif" width="100%" height=1 border=0 alt="-"></p>
+<hr />
 
 <a name="docs" class=hidden></a>
 
 <h1>Documentation module available from Sourceforge</h1>
 
-<p>The documentation lives in a separate CVS tree on Sourceforge.<br/>
+<p>The documentation lives in a separate CVS tree on Sourceforge.<br />
 To get a git repository of the documentation create a new directory and
 in a terminal run in that directory:</p>
-<table width="550" border=0 cellpadding=10>
-  <tr><td class=black>
-    <span class=inverse>
-      git cvsimport -v -k -d :pserver:anonymous at wine.cvs.sourceforge.net:/cvsroot/wine docs<br/>
-    </span>
-  </td></tr>
-</table>
 
-<p>But be aware that this can take quite some time.</p>
+<div class="inverse commandWidth">
+  <p>git cvsimport -v -k -d :pserver:anonymous at wine.cvs.sourceforge.net:/cvsroot/wine docs</p>
+</div>
 
+<p>But be aware that this can take quite some time.</p>
 
-<p>&nbsp;</p>
+<p>&nbsp;</p>
\ No newline at end of file


More information about the wine-patches mailing list