Style cleanup
[squasher.git] / templates / logs.tpl
index 632483f72b0ce4f01a405e5802a742a10dc238e5..4d7b810545b557effb80d4f50c1ef315cf3b9e50 100644 (file)
@@ -5,42 +5,31 @@
 <link rel=stylesheet href="css/squasher.css">
 <title>Squasher</title>
 </head>
-<body align="center" style="min-width:1000px;">
-<div class="wrapper">
-<div class="container">
+<body>
+<div class="wrappercontainer">
 
-       <div class="banner">&nbsp;<div class="control">{if $user_level > 99}<a href="?">home</a>&nbsp;|&nbsp;<a href="?tools=access">access</a>&nbsp;|{/if}{if $user_level > 99}&nbsp;<a href="?tools=users">users</a>&nbsp;|&nbsp;<a href="?tools=logs">logs</a>&nbsp;|{/if}&nbsp;<a href="index.php?tools=logout">logout({$user_name})</a>&nbsp;</div></div>
-
-       <div class="spacer"></div>
+       <div class="banner">&nbsp;<div class="control">{if $user_level > 99}<a href="?">home</a>&nbsp;|&nbsp;<a href="?tools=access">access</a>&nbsp;|&nbsp;<a href="?tools=users">users</a>&nbsp;|&nbsp;<a href="?tools=logs">logs</a>&nbsp;|{/if}&nbsp;<a href="index.php?tools=logout">logout({$user_name})</a>&nbsp;</div></div>
 
        <div class="menucontainer">
 
-       <div class="menu">
-
-       <div class="menuhead">&nbsp;logs&nbsp;</div>
-
-       <div {if $logtype eq "all"     }class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=all'"      style="cursor:pointer" >&nbsp;all&nbsp;</div>
-       <div {if $logtype eq "delete"  }class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=delete'"   style="cursor:pointer" >&nbsp;delete&nbsp;</div>
-       <div {if $logtype eq "download"}class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=download'" style="cursor:pointer" >&nbsp;download&nbsp;</div>
-       <div {if $logtype eq "login"   }class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=login'"    style="cursor:pointer" >&nbsp;login&nbsp;</div>
-       <div {if $logtype eq "debug"   }class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=debug'"    style="cursor:pointer" >&nbsp;squasher&nbsp;</div>
+               <div class="menu">
 
-       </div>
-
-       <div class="clear"></div>
+                       <div class="menuhead">logs</div>
 
-       <div class="menu"></div>
+                       <a {if $logtype eq "all"     }class="selected"{/if} href="?tools=logs&logtype=all"     >all</a>
+                       <a {if $logtype eq "delete"  }class="selected"{/if} href="?tools=logs&logtype=delete"  >delete</a>
+                       <a {if $logtype eq "download"}class="selected"{/if} href="?tools=logs&logtype=download">download</a>
+                       <a {if $logtype eq "login"   }class="selected"{/if} href="?tools=logs&logtype=login"   >login</a>
+                       <a {if $logtype eq "debug"   }class="selected"{/if} href="?tools=logs&logtype=debug"   >squasher</a>
 
-       <div class="clear"></div>
+               </div>
 
        </div>
 
-       <div class="spacer"></div>
-
 <div class="content">
-  <table style="border-spacing:0;spacing:0;padding:0;width:990px;background-color:#C7F09E;">
+  <table class="log">
 
-   <tr class="logentry_header" align="center">
+   <tr class="logentry_header">
     <td width='*' colspan="5">Today</td>
    </tr>
 
     <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>
    </tr>
 {foreachelse}
-   <tr style="background-color:#C7F09E;" align="center">
+   <tr class="logentry_empty">
     <td width='*' colspan="3"><hr></td>
     <td width='120px'>Log is empty</td>
     <td width='*'><hr></td>
    </tr>
 {/foreach}
 
-   <tr class="logentry_header" align="center">
+   <tr class="logentry_header">
     <td width='*' colspan="5">Yesterday</td>
    </tr>
 
     <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>
    </tr>
 {foreachelse}
-   <tr style="background-color:#C7F09E;" align="center">
+   <tr class="logentry_empty">
     <td width='*' colspan="3"><hr></td>
     <td width='120px'>Log is empty</td>
     <td width='*'><hr></td>
    </tr>
 {/foreach}
 
-   <tr class="logentry_header" align="center">
+   <tr class="logentry_header">
     <td width='*' colspan="5">Last week</td>
    </tr>
 
     <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>
    </tr>
 {foreachelse}
-   <tr style="background-color:#C7F09E;" align="center">
+   <tr class="logentry_empty">
     <td width='*' colspan="3"><hr></td>
     <td width='120px'>Log is empty</td>
     <td width='*'><hr></td>
    </tr>
 {/foreach}
 
-   <tr class="logentry_header" align="center">
+   <tr class="logentry_header">
     <td width='*' colspan="5">Older</td>
    </tr>
 
     <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>
    </tr>
 {foreachelse}
-   <tr style="background-color:#C7F09E;" align="center">
+   <tr class="logentry_empty">
     <td width='*' colspan="3"><hr></td>
     <td width='120px'>Log is empty</td>
     <td width='*'><hr></td>
   </table>
 </div>
 
-       <div class="spacer"></div>
-
        <div class="bottomimage"></div>
-
-       <div class="clear"></div>
-
-       <div class="spacer"></div>
-
        <div class="footer">&nbsp;</div>
 </div>
-</div>
 {if $debug}{debug}{/if}
 </body>
 </html>