Author: david
Date: Wed Aug 24 15:12:09 2011
New Revision: 9586

Log:
Add display of disk quota used for repository

Modified:
   trunk/apps/qubit/modules/repository/templates/_contextMenu.php

Modified: trunk/apps/qubit/modules/repository/templates/_contextMenu.php
==============================================================================
--- trunk/apps/qubit/modules/repository/templates/_contextMenu.php      Wed Aug 
24 14:28:29 2011        (r9585)
+++ trunk/apps/qubit/modules/repository/templates/_contextMenu.php      Wed Aug 
24 15:12:09 2011        (r9586)
@@ -1,5 +1,16 @@
+<?php if (0 < intval(sfConfig::get('app_repository_quota'))): ?>
 <div>
 
+  <h3><?php echo __('Disk quota used') ?></h3>
+
+  <div>
+    <?php echo __('%1% of %2% <strong>GiB</strong>', array('%1%' => 
$resource->getDiskUsage(), '%2%' => sfConfig::get('app_repository_quota'))) ?>
+  </div>
+
+</div>
+<?php endif; ?>
+
+<div>
   <h3><?php echo sfConfig::get('app_ui_label_holdings') ?></h3>
 
   <div>

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to