From: Davide Franco Date: Wed, 15 Dec 2010 17:01:34 +0000 (+0100) Subject: bacula-web: Changed Pools and Volumes design X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9e9701d9093fbee16ede63821b7c351e7c418d59;p=bacula%2Fbacula bacula-web: Changed Pools and Volumes design - In Pools page, volumes list by pool is now scrollable (appreciable if more than 100 volumes by pool) --- diff --git a/gui/bacula-web/style/default.css b/gui/bacula-web/style/default.css index c25bbe0c46..f615defad7 100644 --- a/gui/bacula-web/style/default.css +++ b/gui/bacula-web/style/default.css @@ -94,6 +94,17 @@ a:hover { color: #736F6E } margin-top: 0px; } +.listbox { + /*border: 1px solid red;*/ + width: 100%; + height: auto; + overflow: auto; + margin: 0px; + padding: 0px; + text-align: center; + max-height: 420px; +} + .box { border: 1px solid black; width: 100%; diff --git a/gui/bacula-web/templates/pools.tpl b/gui/bacula-web/templates/pools.tpl index 75d655215d..6af7f1ce1a 100644 --- a/gui/bacula-web/templates/pools.tpl +++ b/gui/bacula-web/templates/pools.tpl @@ -22,43 +22,44 @@
+ +{foreach from=$pools item=pool key=pool_name}
-

Pools

- - - {foreach from=$pools item=pool key=pool_name} - - - - - - - - - - - - {foreach from=$pool item=volume} +

{$pool_name}

+
- {$pool_name} -
Name{t}Bytes{/t}{t}Media Type{/t}{t}Expire{/t}{t}Last written{/t}{t}Status{/t}
- - - - - - - {foreachelse} - - - {/foreach} + + + + + + - {/foreach} -
{$volume.volumename}{$volume.volbytes}{$volume.mediatype}{$volume.expire}{$volume.lastwritten}{$volume.volstatus}
- No volume in this pool - Name{t}Bytes{/t}{t}Media Type{/t}{t}Expire{/t}{t}Last written{/t}{t}Status{/t}
+ + +
+ + {foreach from=$pool item=volume} + + + + + + + + + {foreachelse} + + + + {/foreach} +
{$volume.volumename}{$volume.volbytes}{$volume.mediatype}{$volume.expire}{$volume.lastwritten}{$volume.volstatus}
+ No volume(s) in this pool +
+
+
+{/foreach} -