[vhffs-dev] [1891] Fixed repository quota display. |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1891
Author: beuss
Date: 2011-07-25 22:59:47 +0200 (Mon, 25 Jul 2011)
Log Message:
-----------
Fixed repository quota display.
Modified Paths:
--------------
trunk/vhffs-panel/templates/repository/prefs.tt
Modified: trunk/vhffs-panel/templates/repository/prefs.tt
===================================================================
--- trunk/vhffs-panel/templates/repository/prefs.tt 2011-07-25 20:59:39 UTC (rev 1890)
+++ trunk/vhffs-panel/templates/repository/prefs.tt 2011-07-25 20:59:47 UTC (rev 1891)
@@ -1,10 +1,11 @@
<h2>[% repository.get_name | html %]</h2>
<div class="info_quota">
- <div id="repo_quota">
- <img src="/themes/[% theme %]/images/quota_progress.png" width="[% (repository.get_quota_used / repository.get_quota * 100) | format('%d') %]%" alt="[% (repository.get_quota_used / repository.get_quota * 100) | format('%.2f') %]%" title="[% (repository.get_quota_used / repository.get_quota * 100) | format('%.2f') %]%"/>
- </div>
- <p>[% 'Quota (used/total): %d/%dMB' | i18n | pretty_print(repository.get_quota_used, repository.get_quota) | html %]</p>
+ <p>[% 'Quota (used/total): %d/%dMB' | i18n | pretty_print(repository.get_quota_used, repository.get_quota) | html %] —
+ <span class="quota">
+ <span class="quota-used" style="width:[% (repository.get_quota_used / repository.get_quota * 100) | format('%d') %]%" title="[% (repository.get_quota_used / repository.get_quota * 100) | format('%.2f') %]%"></span>
+ </span>
+ </p>
</div>
[% INCLUDE 'acl/form.tt'