[vhffs-dev] [599] Fixed public area about links to svn&cvs web, and about links to listengine archives

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 599
Author:   gradator
Date:     2007-05-07 12:26:15 +0000 (Mon, 07 May 2007)

Log Message:
-----------
Fixed public area about links to svn&cvs web, and about links to listengine archives

Modified Paths:
--------------
    branches/vhffs-4.0/vhffs-panel/public/group.pl
    branches/vhffs-4.0/vhffs-panel/templates/public/misc/list-part.tmpl


Modified: branches/vhffs-4.0/vhffs-panel/public/group.pl
===================================================================
--- branches/vhffs-4.0/vhffs-panel/public/group.pl	2007-05-07 11:59:21 UTC (rev 598)
+++ branches/vhffs-4.0/vhffs-panel/public/group.pl	2007-05-07 12:26:15 UTC (rev 599)
@@ -148,7 +148,7 @@
 			{
 			    $subtemplate = new HTML::Template( filename => $templatedir."/public/misc/cvs-part.tmpl" );
 			    $subtemplate->param( CVSROOT => $_->get_cvsroot );
-			    $subtemplate->param( CVSURL  => $vhffs->get_config->get_cvsweburl . "/" . $group->get_groupname . "/" . $_->get_cvsroot );
+			    $subtemplate->param( CVSURL  => $vhffs->get_config->get_cvsweburl . '/cvs_' . $group->get_groupname . '_' . $_->get_cvsroot );
 			    $output .= $subtemplate->output;
 			}
 
@@ -164,27 +164,27 @@
 
 		if( $vhffs->get_config->use_svn == 1 )
 		{
-		    use Vhffs::Services::Svn;
-		    $repos = Vhffs::Services::Svn::getall_by_group( $vhffs , $group );
-		    $output = "";
-		    $template->param( SVN_TITLE => gettext("SVN repository for this group"));
-		    if( defined $repos )
-		    {
+			use Vhffs::Services::Svn;
+			$repos = Vhffs::Services::Svn::getall_by_group( $vhffs , $group );
+			$output = "";
+			$template->param( SVN_TITLE => gettext("SVN repository for this group"));
+			if( defined $repos )
+			{
 				foreach(  @{$repos} )
 				{
 			   	 	$subtemplate = new HTML::Template( filename => $templatedir."/public/misc/svn-part.tmpl" );
-			    	$subtemplate->param( SVNROOT => $_->get_reponame );
-			    	$subtemplate->param( DESCRIPTION => $_->get_description );
-			    	$subtemplate->param( SVNURL  => $vhffs->get_config->get_svnweburl . "/listing.php?repname=".$_->get_reponame."+(".$group->get_groupname.")" );
-			    	$output .= $subtemplate->output;
+				    	$subtemplate->param( SVNROOT => $_->get_reponame );
+				    	$subtemplate->param( DESCRIPTION => $_->get_description );
+				    	$subtemplate->param( SVNURL  => $vhffs->get_config->get_svnweburl . '/svn_' . $group->get_groupname . '_' . $_->get_reponame );
+			    		$output .= $subtemplate->output;
 				}
 
 				$template->param( SVN_VALUE => $output );
-		    }
-	    	else
-	    	{
+			}
+			else
+			{
 				$template->param( SVN_VALUE => gettext("No subversion repository available for this group") );
-	    	}
+			}
 		}
 
 
@@ -228,6 +228,8 @@
 				{
 			   	 	$subtemplate = new HTML::Template( filename => $templatedir."/public/misc/list-part.tmpl" );
 			    	$subtemplate->param( LISTNAME => $_->get_title );
+			    	$subtemplate->param( DOMAIN => $_->get_domain );
+			    	$subtemplate->param( LOCALPART => $_->get_localpart );
 			    	$subtemplate->param( ARCHIVESURL => $vhffs->get_config->get_www_archives );
 			    	$subtemplate->param( ARCHIVES_TEXT => gettext( "View archives" ) );
 			    	$output .= $subtemplate->output;

Modified: branches/vhffs-4.0/vhffs-panel/templates/public/misc/list-part.tmpl
===================================================================
--- branches/vhffs-4.0/vhffs-panel/templates/public/misc/list-part.tmpl	2007-05-07 11:59:21 UTC (rev 598)
+++ branches/vhffs-4.0/vhffs-panel/templates/public/misc/list-part.tmpl	2007-05-07 12:26:15 UTC (rev 599)
@@ -1,3 +1,4 @@
 <li>
-<tmpl_var name="LISTNAME"> <a href="<tmpl_var name="ARCHIVESURL">/archives.pl?list=<tmpl_var name="LISTNAME">"><tmpl_var name="ARCHIVES_TEXT"></a>
+<tmpl_var name="LISTNAME"> <a href="<tmpl_var name="ARCHIVESURL">/<tmpl_var name="DOMAIN">/<tmpl_var name="LOCALPART">"><tmpl_var name="ARCHIVES_TEXT"></a>
 </li>
+


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/