summaryrefslogtreecommitdiff
path: root/skins/stone_flat
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2007-11-09 19:01:49 +0000
committerAndreas Brachold <vdr07@deltab.de>2007-11-09 19:01:49 +0000
commit4d83d0fe84b865d4f944a8faab268917fff312d2 (patch)
tree63cd1ea313d3f4459184e7cbe5c6bcff1131e295 /skins/stone_flat
parent06c32cc1dfcc7f49373cb9aa28e416dad86d7181 (diff)
downloadxxv-4d83d0fe84b865d4f944a8faab268917fff312d2.tar.gz
xxv-4d83d0fe84b865d4f944a8faab268917fff312d2.tar.bz2
tlist: show free recording capacity
Diffstat (limited to 'skins/stone_flat')
-rw-r--r--skins/stone_flat/rlist.tmpl4
-rw-r--r--skins/stone_flat/tlist.tmpl41
2 files changed, 36 insertions, 9 deletions
diff --git a/skins/stone_flat/rlist.tmpl b/skins/stone_flat/rlist.tmpl
index 1653f6f..9d6fb31 100644
--- a/skins/stone_flat/rlist.tmpl
+++ b/skins/stone_flat/rlist.tmpl
@@ -42,14 +42,14 @@
hour = total div 3600;
%?>
<?% gettext("total time") %?> :
-<?% IF hour > 0 %?><?% hour FILTER format('%02d') %?>:<?% END %?><?% min FILTER format('%02d') %?>:<?% sec FILTER format('%02d')%?>
+<?% IF hour > 0 %?><?% hour FILTER format('%02d') %?>:<?% END %?><?% min FILTER format('%02d') %?>:<?% sec FILTER format('%02d')%?><br />
<?% END %?>
<?% IF param.free;
secf = param.free mod 60;
minf = param.free div 60 mod 60;
hourf = param.free div 3600;
%?>
-<br /><?% gettext("available capacity") %?> :
+<?% gettext("available capacity") %?> :
<?% IF hourf > 0 %?><?% hourf FILTER format('%02d') %?>:<?% END %?><?% minf FILTER format('%02d') %?>:<?% secf FILTER format('%02d')%?>
<?% END %?>
</p>
diff --git a/skins/stone_flat/tlist.tmpl b/skins/stone_flat/tlist.tmpl
index 5ac5112..359993f 100644
--- a/skins/stone_flat/tlist.tmpl
+++ b/skins/stone_flat/tlist.tmpl
@@ -7,17 +7,44 @@
<?% an = gettext('On') %?>
<?% enableform = ( allow('ttoggle') || allow('tdelete') ) && data.size > 1 %?>
<?% ######################################################################## %?>
-<?% minuten = 0 %?>
+<?% total = 0 %?>
<?% BLOCK summe %?>
<?% IF aktiv == 1; # Errechnen der Differenzen
- minuten = minuten + (duration div 60);
+ total = total + duration;
END %?>
<?% END %?>
<?% ######################################################################## %?>
<?% BLOCK printsumme %?>
- <?% IF minuten > 0 %?>
- <p class="description" style="padding: 0; margin-left: <?% width %?>px;"><?% minuten div 60 %?>:<?% minuten mod 60 FILTER format('%02d')%?></p>
- <?% END %?>
+<p class="description" style="padding: 0; width:<?% width %?>px; text-align:right;">
+<?% IF total > 0;
+ sec = total mod 60;
+ min = total div 60 mod 60;
+ hour = total div 3600;
+%?>
+<?% IF hour > 0 %?><?% hour FILTER format('%02d') %?>:<?% END %?><?% min FILTER format('%02d') %?>
+<?% END %?>
+</p>
+<?% END %?>
+<?% ######################################################################## %?>
+<?% BLOCK totalsumme %?>
+<p class="description" style="padding: 0; width:<?% width %?>px; text-align:right;">
+<?% IF total > 0;
+ sec = total mod 60;
+ min = total div 60 mod 60;
+ hour = total div 3600;
+%?>
+<?% gettext("total time") %?> :
+<?% IF hour > 0 %?><?% hour FILTER format('%02d') %?>:<?% END %?><?% min FILTER format('%02d') %?><br />
+<?% END %?>
+<?% IF param.capacity;
+ secf = param.capacity mod 60;
+ minf = param.capacity div 60 mod 60;
+ hourf = param.capacity div 3600;
+%?>
+<?% gettext("available capacity") %?> :
+<?% IF hourf > 0 %?><?% hourf FILTER format('%02d') %?>:<?% END %?><?% minf FILTER format('%02d') %?>
+<?% END %?>
+</p>
<?% END %?>
<?% ######################################################################## %?>
<?% BLOCK RowButtons %?>
@@ -49,7 +76,7 @@
<?% ######################################################################## %?>
<?% BLOCK StateImage %?>
<?% IF aktiv %?>
- <?% IF param.capacity && param.capacity div 60 <= minuten %?>
+ <?% IF param.capacity && param.capacity <= total %?>
<img id='toggle<?% id %?>' src="images/warning.<?% global.imagetyp %?>" alt="" title="<?% gettext("Not enough space to record this timer!") %?>" />
<?% ELSE %?>
<img id='toggle<?% id %?>' src="images/on.<?% global.imagetyp %?>" alt="" title="<?% an %?>" />
@@ -161,7 +188,7 @@
</tr>
<tr><td class="largebottom"></td></tr>
</table>
- <?% PROCESS printsumme width=780 %?>
+ <?% PROCESS totalsumme width=780 %?>
</form>
<?% END %?>
</div>