[mythtv] [PATCH] small patch to mythweb recorded programs, adds space info to top

James Armstrong james at thearmstrongs.org
Wed Mar 2 18:47:40 UTC 2005


This patch will move the total shows / disk usage to the top above the 
'Show Recordings / Show Group' section. I have a ton of recordings and 
it is sometimes slow when loading the info / thumbnails and I just want 
to see the total disk space and start deleting shows.

- James
-------------- next part --------------
--- /home/Projects/mythtv/mythweb/themes/Default/recorded_programs.php	2005-02-09 22:34:51.000000000 -0500
+++ recorded_programs.php	2005-03-02 10:46:58.431606646 -0500
@@ -48,6 +48,14 @@
 <form id="program_titles" action="recorded_programs.php" method="get">
 <table class="command command_border_l command_border_t command_border_b command_border_r" border="0" cellspacing="0" cellpadding="4" align="center">
 <tr>
+  <td colspan="4" align="center"><?php
+    echo t('$1 programs, using $2 ($3) out of $4.', t($GLOBALS['Total_Programs']),
+                                                    nice_filesize(disk_used),
+                                                    nice_length($Total_Time),
+                                                    nice_filesize(disk_size));
+   ?></td>
+</tr>
+<tr>
     <td><?php echo t('Show recordings') ?>:</td>
     <td><select name="title" onchange="get_element('program_titles').submit()">
         <option value=""><?php echo t('All recordings') ?></option><?php
@@ -192,13 +200,6 @@
 ?>
 </table>
 <?php
-    echo '<p align="right" style="padding-right: 75px">'
-        .t('$1 programs, using $2 ($3) out of $4.', t($GLOBALS['Total_Programs']),
-                                                    nice_filesize(disk_used),
-                                                    nice_length($Total_Time),
-                                                    nice_filesize(disk_size))
-        .'</p>';
-
     // Print the main page footer
         parent::print_footer();
     }


More information about the mythtv-dev mailing list