]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Improved html and css code
authorDavide Franco <bacula-dev@dflc.ch>
Mon, 29 Nov 2010 14:37:44 +0000 (15:37 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:39:41 +0000 (14:39 +0200)
gui/bacula-web/index.php
gui/bacula-web/style/default.css
gui/bacula-web/templates/index.tpl
gui/bacula-web/templates/last_run_report.tpl
gui/bacula-web/templates/volumes.tpl

index cab265a5e8985eb4bba1c84629fc917da981dce3..e3591c24503077e18fcdfeab5f1b5c5951a1c900 100644 (file)
@@ -153,7 +153,7 @@ if ( $mode == "Lite" && $_GET['Full_popup'] == "yes" ) {
         switch( $dbSql->driver )
                {
                        case 'mysql':
-                               $query  = "SELECT JobId, Name, EndTime, JobStatus";
+                               $query  = "SELECT JobId, Name, EndTime, JobStatus ";
                                $query .= "FROM Job ";
                                $query .= "WHERE EndTime <= NOW() and UNIX_TIMESTAMP(EndTime) > UNIX_TIMESTAMP(NOW())-86400 and JobStatus!='T'";
                        break;
index 0462f3f64e69358f8a2076633d36a92023ac66e6..0a39e19472794727cd737057ec249c4c12da1ad3 100644 (file)
@@ -93,8 +93,8 @@ body{
 
 .box table
 {
margin-left: 5px;
- margin-right: 5px;
width: 100%;
+ margin: 0px;
 }
 .box table tr td
 {
@@ -105,6 +105,13 @@ body{
  font-weight: bold;
  width: 150px;
  text-align: left;
+ padding-left: 3px;
+}
+.box table tr td.info
+{
+ text-align:right; 
+ padding-right: 8em;
+ font-weight: bold;
 }
 
 table {
index 9f70c4ab76c7500eb128defd76a302afd63a0d1f..38bcd304e6921f94a889473349b6b4860c32187d 100644 (file)
   <!-- General information -->
   <div class="box">
        <p class="title">General informations</p>
-       <table>
+       <table width="90%">
          <tr>
-           <td class="label">{t}Clients{/t}</td> <td>{$clientes_totales}</td>
+           <td class="label">{t}Clients{/t}</td> <td class="info">{$clientes_totales}</td>
          </tr>
          <tr>
-               <td class="label">{t}Total bytes stored{/t}:</td> <td>{$bytes_stored}</td>
+               <td class="label">{t}Total bytes stored{/t}:</td> <td class="info">{$bytes_stored}</td>
          </tr>
          <tr>
-               <td class="label">{t}Total files:{/t}</td> <td>{$files_totales}</td>
+               <td class="label">{t}Total files:{/t}</td> <td class="info">{$files_totales} file(s)</td>
          </tr>
          <tr>
-               <td class="label">{t}Database size{/t}:</td> <td>{$database_size}</td>
+               <td class="label">{t}Database size{/t}:</td> <td class="info">{$database_size}</td>
          </tr>
          <tr>
                <td colspan=2 align=center>
index 6d0c5c6758e2e7496a8c9169e3fe101e6510f61a..bec4bb180ae3d96dff7e1c3bb497e174f57c0d70 100644 (file)
        </td>
  </tr>
 -->
-{if $mode == "Lite" && $smarty.get.Full_popup != "yes"}
-<table width="100%">
+{* {if $mode == "Lite" && $smarty.get.Full_popup != "yes"} *}
+<table>
  <tr>
-       <td>
-               <b>{t}Errors:{/t}</b>
-       </td>
-       <td style="font-size: 13px; color: blue">
-               {$status}
-       </td>
+       <td class="label">Failed jobs</td> <td class="info">{$jobserror}</td>
  </tr>
-
  <tr>
-       <td>
-               <b>{t}Terminated Jobs:{/t}</b>
-       </td>
-       <td style="font-size: 13px; color: blue">
-               {$total_jobs}
-       </td>
+       <td class="label">Completed jobs</td> <td class="info">{$total_jobs}</td>
  </tr> 
  <tr>
-       <td>
-               <b>{t}Total time spent to do backup:{/t}</b>
-       </td> 
-       <td style="font-size: 13px; color: blue">
-               {$TotalElapsed}
-       </td>
+       <td class="label">Backup elapsed time</td> <td class="info">{$totalElapsed}</td>
  </tr>
  <tr>
-       <td>
-               <b>{t}Bytes transferred last 24h{/t}</b>
-       </td> 
-       <td style="font-size: 13px; color: blue">
-               {$bytes_totales}
-       </td>
+       <td class="label">Transferred bytes</td> <td class="info">{$bytes_totales}</td>
  </tr> 
  <tr>
        <td colspan=2 align=center>
                <a href="javascript:OpenWin('index.php?Full_popup=yes','490','350')">{t}Show details{/t}</a>
        </td>
  </tr>
- </table>
+</table>
  
- {if $status != 0}
+{* {if $status != 0} *}
 <table>
        <tr>
                <td colspan=2>
                </td>
        </tr>
 </table>       
- {/if}
+ {* {/if} *}
 </div> <!-- end div box --> 
  
 <div class="box">
      </tr>
    </table>
  </form>
-{else if #mode# == "Full" || $smarty.get.Full_popup == "yes"}
+{* {else if #mode# == "Full" || $smarty.get.Full_popup == "yes"} *}
 <table>
        <tr class="tbl_header1">
                <td><b>{t}Elapsed time{/t}</b></td>
        </td>
  </tr>
 </table>
-{/if}
+{* {/if} *}
 
 </div>
 <!-- end last_run_report.tpl -->
\ No newline at end of file
index 2b4a1298e8e7159b65e185ff24f2ce7145b0d402..7e79c8ee35ffcf128640d985a78b93b1bec76995 100644 (file)
@@ -3,7 +3,7 @@
 <div class="box">
   <p class="title">Pools</p>
        
-  <table width="100%">
+  <table>
        {foreach from=$pools item=pool key=pool_name}
        <tr>
                <th colspan="6" style="font-size: 10pt; text-align: center; background-color: #E0C8E5; color: black; padding: 3px;">