-<br/>
+<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>
- <input type="image" name='action' value='extern' title='move out' src='/bweb/extern.png'>
+ <input type="image" name='action' value='extern' onclick='return confirm("Do you want to eject this media ?");' title='move out' src='/bweb/extern.png'>
<TMPL_ELSE>
<input type="image" name='action' value='intern' title='move in' src='/bweb/intern.png'>
</TMPL_IF>
<input type="image" name='action' value='update_media' title='Update' src='/bweb/edit.png'>
- <input type="image" name='action' value='purge' title='Purge' src='/bweb/purge.png'>
- <input type="image" name='action' value='prune' title='Prune' src='/bweb/prune.png'>
+ <input type="image" name='action' value='purge' title='Purge' src='/bweb/purge.png' onclick="return confirm('Do you want to purge this volume ?')">
+ <input type="image" name='action' value='prune' title='Prune' src='/bweb/prune.png'>
+<TMPL_IF Locationlog>
+ <a href='#' onclick='document.getElementById("locationlog").style.visibility="visible";'><img title='View location log' src='/bweb/zoom.png'></a>
+</TMPL_IF>
</form>
</div>
-
-
-
+</td>
+<td valign='top'style="visibility:hidden;" id='locationlog'>
+ <div class='titlediv'>
+ <h1 class='newstitle'> Location log </h1>
+ </div>
+ <div class='bodydiv'>
+<pre>
+ <TMPL_VAR LocationLog>
+</pre>
+ </div>
+</td>
+</table>
<script type="text/javascript" language="JavaScript">
var header = new Array("Pool","Online","Location","Vol Status", "Vol Bytes", "Expire",
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>"
)
);
}
);
-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>"
)
);
"<TMPL_VAR type>",
"<TMPL_VAR level>",
"<TMPL_VAR files>",
-"<TMPL_VAR bytes>",
+human_size(<TMPL_VAR bytes>),
a
)
);