]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bweb/tpl/display_media_zoom.tpl
ebl add recyclecount + comment to display_media_zoom
[bacula/bacula] / gui / bweb / tpl / display_media_zoom.tpl
index 83b9e6496b1f5f8111063aaf16b09fe17e563fec..c0503a1cbe4e7f337df37df571b887f89dd903cf 100644 (file)
@@ -1,7 +1,7 @@
 <table>
 <td valign='top'>
  <div class='titlediv'>
-  <h1 class='newstitle'> Media : <TMPL_VAR volumename></h1>
+  <h1 class='newstitle'> Media : <TMPL_VAR volumename> <TMPL_VAR comment></h1>
  </div>
  <div class='bodydiv'>
     <b> Media Infos</b><br/>
    <form action='?' method='get'>
       <input type='hidden' name='media' value='<TMPL_VAR volumename>'>
 <TMPL_IF online>&nbsp;
-      <input type="image" name='action' value='extern' title='move out' src='/bweb/extern.png'>&nbsp;
+      <input type="image" name='action' value='extern' onclick='return confirm("Do you want to eject this media ?");' title='move out' src='/bweb/extern.png'>&nbsp;
 <TMPL_ELSE>
       <input type="image" name='action' value='intern' title='move in' src='/bweb/intern.png'>&nbsp;
 </TMPL_IF>
       <input type="image" name='action' value='update_media' title='Update' src='/bweb/edit.png'>&nbsp;
-      <input type="image" name='action' value='purge' title='Purge' src='/bweb/purge.png'>&nbsp;
+      <input type="image" name='action' value='purge' title='Purge' src='/bweb/purge.png' onclick="return confirm('Do you want to purge this volume ?')">&nbsp;
       <input type="image" name='action' value='prune' title='Prune' src='/bweb/prune.png'>&nbsp;
 <TMPL_IF Locationlog>
       <a href='#' onclick='document.getElementById("locationlog").style.visibility="visible";'><img title='View location log' src='/bweb/zoom.png'></a>
@@ -54,10 +54,10 @@ data.push( new Array(
 img,
 "<TMPL_VAR location>",
 "<TMPL_VAR volstatus>",
-"<TMPL_VAR nb_bytes>",
+human_size(<TMPL_VAR nb_bytes>),
 "<TMPL_VAR expire>",
-"<TMPL_VAR volretention>",
-"<TMPL_VAR voluseduration>",
+human_sec(<TMPL_VAR volretention>),
+human_sec(<TMPL_VAR voluseduration>),
 "<TMPL_VAR maxvoljobs>"
  )
 );
@@ -79,13 +79,14 @@ nrsTable.setup(
 }
 );
 
-var header = new Array( "Vol Mounts", "Read time", "Write time", "Errors");
+var header = new Array( "Vol Mounts", "Recycle count", "Read time", "Write time", "Errors");
 
 var data = new Array();
 data.push( new Array(
 "<TMPL_VAR nb_mounts>",
-"<TMPL_VAR volreadtime>",
-"<TMPL_VAR volwritetime>",
+"<TMPL_VAR recyclecount>",
+human_sec(<TMPL_VAR volreadtime>),
+human_sec(<TMPL_VAR volwritetime>),
 "<TMPL_VAR nb_errors>"
  )
 );
@@ -132,7 +133,7 @@ data.push( new Array(
 "<TMPL_VAR type>",
 "<TMPL_VAR level>",
 "<TMPL_VAR files>",
-"<TMPL_VAR bytes>",
+human_size(<TMPL_VAR bytes>),
 a
  )
 );