[Fusionforge-commits] r12908 - in trunk/src: . docs

Alain Peyrat aljeux at fusionforge.org
Fri Mar 25 11:52:00 CET 2011


Author: aljeux
Date: 2011-03-25 11:52:00 +0100 (Fri, 25 Mar 2011)
New Revision: 12908

Modified:
   trunk/src/CHANGES
   trunk/src/docs/README.Plugins
   trunk/src/fusionforge-install-2.php
   trunk/src/fusionforge.spec
Log:
Add docs & install for new plugin-message.

Modified: trunk/src/CHANGES
===================================================================
--- trunk/src/CHANGES	2011-03-25 10:51:47 UTC (rev 12907)
+++ trunk/src/CHANGES	2011-03-25 10:52:00 UTC (rev 12908)
@@ -2,6 +2,8 @@
 * Docman: inject zip as a tree (Capgemini)
 * Widget: New User Widget: Last 5 documents published in my project (Capgemini)
 * Docman: mass action (Capgemini)
+* New Message plugin to display global messages like planned upgrade or outage
+  (Alcatel-Lucent).
 
 FusionForge-5.1:
 * Theme: new Funky Theme (Capgemini)

Modified: trunk/src/docs/README.Plugins
===================================================================
--- trunk/src/docs/README.Plugins	2011-03-25 10:51:47 UTC (rev 12907)
+++ trunk/src/docs/README.Plugins	2011-03-25 10:52:00 UTC (rev 12908)
@@ -1,8 +1,8 @@
-DEBIAN GFORGE PLUGINS HOWTO
+FUSIONFORGE PLUGINS HOWTO
 --------------------------------
 
-Here is a short HOWTO explaining how plugins work in Debian
-GForge, and how to make a new one.
+Here is a short HOWTO explaining how plugins work, and how to make
+a new one.
 
   It was written by Roland Mas <lolando at debian.org>.
 
@@ -308,6 +308,11 @@
                top menu (after: Login, Logout, My Account).
                See plugin online_help for example of use.
 
+  Hook Name  : htmlhead
+  Locations  : www/include/Layout.class.php (& derived classes)
+  Description: Used to allow plugins to include code in the <head>.
+               See plugin message for example of use.
+
   Hook Name  : javascript
   Locations  : www/include/Layout.class.php
                www/include/LayoutSF.class.php

Modified: trunk/src/fusionforge-install-2.php
===================================================================
--- trunk/src/fusionforge-install-2.php	2011-03-25 10:51:47 UTC (rev 12907)
+++ trunk/src/fusionforge-install-2.php	2011-03-25 10:52:00 UTC (rev 12908)
@@ -246,6 +246,10 @@
 	{
 		symlink ("../../plugins/svntracker/www/", "svntracker");
 	}
+	if (!is_dir("message"))
+	{
+		symlink ("../../plugins/message/www/", "message");
+	}
 	if (!is_dir("scmcvs"))
 	{
 		symlink ("../../plugins/scmcvs/www", "scmcvs");

Modified: trunk/src/fusionforge.spec
===================================================================
--- trunk/src/fusionforge.spec	2011-03-25 10:51:47 UTC (rev 12907)
+++ trunk/src/fusionforge.spec	2011-03-25 10:52:00 UTC (rev 12908)
@@ -178,6 +178,14 @@
 %description plugin-mediawiki
 This is a plugin to integrate MediaWiki within FusionForge.
 
+%package plugin-message
+Summary: Global Information Message plugin for FusionForge
+Group: Development/Tools
+Requires: %{name} >= %{version}, php
+%description plugin-message
+This is a plugin to add a global announce message for FusionForge.
+It can be use to warn users for planned or current outage.
+
 %package plugin-online_help
 Summary: online_help plugin for FusionForge
 Group: Development/Tools
@@ -525,6 +533,9 @@
 # insert our own README file
 %{__cp} -f %{SOURCE1} $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/mediawiki/README.jlbond
 
+# plugin: message
+%{__ln_s} ../../plugins/message/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/message
+
 # plugin: online_help
 
 # plugin: projects_hierarchy
@@ -880,6 +891,10 @@
 /usr/share/mediawiki/skins/GForge.deps.php
 /usr/share/mediawiki/skins/GForge.php
 
+%files plugin-message
+%{FORGE_DIR}/plugins/message
+%{FORGE_DIR}/www/plugins/message
+
 %files plugin-online_help
 %config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/online_help.ini
 %{FORGE_DIR}/plugins/online_help




More information about the Fusionforge-commits mailing list