[vhffs-dev] [1890] Fixed group quota display. |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1890
Author: beuss
Date: 2011-07-25 22:59:39 +0200 (Mon, 25 Jul 2011)
Log Message:
-----------
Fixed group quota display.
Modified Paths:
--------------
trunk/vhffs-panel/templates/group/info.tt
trunk/vhffs-themes/light-grey/main.css
Modified: trunk/vhffs-panel/templates/group/info.tt
===================================================================
--- trunk/vhffs-panel/templates/group/info.tt 2011-07-25 20:59:30 UTC (rev 1889)
+++ trunk/vhffs-panel/templates/group/info.tt 2011-07-25 20:59:39 UTC (rev 1890)
@@ -4,9 +4,9 @@
<legend>[% 'General' | i18n | html %]</legend>
<ul class="generalList">
<li>[% 'Quota (used/total): %d/%dMB' | i18n | pretty_print(group.get_quota_used, group.get_quota) | html %] —
- <div id="group_quota">
- <img src="/themes/[% theme %]/images/quota_progress.png" width="[% (group.get_quota_used / group.get_quota * 100) | format('%d') %]%" alt="[% (group.get_quota_used / group.get_quota * 100) | format('%.2f') %]%" title="[% (group.get_quota_used / group.get_quota * 100) | format('%.2f') %]%"/>
- </div>
+ <span class="quota">
+ <span class="quota-used" style="width:[% (group.get_quota_used / group.get_quota * 100) | format('%d') %]%" title="[% (group.get_quota_used / group.get_quota * 100) | format('%.2f') %]%"></span>
+ </span>
</li>
<li><a href="/group/history.pl?group=[% group.get_groupname | html %]">[% 'Full history' | i18n | html %]</a></li>
<li><a href="/group/prefs.pl?group=[% group.get_groupname | html %]">[% 'Preferences' | i18n | html %]</a></li>
Modified: trunk/vhffs-themes/light-grey/main.css
===================================================================
--- trunk/vhffs-themes/light-grey/main.css 2011-07-25 20:59:30 UTC (rev 1889)
+++ trunk/vhffs-themes/light-grey/main.css 2011-07-25 20:59:39 UTC (rev 1890)
@@ -1757,7 +1757,10 @@
clear: none;
}
-/**************************/ /* Login */
+/**************************/
+/* Login */
+/**************************/
+
.page-container-login div.logo {
text-align: center;
margin-bottom: 20px
@@ -1801,3 +1804,20 @@
margin-right:5px;
}
+/* quota */
+span.quota,
+span.quota-used {
+ display: inline-block;
+ vertical-align: middle;
+ height: 15px;
+}
+
+span.quota {
+ width: 300px;
+ background-color: rgb(75, 75, 75);
+}
+
+span.quota-used {
+ background-color: rgb(127, 162, 202);
+}
+