[vhffs-dev] [svn] commit: r270 - in /trunk/vhffs-panel: repository/prefs.pl repository/quota_used.pl templates/repository/prefs.tmpl |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
- To: vhffs-dev@xxxxxxxxx
- Subject: [vhffs-dev] [svn] commit: r270 - in /trunk/vhffs-panel: repository/prefs.pl repository/quota_used.pl templates/repository/prefs.tmpl
- From: vhffs-dev@xxxxxxxxx
- Date: Tue, 31 Oct 2006 06:25:02 -0000
Author: gradator
Date: Tue Oct 31 07:25:02 2006
New Revision: 270
Log:
Add a fancy progress bar for quota used in repositories ;)
Added:
trunk/vhffs-panel/repository/quota_used.pl (with props)
Modified:
trunk/vhffs-panel/repository/prefs.pl
trunk/vhffs-panel/templates/repository/prefs.tmpl
Modified: trunk/vhffs-panel/repository/prefs.pl
==============================================================================
--- trunk/vhffs-panel/repository/prefs.pl (original)
+++ trunk/vhffs-panel/repository/prefs.pl Tue Oct 31 07:25:02 2006
@@ -96,8 +96,11 @@
$template = new HTML::Template( filename => $templatedir."/repository/prefs.tmpl" );
$template->param( TEXT_TITLE => gettext("Admin Download repository") );
+ $template->param( TEXT_REPONAME => $repo->get_name );
- $template->param( TEXT_REPONAME => $repo->get_name );
+ $template->param( REPONAME => $repo->get_name );
+ $template->param( QUOTA_VALUE => sprintf( gettext("Quota (used/total) : %s/%s") , $repo->get_quota_used , $repo->get_quota ) );
+
$template->param( TEXT_DELETE_REPOSITORY => gettext("Delete this project") );
$template->param( TEXT_BEFORE_DELETE => gettext("This action is non-reversible. All services associated to this project will be DESTROYED.") );
$template->param( ASK_DELETE_REPOSITORY => gettext("Are you SURE you want DELETE this download repository ?") );
Modified: trunk/vhffs-panel/templates/repository/prefs.tmpl
==============================================================================
--- trunk/vhffs-panel/templates/repository/prefs.tmpl (original)
+++ trunk/vhffs-panel/templates/repository/prefs.tmpl Tue Oct 31 07:25:02 2006
@@ -1,7 +1,11 @@
<h1><tmpl_var name="TEXT_TITLE"></h1>
<h2><tmpl_var name="TEXT_REPONAME"></h2>
-
+<div class="info_quota">
+ <img src="/repository/quota_used.pl?repo=<tmpl_var name="REPONAME">" alt="quota used for <tmpl_var name="REPONAME">"/>
+ <br/>
+ <tmpl_var name="QUOTA_VALUE">
+</div>
<h2><tmpl_var name="TEXT_ACL_ADMIN"></h2>