[vhffs-dev] [svn] commit: r197 - in /trunk: TODO vhffs-api/src/Vhffs/Conf.pm vhffs-api/src/Vhffs/Panel/Svn.pm vhffs-backend/conf/vhffs.conf vhffs-panel/templates/svn/menu.tmpl

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


Author: soda
Date: Tue May  9 14:37:03 2006
New Revision: 197

Log:
help for svn can be configured now in vhffs.conf


Modified:
    trunk/TODO
    trunk/vhffs-api/src/Vhffs/Conf.pm
    trunk/vhffs-api/src/Vhffs/Panel/Svn.pm
    trunk/vhffs-backend/conf/vhffs.conf
    trunk/vhffs-panel/templates/svn/menu.tmpl

Modified: trunk/TODO
==============================================================================
--- trunk/TODO (original)
+++ trunk/TODO Tue May  9 14:37:03 2006
@@ -2,5 +2,4 @@
 - improve archives format for listengine
 - improve panel, see ajax or css design
 - continue the document of the API
-- Add in vhffs.conf directive svnhelp_url
 

Modified: trunk/vhffs-api/src/Vhffs/Conf.pm
==============================================================================
--- trunk/vhffs-api/src/Vhffs/Conf.pm (original)
+++ trunk/vhffs-api/src/Vhffs/Conf.pm Tue May  9 14:37:03 2006
@@ -417,6 +417,20 @@
 }
 
 
+sub get_svn_helpurl
+{
+	if( defined $Config{"services"}{"subversion"}{"help_url"} )
+	{
+		return $Config{"services"}{"subversion"}{"help_url"};
+	}
+	else
+	{
+		return "/svn/help.html";
+	}
+}
+
+
+
 
 sub get_svn_gid
 {

Modified: trunk/vhffs-api/src/Vhffs/Panel/Svn.pm
==============================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Svn.pm (original)
+++ trunk/vhffs-api/src/Vhffs/Panel/Svn.pm Tue May  9 14:37:03 2006
@@ -116,6 +116,7 @@
 	$template->param( TEXT_CREATE => gettext("Create") );
 	$template->param( TEXT_SVN => gettext("Subversion repository") );
 	$template->param( TEXT_SVNDOC => gettext("Documentation") );
+	$template->param( HELP_URL => $vhffs->get_config->get_svn_helpurl( ) );
 
 	my $repos = Vhffs::Services::Svn::getall( $vhffs , undef , undef , $group );
 	my $repo;

Modified: trunk/vhffs-backend/conf/vhffs.conf
==============================================================================
--- trunk/vhffs-backend/conf/vhffs.conf (original)
+++ trunk/vhffs-backend/conf/vhffs.conf Tue May  9 14:37:03 2006
@@ -234,6 +234,7 @@
 	</postgresql>
 	<subversion>
 		svnweb_url = "http://svnweb.hoster";	
+		help_url	=	"http://myhost.tld/file.html";
 		uid	=	33
 		gid	=	33
 	</subversion>

Modified: trunk/vhffs-panel/templates/svn/menu.tmpl
==============================================================================
--- trunk/vhffs-panel/templates/svn/menu.tmpl (original)
+++ trunk/vhffs-panel/templates/svn/menu.tmpl Tue May  9 14:37:03 2006
@@ -2,7 +2,7 @@
 		<tmpl_var name="TEXT_SVN">
 		<ul id="repositorySVNMenu">
 			<li id="repositorySVNDocumentation">
-				<a href="/help/svn.html" title="<tmpl_var name="TEXT_SVNDOC">">
+				<a href="<tmpl_var name="HELP_URL">" title="<tmpl_var name="TEXT_SVNDOC">">
 					<tmpl_var name="TEXT_SVNDOC">
 				</a>
 			</li>




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