From 7e6bc366f2e907ebced13ed4c847fb8d0d114dc0 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 19 Jun 2005 10:17:22 +0000 Subject: [PATCH] Tweaks git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2146 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bacula-web/templates/volumes.tpl | 96 ++++++++++++++-------------- 1 file changed, 49 insertions(+), 47 deletions(-) diff --git a/gui/bacula-web/templates/volumes.tpl b/gui/bacula-web/templates/volumes.tpl index ff667d3e99..ef40edb0a6 100644 --- a/gui/bacula-web/templates/volumes.tpl +++ b/gui/bacula-web/templates/volumes.tpl @@ -1,56 +1,58 @@ {* Design of table of pools *} - - + +
PoolsPools
{foreach from=$pools item=current} - - - - - {foreach from=$volumes item=current2} - {assign var=key value=$current2} - {foreach from=$key item=current3 name=loop} - {if $current3.3 == $current && $current3.0 != ""} - {if $smarty.foreach.loop.first == TRUE} - - - - - - - - {/if} - - - - - - - - - {/if} - {/foreach} - {/foreach} + + + + + {foreach from=$volumes item=current2} + {assign var=key value=$current2} + {foreach from=$key item=current3 name=loop} + {if $current3.3 == $current && $current3.0 != ""} + {if $smarty.foreach.loop.first == TRUE} + + + + + + + + {/if} + + + + + + + + + {/if} + {/foreach} + {/foreach} {/foreach}
 
- {$current} -
{t}Volume Name{/t}{t}Volume Bytes{/t}{t}Media Type{/t}{t}When expire?{/t}{t}Last Written{/t} - {t}Volume Status{/t}
{$current3.0}{$current3.1|fsize_format|default:0}{$current3.4}{if $current3.6|date_format:"%Y" <= "1979"}--{else}{$current3.6|date_format:"%Y/%m/%d"}{/if}{if $current3.5 == "0000-00-00 00:00:00"}--{else}{$current3.5|date_format:"%Y/%m/%d"}{/if} - - {elseif $current3.2 == "Purged"} - yellow> - {elseif $current3.2 == "Append"} - green> - {else} - ""> - {/if} - {$current3.2} - -
 
+ {$current} +
{t}Volume Name{/t}{t}Volume Bytes{/t}{t}Media Type{/t}{t}When expire?{/t}{t}Last Written{/t} + {t}Volume Status{/t}
{$current3.0}{$current3.1|fsize_format|default:0}{$current3.4}{if $current3.6|date_format:"%Y" <= "1979"}--{else}{$current3.6|date_format:"%Y/%m/%d"}{/if}{if $current3.5 == "0000-00-00 00:00:00"}--{else}{$current3.5|date_format:"%Y/%m/%d"}{/if} + + {elseif $current3.2 == "Purged"} + blue> + {elseif $current3.2 == "Append"} + green> + {elseif $current3.2 == "Recycle"} + orange> + {else} + ""> + {/if} + {$current3.2} + +
-
\ No newline at end of file + -- 2.39.2