<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>
<table><td>
- <form action='?'>
+ <form name="delete" action='bweb.pl?'>
<input type='hidden' name='jobid' value='<TMPL_VAR jobid>'>
- <label>
- <input type="image" name='action' value='delete' title='delete this job'
- src='/bweb/purge.png'> Delete
- </label>
+ <button type="submit" name='action' class="bp" value='delete' title='__delete this job__'
+ onclick="return confirm('__Do you want to delete this job from the catalog?__');">
+ <img src='/bweb/purge.png' alt=''>__Delete__</button>
</form>
</td><td>
- <form action='?'>
+ <form name="media" action='bweb.pl?'>
<TMPL_LOOP volumes>
<input type='hidden' name='media' value='<TMPL_VAR VolumeName>'>
</TMPL_LOOP>
- <label>
- <input type="image" name='action' value='media' title='view media'
- src='/bweb/zoom.png'>View media
- </label>
+ <button type="submit" name='action' value='media' title='__View media__' class="bp">
+ <img src='/bweb/zoom.png'alt=''>__View media__</button>
</form>
</td>
<td>
- <form action='?'>
+ <form name="job" action='bweb.pl?'>
<input type='hidden' name='client' value='<TMPL_VAR Client>'>
- <label>
- <input type="image" name='action' value='job' title='view <TMPL_VAR Client> jobs' src='/bweb/zoom.png'>View jobs
- </label>
+ <button type="submit" class="bp" name='action' value='job' title='__view__ <TMPL_VAR Client> __jobs__'><img src='/bweb/zoom.png'>__View jobs__</button>
</form>
</td>
<td>
- <form action='?'>
+ <form name="graph" action='bweb.pl?'>
<input type='hidden' name='age' value='2678400'>
<input type='hidden' name='client' value='<TMPL_VAR Client>'>
<input type='hidden' name='jobname' value='<TMPL_VAR jobname>'>
- <label>
- <input type="image" name='action' value='graph' title='view trends'
- src='/bweb/chart.png'> View stats
- </label>
+ <button type="submit" class="bp" name='action' value='graph' title='__View trends__'>
+ <img src='/bweb/chart.png' alt=''> __View stats__ </button>
</form>
</td>
+ <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__'>
+ <img src='/bweb/zoom.png' alt=''>__View FileSet__</button>
+ </form>
+ </td>
+ <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__'
+ 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__
+ </td>
+</TMPL_IF>
+ <td>
+ <form name="rerun" action='bweb.pl?' onsubmit="document.getElementById('rerun_level').value=joblevelname['<TMPL_VAR NAME=Level>']">
+ <input type='hidden' name='storage' value='<TMPL_VAR storage>'>
+ <input type='hidden' name='fileset' value='<TMPL_VAR fileset>'>
+ <input type='hidden' name='pool' value='<TMPL_VAR poolname>'>
+ <input type='hidden' name='client' value='<TMPL_VAR client>'>
+ <input type='hidden' id="rerun_level" name='level'>
+ <input type='hidden' name='job' value='<TMPL_VAR jobname>'>
+ <button type="submit" class="bp" name='action' value='run_job_mod' title='__run this job again__'>
+ <img src='/bweb/R.png'> __Run this job__ </button>
+ </form>
+ </td>
+<TMPL_IF joberrors>
+ <td>
+ <a href="<TMPL_VAR thisurl>;error=1"
+ title="__View only errors__">
+ <img src='/bweb/doc.png' alt="__View errors__"></a> __View only errors__
+ </td>
+</TMPL_IF>
</table>
</div>
<script type="text/javascript" language='JavaScript'>
var header = new Array("JobId",
- "Client",
- "Job Name",
- "FileSet",
- "Level",
- "StartTime",
- "Duration",
- "JobFiles",
- "JobBytes",
- "Pool",
- "Volume Name",
- "Status");
+ "__Client__",
+ "__Job Name__",
+ "__FileSet__",
+ "__Level__",
+ "__StartTime__",
+ "__Duration__",
+ "__JobFiles__",
+ "__JobBytes__",
+// "__Comp__",
+ "__Errors__",
+ "__Pool__",
+ "__Volume Name__",
+ "__Status__");
var data = new Array();
img = document.createElement("IMG");
-img.src="/bweb/<TMPL_VAR JobStatus>.png";
+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(
"<TMPL_VAR FileSet>",
"<TMPL_VAR Level>",
"<TMPL_VAR StartTime>",
-"<TMPL_VAR duration>",
+human_duration("<TMPL_VAR duration>"),
"<TMPL_VAR JobFiles>",
-"<TMPL_VAR JobBytes>",
+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>",
img
}
);
-</script>
\ No newline at end of file
+</script>