]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bweb/tpl/display_job_zoom.tpl
bacula-web: Replaced Get_human_file_size() function by Utils::Get_Human_Size
[bacula/bacula] / gui / bweb / tpl / display_job_zoom.tpl
index e47ecc3a86342302ba11067e25c51fb99697983c..f8eafd0b6eb54bb6a555cfb4da0bc9b832dbbf50 100644 (file)
@@ -1,5 +1,6 @@
  <div class='titlediv'>
-  <h1 class='newstitle'>__Information about job__</h1>
+  <h1 class='newstitle'>__Information about job__ <i><TMPL_VAR JobName></i>
+       <TMPL_IF comment>(<TMPL_VAR comment>)</TMPL_IF></h1>
  </div>
  <div class="bodydiv">
  <table id='id0'></table>
  <td>
  <form name="fileset_view" action='bweb.pl?'>
   <input type='hidden' name='fileset' value='<TMPL_VAR FileSet>'>
-  <button type="submit" class="bp" name='action' value='fileset_view' title='__View Fileset__'> 
+  <button type="submit" class="bp" name='action' value='fileset_view' title='__View FileSet__'> 
  <img src='/bweb/zoom.png' alt=''>__View FileSet__</button>
  </form>
  </td>
-<!-- Remove this to activate bfileview 
  <td>
  <form name="bfileview" action='bfileview.pl?'>
   <input type='hidden' name='jobid' value='<TMPL_VAR jobid>'>
   <input type='hidden' name='where' value='/'>
   <button type="submit" class="bp" name='action' value='bfileview' 
-   title='__view file usage__' 
+   title='__View file usage__' 
    onclick='if (<TMPL_VAR JobFiles> > 50000) { return confirm("__It could take long time, do you want to continue?__")} else { return 1; }'>
    <img src='/bweb/colorscm.png' alt=''> __View file usage__ </button>
  </form>
  </td>
--->
 <TMPL_IF wiki_url>
   <td>
    <a href="<TMPL_VAR wiki_url><TMPL_VAR Client>" title='__View doc__'><img src='/bweb/doc.png' alt='__View doc__'></a>__View doc__
@@ -90,6 +89,7 @@ var header = new Array("JobId",
                       "__Duration__",
                        "__JobFiles__",
                        "__JobBytes__",
+//                       "__Comp__",
                        "__Errors__",
                       "__Pool__",
                        "__Volume Name__",
@@ -98,7 +98,9 @@ var header = new Array("JobId",
 var data = new Array();
 
 img = document.createElement("IMG");
-img.src=bweb_get_job_img("<TMPL_VAR JobStatus>", <TMPL_VAR joberrors>);
+img.src=bweb_get_job_img("<TMPL_VAR JobStatus>", 
+                         <TMPL_VAR joberrors>,
+                         '<TMPL_VAR jobtype>');
 img.title=jobstatus['<TMPL_VAR JobStatus>']; 
 
 data.push( new Array(
@@ -108,9 +110,10 @@ data.push( new Array(
 "<TMPL_VAR FileSet>",    
 "<TMPL_VAR Level>",      
 "<TMPL_VAR StartTime>",
-"<TMPL_VAR duration>",
+human_duration("<TMPL_VAR duration>"),
 "<TMPL_VAR JobFiles>",   
 human_size(<TMPL_VAR JobBytes>),
+//parseInt(100-100*<TMPL_VAR JobBytes>/(<TMPL_VAR ReadBytes>+0.00001), 10) + "%",
 "<TMPL_VAR joberrors>",
 "<TMPL_VAR poolname>",
 "<TMPL_LOOP volumes><TMPL_VAR VolumeName>\n</TMPL_LOOP>",