[vhffs-dev] [svn] commit: r49 - trunk/vhffs-api/src/Vhffs/Conf.pm trunk/vhffs-api/src/Vhffs/Panel/Cvs.pm trunk/vhffs-backend/conf/vhffs.conf trunk/vhffs-panel/templates/cvs/menu.tmpl

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


Author: soda
Date: Sat Jun 11 12:09:49 2005
New Revision: 49

Log:
Add var in config file to get the documentation for CVS


Modified:
    trunk/vhffs-api/src/Vhffs/Conf.pm
    trunk/vhffs-api/src/Vhffs/Panel/Cvs.pm
    trunk/vhffs-backend/conf/vhffs.conf
    trunk/vhffs-panel/templates/cvs/menu.tmpl

Modified: trunk/vhffs-api/src/Vhffs/Conf.pm
==============================================================================
--- trunk/vhffs-api/src/Vhffs/Conf.pm (original)
+++ trunk/vhffs-api/src/Vhffs/Conf.pm Sat Jun 11 12:09:49 2005
@@ -668,6 +668,18 @@
 }
 
 
+sub get_cvsdocurl
+{
+	if( defined $Config{"services"}{"cvs"}{"cvsdoc_url"} )
+	{
+	    return $Config{"services"}{"cvs"}{"cvsdoc_url"};
+	}
+	else
+	{
+	    return "http://doc";;
+	}
+}
+
 
 sub get_cvsweburl
 {

Modified: trunk/vhffs-api/src/Vhffs/Panel/Cvs.pm
==============================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Cvs.pm (original)
+++ trunk/vhffs-api/src/Vhffs/Panel/Cvs.pm Sat Jun 11 12:09:49 2005
@@ -90,6 +90,7 @@
 	$template->param( TEXT_CREATE => gettext("Create") );
 	$template->param( TEXT_CVS => gettext("Repository CVS") );
 	$template->param( TEXT_CVSDOC => gettext("Documentation") );
+	$template->param( URL_CVSDOC => $vhffs->get_config->get_cvsdocurl );
 
 	my $repos = Vhffs::Services::Cvs::getall_per_group( $vhffs , $group );
 	my $output = "";

Modified: trunk/vhffs-backend/conf/vhffs.conf
==============================================================================
--- trunk/vhffs-backend/conf/vhffs.conf (original)
+++ trunk/vhffs-backend/conf/vhffs.conf Sat Jun 11 12:09:49 2005
@@ -178,6 +178,7 @@
 
 	<cvs>
 		cvsweb_url = "http://cvsweb.tuxfamily.org";	
+		cvsdoc_url = "http://faq.tuxfamily.org/wakka.php?wiki=FaqCVS";
 	</cvs>
 	<mysql>
 		host		= localhost

Modified: trunk/vhffs-panel/templates/cvs/menu.tmpl
==============================================================================
--- trunk/vhffs-panel/templates/cvs/menu.tmpl (original)
+++ trunk/vhffs-panel/templates/cvs/menu.tmpl Sat Jun 11 12:09:49 2005
@@ -1,18 +1,18 @@
-				<li id="repositoryCVS">
-					<tmpl_var name="TEXT_CVS">
+				<li id="repositoryCVS">
+					<tmpl_var name="TEXT_CVS">
 					<ul id="repositoryCVSMenu">
 						<li id="repositoryCVSDocumentation">
-							<a href="/help/cvs.html" title="<tmpl_var name="TEXT_CVSDOC">">
-								<tmpl_var name="TEXT_CVSDOC">
-							</a>
-						</li>
-						
-						<tmpl_var name="SUB_CVS">
-						
-						<li id="repositoryCVSCreate">
-							<a href="/cvs/create.pl" title="<tmpl_var name="TEXT_CREATE">">
-								<tmpl_var name="TEXT_CREATE">
+							<a href="<tmpl_var name="URL_CVSDOC">" title="<tmpl_var name="TEXT_CVSDOC">">
+								<tmpl_var name="TEXT_CVSDOC">
 							</a>
 						</li>
-					</ul>
-				</li>
+						
+						<tmpl_var name="SUB_CVS">
+						
+						<li id="repositoryCVSCreate">
+							<a href="/cvs/create.pl" title="<tmpl_var name="TEXT_CREATE">">
+								<tmpl_var name="TEXT_CREATE">
+							</a>
+						</li>
+					</ul>
+				</li>




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