<tr>
<td> <b> Bytes done </b> </td><td> <div id='progress1'><td>
</tr>
+</TMPL_IF>
+<TMPL_IF last_jobfiles>
<tr>
<td> <b> Files done </b> </td><td> <div id='progress2'><td>
</tr>
</div>
<script type="text/javascript" language="JavaScript">
-<TMPL_IF last_jobbytes>
+<TMPL_IF last_jobfiles>
percent_finish(<TMPL_VAR jobfiles>*100/<TMPL_VAR last_jobfiles>, document.getElementById('progress1'));
+</TMPL_IF>
+<TMPL_IF last_jobbytes>
percent_finish(<TMPL_VAR jobbytes>*100/<TMPL_VAR last_jobbytes>, document.getElementById('progress2'));
</TMPL_IF>
bweb_add_refresh();
<div class='titlediv'>
- <h1 class='newstitle'> Manage Storage device</h1>
+ <h1 class='newstitle'> Manage Storage devices</h1>
</div>
<div class='bodydiv'>
<form action="?" method='get'>
<tr>
<td> <b> Bytes done </b> </td><td> <div id='progress1'><td>
</tr>
+</TMPL_IF>
+<TMPL_IF last_jobfiles>
<tr>
<td> <b> Files done </b> </td><td> <div id='progress2'><td>
</tr>
</div>
<script type="text/javascript" language="JavaScript">
-<TMPL_IF last_jobbytes>
+<TMPL_IF last_jobfiles>
percent_finish(<TMPL_VAR jobfiles>*100/<TMPL_VAR last_jobfiles>, document.getElementById('progress1'));
+</TMPL_IF>
+<TMPL_IF last_jobbytes>
percent_finish(<TMPL_VAR jobbytes>*100/<TMPL_VAR last_jobbytes>, document.getElementById('progress2'));
</TMPL_IF>
bweb_add_refresh();
<div class='titlediv'>
- <h1 class='newstitle'> Manage Storage device</h1>
+ <h1 class='newstitle'> Manage Storage devices</h1>
</div>
<div class='bodydiv'>
<form action="?" method='get'>
<tr>
<td> <b> Bytes done </b> </td><td> <div id='progress1'><td>
</tr>
+</TMPL_IF>
+<TMPL_IF last_jobfiles>
<tr>
<td> <b> Files done </b> </td><td> <div id='progress2'><td>
</tr>
</div>
<script type="text/javascript" language="JavaScript">
-<TMPL_IF last_jobbytes>
+<TMPL_IF last_jobfiles>
percent_finish(<TMPL_VAR jobfiles>*100/<TMPL_VAR last_jobfiles>, document.getElementById('progress1'));
+</TMPL_IF>
+<TMPL_IF last_jobbytes>
percent_finish(<TMPL_VAR jobbytes>*100/<TMPL_VAR last_jobbytes>, document.getElementById('progress2'));
</TMPL_IF>
bweb_add_refresh();
<div class='titlediv'>
- <h1 class='newstitle'> Manage Storage device</h1>
+ <h1 class='newstitle'> Manage Storage devices</h1>
</div>
<div class='bodydiv'>
<form action="?" method='get'>
sub display_running_job
{
- my ($self, $conf, $jobid, $last_jobfiles, $last_jobbytes) = @_ ;
- my $status = $self->status($conf);
+ my ($self, $bweb, $jobid, $last_jobfiles, $last_jobbytes) = @_ ;
+ my $status = $self->status($bweb->{info});
if ($jobid) {
if ($status->{$jobid}) {
$status->{jobbytes} =~ s![, B/s]!!g;
$status->{jobfiles}=$status->{Files};
$status->{jobfiles} =~ s/,//g;
- $self->display($status, "client_job_status.tpl");
+ $bweb->display($status, "client_job_status.tpl");
}
} else {
for my $id (keys %$status) {
- $self->display($status->{$id}, "client_job_status.tpl");
+ $bweb->display($status->{$id}, "client_job_status.tpl");
}
}
}
}
}
my $cli = new Bweb::Client(name => $arg->{client});
- $cli->display_running_job($self->{info}, $arg->{jobid},
+ $cli->display_running_job($self, $arg->{jobid},
$arg->{jobfiles}, $arg->{jobbytes});
if ($arg->{jobid}) {
$self->get_job_log();
<tr>
<td> <b> __Bytes done__ </b> </td><td> <div id='progress1'><td>
</tr>
+</TMPL_IF>
+<TMPL_IF last_jobfiles>
<tr>
<td> <b> __Files done__ </b> </td><td> <div id='progress2'><td>
</tr>
</div>
<script type="text/javascript" language="JavaScript">
-<TMPL_IF last_jobbytes>
+<TMPL_IF last_jobfiles>
percent_finish(<TMPL_VAR jobfiles>*100/<TMPL_VAR last_jobfiles>, document.getElementById('progress1'));
+</TMPL_IF>
+<TMPL_IF last_jobbytes>
percent_finish(<TMPL_VAR jobbytes>*100/<TMPL_VAR last_jobbytes>, document.getElementById('progress2'));
</TMPL_IF>
bweb_add_refresh();
<div class='titlediv'>
- <h1 class='newstitle'> __Manage Storage device__</h1>
+ <h1 class='newstitle'> __Manage Storage devices__</h1>
</div>
<div class='bodydiv'>
<form action="?" method='get'>