summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-11-18 22:40:45 +0200
committerVille Skyttä <ville.skytta@iki.fi>2011-11-18 22:40:45 +0200
commite6e65cbdc2b47fcfcb650d5225b2902649f29e0b (patch)
treee82211b8e388a612ebc2ece63927ccd7993f803a /template
parent59bbd1325eb0b784616adc3a04d559ab424dd00c (diff)
downloadvdradmin-am-e6e65cbdc2b47fcfcb650d5225b2902649f29e0b.tar.gz
vdradmin-am-e6e65cbdc2b47fcfcb650d5225b2902649f29e0b.tar.bz2
Show recording length in list and details with VDR >= 1.7.21 (closes #813).
Diffstat (limited to 'template')
-rw-r--r--template/default/prog_detail.html6
-rw-r--r--template/default/rec_list.html18
-rw-r--r--template/default/style.css13
3 files changed, 34 insertions, 3 deletions
diff --git a/template/default/prog_detail.html b/template/default/prog_detail.html
index d921c5b..949fc0c 100644
--- a/template/default/prog_detail.html
+++ b/template/default/prog_detail.html
@@ -63,6 +63,12 @@
<div class="epg_subtitle"><?% subtitle %?></div>
<?% END %?>
<div class="epg_summary"><?% text %?></div>
+ <?% IF length %?>
+ <div class="epg_length">
+ <h4><?% gettext('Length') %?>:</h4>&nbsp;
+ <?% length %?>
+ </div>
+ <?% END %?>
<?% IF video %?>
<div class="epg_video">
<h4><?% gettext('Video tracks:') %?></h4>&nbsp;
diff --git a/template/default/rec_list.html b/template/default/rec_list.html
index ed85ea0..ea388c3 100644
--- a/template/default/rec_list.html
+++ b/template/default/rec_list.html
@@ -74,6 +74,19 @@
</a>
</h2>
</td>
+ <?% IF features.VDRVERSION >= 10721 %?>
+ <td class="col_length <?% IF sortbylength %?>selected<?% END %?>">
+ <h2>
+ <a href="<?% sortbylengthurl %?>"><?% gettext('Length') %?>
+ <?% IF sortbylength %?>
+ <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0" />
+ <?% ELSE %?>
+ <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0" />
+ <?% END %?>
+ </a>
+ </h2>
+ </td>
+ <?% END %?>
<td class="col_name <?% IF sortbyname %?>selected<?% END %?>">
<h2>
<a href="<?% sortbynameurl %?>"><?% gettext('Name') %?>
@@ -101,6 +114,11 @@
<span class="new"><?% gettext('New') %?></span>
<?% END %?>
</td>
+ <?% IF features.VDRVERSION >= 10721 %?>
+ <td class="col_length <?% IF rec.sortbylength %?>selected<?% END %?>">
+ <span class="length"><?% rec.length %?></span>
+ </td>
+ <?% END %?>
<td class="col_name <?% IF rec.sortbyname %?>selected<?% END %?>">
<?% IF rec.isfolder %?>
<a href="<?% rec.infurl %?>"><img align="middle" src="bilder/folder_video.png" border="0" alt="" />&nbsp;<?% rec.name %?></a>
diff --git a/template/default/style.css b/template/default/style.css
index ad27dd1..68eebe3 100644
--- a/template/default/style.css
+++ b/template/default/style.css
@@ -203,7 +203,8 @@ body.help .heading {
.col_start,
.col_stop,
.col_date,
-.col_time {
+.col_time,
+.col_length {
padding-left: 3px;
padding-right: 3px;
white-space: nowrap;
@@ -405,14 +406,16 @@ body.help .heading {
display: block;
}
#prog_detail .epg_video h4,
-#prog_detail .epg_audio h4 {
+#prog_detail .epg_audio h4,
+#prog_detail .epg_length h4 {
margin: 0;
font-size: 10px;
font-weight: bold;
display: inline;
}
#prog_detail .epg_video h5,
-#prog_detail .epg_audio h5 {
+#prog_detail .epg_audio h5,
+#prog_detail .epg_length h5 {
margin-left: 1em;
display: inline;
font-size: 10px;
@@ -479,6 +482,10 @@ body.help .heading {
width: 76px;
text-align: left;
}
+.col_length {
+ width: 76px;
+ text-align: right;
+}
.col_edit,
.col_delete,
.col_stream,