[vhffs-dev] [1720] Removed Vhffs::Panel::Main::project_info |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1720
Author: beuss
Date: 2011-05-14 10:13:08 +0200 (Sat, 14 May 2011)
Log Message:
-----------
Removed Vhffs::Panel::Main::project_info
Modified Paths:
--------------
trunk/vhffs-api/src/Vhffs/Panel/Main.pm
Modified: trunk/vhffs-api/src/Vhffs/Panel/Main.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Main.pm 2011-05-14 08:13:01 UTC (rev 1719)
+++ trunk/vhffs-api/src/Vhffs/Panel/Main.pm 2011-05-14 08:13:08 UTC (rev 1720)
@@ -452,133 +452,6 @@
$panel->{infos} = [];
}
-sub project_info
-{
- my $panel = shift;
- my $vhffs = $panel->{vhffs};
- my $cgi = $panel->{cgi};
- my $templatedir = $vhffs->get_config->get_templatedir;
- my $temp;
- my $object;
- my $objects;
- my $template;
- my $subtemplate;
-
- my $group = Vhffs::Group::get_by_groupname( $vhffs , $cgi->param('group') );
-
- if( ! defined( $group ) ) {
- $template = new HTML::Template( filename => $templatedir."/panel/misc/simplemsg.tmpl" );
- $template->param( MESSAGE => gettext("Group error" ) );
- } else {
- $template = new HTML::Template( filename => $templatedir."/panel/group/info.tmpl" );
- $panel->set_title( sprintf( gettext("Group %s") , $group->get_groupname ) );
- $template->param( THEME => $panel->{theme} );
-
- # Quota stuff
- $template->param( QUOTA_TEXT => sprintf( gettext("Quota (used/total) : %s/%s") , $group->get_quota_used , $group->get_quota ) );
- # Yes, sorry quota progress image has to be 300px width max
- $template->param( QUOTA_WIDTH => ( ($group->get_quota_used / $group->get_quota) * 300 ) );
-
- my $gid = $group->get_gid;
- my $config = $vhffs->get_config;
- my $services_list = '';
-
- $template->param( TEXT_PREFS => gettext('Preferences') );
- $template->param( TEXT_GENERAL => gettext('General') );
- $template->param( TEXT_FULLHISTORY => gettext('Full history') );
-
- $template->param( GROUPNAME => $group->get_groupname );
-
- my $groupconfig = $config->get_groups;
- if( defined $groupconfig && defined ( my $url = $groupconfig->{'url_doc'} ) ) {
- $template->param( HELP_TEXT => gettext('Help') );
- $template->param( HELP_URL => $url );
- }
-
- if($config->get_service_availability('web')) {
- require Vhffs::Panel::Web;
- my $webs = Vhffs::Panel::Web::getall_per_group( $vhffs, $gid );
- $services_list .= $panel->create_service_index('web', $webs)->output;
- }
-
- if($config->get_service_availability('mysql')) {
- require Vhffs::Panel::Mysql;
- my $mysql = Vhffs::Panel::Mysql::getall_per_group( $vhffs, $gid );
- $services_list .= $panel->create_service_index('mysql', $mysql)->output;
- }
-
- if($config->get_service_availability('pgsql')) {
- require Vhffs::Panel::Pgsql;
- my $pg = Vhffs::Panel::Pgsql::getall_per_group( $vhffs, $gid );
- $services_list .= $panel->create_service_index('pgsql', $pg)->output;
- }
-
- if($config->get_service_availability('cvs')) {
- require Vhffs::Panel::Cvs;
- my $cvs = Vhffs::Panel::Cvs::getall_per_group( $vhffs, $gid );
- $services_list .= $panel->create_service_index('cvs', $cvs)->output;
- }
-
- if($config->get_service_availability('svn')) {
- require Vhffs::Panel::Svn;
- my $svn = Vhffs::Panel::Svn::getall_per_group( $vhffs, $gid );
- $services_list .= $panel->create_service_index('svn', $svn)->output;
- }
-
- if($config->get_service_availability('git')) {
- require Vhffs::Panel::Git;
- my $git = Vhffs::Panel::Git::getall_per_group( $vhffs, $gid );
- $services_list .= $panel->create_service_index('git', $git)->output;
- }
-
- if($config->get_service_availability('mercurial')) {
- require Vhffs::Panel::Mercurial;
- my $mercurial = Vhffs::Panel::Mercurial::getall_per_group( $vhffs, $gid );
- $services_list .= $panel->create_service_index('mercurial', $mercurial)->output;
- }
-
- if($config->get_service_availability('bazaar')) {
- require Vhffs::Panel::Bazaar;
- my $bazaar = Vhffs::Panel::Bazaar::getall_per_group( $vhffs, $gid );
- $services_list .= $panel->create_service_index('bazaar', $bazaar)->output;
- }
-
- if($config->get_service_availability('mailinglist')) {
- require Vhffs::Panel::MailingList;
- my $ml = Vhffs::Panel::MailingList::getall_per_group( $vhffs, $gid );
- $services_list .= $panel->create_service_index('mailinglist', $ml)->output;
- }
-
- if($config->get_service_availability('mail')) {
- require Vhffs::Panel::Mail;
- my $mail = Vhffs::Panel::Mail::getall_per_group( $vhffs, $gid );
- $services_list .= $panel->create_service_index('mail', $mail)->output;
- }
-
- if($config->get_service_availability('repository')) {
- require Vhffs::Panel::Repository;
- my $repos = Vhffs::Panel::Repository::getall_per_group( $vhffs, $gid );
- $services_list .= $panel->create_service_index('repository', $repos)->output;
- }
-
- if($config->get_service_availability('dns')) {
- require Vhffs::Panel::DNS;
- my $dns = Vhffs::Panel::DNS::getall_per_group( $vhffs, $gid );
- $services_list .= $panel->create_service_index('dns', $dns)->output;
- }
-
- if($config->get_service_availability('cron')) {
- require Vhffs::Panel::Cron;
- my $cron = Vhffs::Panel::Cron::getall_per_group( $vhffs, $gid );
- $services_list .= $panel->create_service_index('cron', $cron)->output;
- }
-
- $template->param( SERVICES => $services_list );
- }
- return $template;
-}
-
-
sub set_refresh_url
{
my ( $panel , $url , $time ) = @_;