[vhffs-dev] [svn] commit: r271 - in /trunk: vhffs-api/src/Vhffs/Panel/Main.pm vhffs-panel/templates/group/info.tmpl |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
- To: vhffs-dev@xxxxxxxxx
- Subject: [vhffs-dev] [svn] commit: r271 - in /trunk: vhffs-api/src/Vhffs/Panel/Main.pm vhffs-panel/templates/group/info.tmpl
- From: vhffs-dev@xxxxxxxxx
- Date: Tue, 31 Oct 2006 06:39:22 -0000
Author: gradator
Date: Tue Oct 31 07:39:22 2006
New Revision: 271
Log:
Add download repositories to group summary page
Modified:
trunk/vhffs-api/src/Vhffs/Panel/Main.pm
trunk/vhffs-panel/templates/group/info.tmpl
Modified: trunk/vhffs-api/src/Vhffs/Panel/Main.pm
==============================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Main.pm (original)
+++ trunk/vhffs-api/src/Vhffs/Panel/Main.pm Tue Oct 31 07:39:22 2006
@@ -481,6 +481,31 @@
if( $vhffs->get_config->use_dns == 1 )
{
$temp = "";
+ $template->param( REPOSITORY => gettext("Download repositories for this group") );
+ $objects = Vhffs::Services::Repository::getall( $vhffs , undef , undef , $group );
+ if( defined $objects )
+ {
+ foreach $object ( @{$objects} )
+ {
+ $subtemplate = new HTML::Template( filename => $templatedir."/misc/group_service.tmpl" );
+ $subtemplate->param( SERVICE => "repository" );
+ $subtemplate->param( VALUE => $object->get_name );
+ $subtemplate->param( TEXT => gettext("Go to admin") );
+ $subtemplate->param( HISTORY => gettext("View history") );
+ $subtemplate->param( OID => $object->get_oid );
+ $temp .= $subtemplate->output;
+ }
+ }
+ else
+ {
+ $temp = gettext("No download repository for this group");
+ }
+ $template->param( REPOSITORY_VALUES => $temp );
+ }
+
+ if( $vhffs->get_config->use_repository == 1 )
+ {
+ $temp = "";
$template->param( DNS => gettext("Domains for this group") );
$objects = Vhffs::Services::DNS::getall( $vhffs , undef , undef , $group );
if( defined $objects )
@@ -502,7 +527,7 @@
}
$template->param( DNS_VALUES => $temp );
}
-
+
}
Modified: trunk/vhffs-panel/templates/group/info.tmpl
==============================================================================
--- trunk/vhffs-panel/templates/group/info.tmpl (original)
+++ trunk/vhffs-panel/templates/group/info.tmpl Tue Oct 31 07:39:22 2006
@@ -20,6 +20,10 @@
<tmpl_var name="PGSQL_VALUES">
</ul>
+ <h2><tmpl_var name="REPOSITORY"></h2>
+ <ul>
+ <tmpl_var name="REPOSITORY_VALUES">
+ </ul>
<h2><tmpl_var name="CVS"></h2>
<ul>
@@ -41,7 +45,6 @@
<tmpl_var name="MAILS_VALUES">
</ul>
-
<h2><tmpl_var name="MLS"></h2>
<ul>
<tmpl_var name="MLS_VALUES">