summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
Diffstat (limited to 'html')
-rw-r--r--html/rdisplay.tmpl12
-rw-r--r--html/rlist.tmpl12
-rw-r--r--html/widgets/wait.tmpl2
3 files changed, 13 insertions, 13 deletions
diff --git a/html/rdisplay.tmpl b/html/rdisplay.tmpl
index 8cdb4ce..112c447 100644
--- a/html/rdisplay.tmpl
+++ b/html/rdisplay.tmpl
@@ -19,15 +19,15 @@
Stunden = c div 3600;
Minuten = c div 60 mod 60;
-%?>
- <td bgcolor="white" width="<?% offset = (c % 3600 ? 1 : 2);(percent - offset) | format('%d') %?>" align='right'>
- <font size='1'><?% Stunden | format('%02d') %?>:<?% Minuten | format('%02d') %?></font>
+ <td bgcolor="white" width="<?% offset = (c % 3600 ? 1 : 2);(percent - offset) div 1 %?>" align='right'>
+ <font size='1'><?% Stunden div 1 | format('%02d') %?>:<?% Minuten div 1 | format('%02d') %?></font>
</td>
<?% END %?>
</tr>
<tr>
<?% c = 0 %?>
<?% abstand = abstand div 3 %?>
- <td bgcolor="white" colspan="<?% colspan %?>"><nobr><?%- WHILE c < range -%?><?%- c = c + abstand; percent = (abstand / data.Duration) * width -%?><img style="background:white" src='/images/blank.png' width="<?% offset = (c % 3600 ? 1 : 2);(percent - offset) | format('%d') %?>" height='10'><img style="background:<?% c % 900 ? "gray" : "black" %?>" src='/images/blank.png' width="<?% c % 3600 ? "1" : "2" %?>" height='<?% (c % 900 ? "5" : "10") %?>'><?%- END -%?></td>
+ <td bgcolor="white" colspan="<?% colspan %?>"><nobr><?%- WHILE c < range -%?><?%- c = c + abstand; percent = (abstand / data.Duration) * width -%?><img style="background:white" src='/images/blank.png' width="<?% offset = (c % 3600 ? 1 : 2);(percent - offset) div 1 %?>" height='10'><img style="background:<?% c % 900 ? "gray" : "black" %?>" src='/images/blank.png' width="<?% c % 3600 ? "1" : "2" %?>" height='<?% (c % 900 ? "5" : "10") %?>'><?%- END -%?></td>
</tr>
<tr>
<td colspan="<?% colspan %?>"><nobr><?%- secold = 0;
@@ -42,13 +42,13 @@
sec = sec + m.2;
percent = ((sec-secold) / data.Duration) * width;
bgcolor = (bgcolor == 'red' ? 'white' : 'red');
- -%?><img style="background:<?% bgcolor %?>" src='images/blank.png' width="<?% percent | format('%d') %?>" height='10' title="<?% (b < 0 ? "0:00:00.00" : ml.$b) %?> - <?% ml.$c %?>">
+ -%?><img style="background:<?% bgcolor %?>" src='images/blank.png' width="<?% percent div 1 %?>" height='10' title="<?% (b < 0 ? "0:00:00.00" : ml.$b) %?> - <?% ml.$c %?>">
<?%- secold = sec;
END;
IF data.Duration > secold;
bgcolor = (bgcolor == 'red' ? 'white' : 'red');
percent = ((data.Duration - secold) / data.Duration) * width;
- -%?><img style="background:<?% bgcolor %?>" src="images/blank.png" width="<?% percent | format('%d') %?>" height="10" title="<?% (c < 0 ? "0:00:00.00" : ml.$c) %?> - <?% data.Duration div 3600 | format('%d') %?>:<?% data.Duration div 60 mod 60 | format('%02d') %?>:<?% data.Duration mod 60 | format('%02d') %?>" />
+ -%?><img style="background:<?% bgcolor %?>" src="images/blank.png" width="<?% percent div 1 %?>" height="10" title="<?% (c < 0 ? "0:00:00.00" : ml.$c) %?> - <?% data.Duration div 3600 %?>:<?% data.Duration div 60 mod 60 div 1 | format('%02d') %?>:<?% data.Duration mod 60 div 1 | format('%02d') %?>" />
<?% END %?>
</td>
</tr>
@@ -60,7 +60,7 @@
<?% Stunden = d div 3600 %?>
<?% Minuten = d div 60 mod 60 %?>
<?% Sekunden = d mod 60 %?>
- <?% gettext('Duration') %?> : <?% Stunden | format('%d') %?>:<?% Minuten | format('%02d') %?>:<?% Sekunden | format('%02d') %?>
+ <?% gettext('Duration') %?> : <?% Stunden div 1 %?>:<?% Minuten div 1 | format('%02d') %?>:<?% Sekunden div 1 | format('%02d') %?>
<?% END %?>
<?% END %?>
diff --git a/html/rlist.tmpl b/html/rlist.tmpl
index 6158f0f..5b3ae79 100644
--- a/html/rlist.tmpl
+++ b/html/rlist.tmpl
@@ -57,12 +57,12 @@
<td>
<a href="?cmd=rlist&amp;data=<?% url( fulltitle ) %?>">
<b><?% foldertitle %?></b><br />
- <?% IF new > 0 %?>
+ <?% IF new %?>
<img src="images/newfolder.png" alt="" title="<?% gettext("New recording") %?>" />
<?% ELSE %?>
<img src="images/foldericon.png" alt="" />
<?% END %?>
- &nbsp;<?% folder %?><?% IF new > 0 %?>&nbsp;(<?% new %?>)<?% END %?>&nbsp;<?% gettext("more recordings") %?>&nbsp;...
+ &nbsp;<?% folder %?><?% IF new %?>&nbsp;(<?% new %?>)<?% END %?>&nbsp;<?% gettext("more recordings") %?>&nbsp;...
</a>
<img src="images/blank.png" height="1" width="200" alt="" />
</td>
@@ -84,7 +84,7 @@
</div>
<div style="height:3em; overflow:hidden;">
<?% INCLUDE bloecke/tooltip.tmpl cmd="rdisplay" linkid=id ttp_offset=0 %?>
- <?% IF new > 0 %?><img src="images/new.png" alt="" title="<?% gettext("New recording") %?>" /><?% END %?>
+ <?% IF new %?><img src="images/new.png" alt="" title="<?% gettext("New recording") %?>" /><?% END %?>
<b><?% (title.match('[a-z]') ? title : fulltitle) %?></b>
<?% IF subtitle %?>
<br>&nbsp;<?% subtitle %?>
@@ -181,12 +181,12 @@
<?% IF folder > 1 %?>
<td colspan="4">
<a href="?cmd=rlist&amp;data=<?% url( fulltitle ) %?>">
- <?% IF new > 0 %?>
+ <?% IF new %?>
<img src="images/newfolder.png" alt="" title="<?% gettext("New recording") %?>" />
<?% ELSE %?>
<img src="images/foldericon.png" alt="" />
<?% END %?>
- <b><?% foldertitle.split('~').last %?></b>&nbsp;<?% folder %?><?% IF new > 0 %?>&nbsp;(<?% new %?>)<?% END %?>&nbsp;<?% gettext("more recordings") %?>&nbsp;...
+ <b><?% foldertitle.split('~').last %?></b>&nbsp;<?% folder %?><?% IF new %?>&nbsp;(<?% new %?>)<?% END %?>&nbsp;<?% gettext("more recordings") %?>&nbsp;...
</a>
</td>
<?% ELSE %?>
@@ -207,7 +207,7 @@
<?% PROCESS dur d=field %?>
<?% ELSIF c == 2 # title %?>
<?% INCLUDE bloecke/tooltip.tmpl cmd="rdisplay" linkid=id ttp_offset=0 %?>
- <?% IF new > 0 %?><img src="images/new.png" alt="" title="<?% gettext("New recording") %?>" />&nbsp;<?% END %?>
+ <?% IF new %?><img src="images/new.png" alt="" title="<?% gettext("New recording") %?>" />&nbsp;<?% END %?>
<?% var = (field.split('~').last.match('[a-z]') ? field.split('~').last : zeile.9);chop(var,30) %?>
</a>
<?% ELSE %?>
diff --git a/html/widgets/wait.tmpl b/html/widgets/wait.tmpl
index cc814c0..333fa91 100644
--- a/html/widgets/wait.tmpl
+++ b/html/widgets/wait.tmpl
@@ -26,7 +26,7 @@
<?% color = (step * c) <= data.current ? "red" : "white" %?>
<td bgcolor="<?% color %?>">&nbsp;&nbsp;&nbsp;</td>
<?% END %?>
- <td>&nbsp;<b><?% percent | format "%02d" %?>%</b> (<?% data.eta %?>)</td>
+ <td>&nbsp;<b><?% percent div 1 | format "%02d" %?>%</b> (<?% data.eta %?>)</td>
</table>
</center>
</body>