This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  3ccdc02cdef2bd755f67ffc949e20663403060b5 (commit)
      from  2180fddff7c023d17d0315c4302cd655be39f4b7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=3ccdc02cdef2bd755f67ffc949e20663403060b5

commit 3ccdc02cdef2bd755f67ffc949e20663403060b5
Author: Franck Villaume <[email protected]>
Date:   Thu Sep 28 08:33:41 2017 +0000

    mediawiki plugin: adjust theming for MW >= 1.24: add fusionforge box

diff --git 
a/src/plugins/mediawiki/MonoBookFusionForge/MonoBookFusionForgeTemplate.php 
b/src/plugins/mediawiki/MonoBookFusionForge/MonoBookFusionForgeTemplate.php
index 13d1d1e..ca674c9 100644
--- a/src/plugins/mediawiki/MonoBookFusionForge/MonoBookFusionForgeTemplate.php
+++ b/src/plugins/mediawiki/MonoBookFusionForge/MonoBookFusionForgeTemplate.php
@@ -236,6 +236,28 @@ class MonoBookFusionForgeTemplate extends BaseTemplate {
                        $sidebar['LANGUAGES'] = true;
                }
 
+               if (session_loggedin()) {
+                       $efbox_log_text = _('Log Out');
+                       $efbox_log_link = "/account/logout.php?return_to=" . 
urlencode(getStringFromServer('REQUEST_URI'));
+               } else {
+                       $efbox_log_text = _('Log In');
+                       $efbox_log_link = "/account/login.php?return_to=" . 
urlencode(getStringFromServer('REQUEST_URI'));
+               }
+               $efbox_prj_link = "/projects/" . $this->project->getUnixName() 
. "/";
+
+               $this->customBox("FusionForge", array(
+                                               "project" => array(
+                                               "id" => "fusionforge_project",
+                                               "href" => $efbox_prj_link,
+                                               "text" => _("Project Summary"),
+                                               ),
+                               "loginout" => array(
+                                               "id" => "fusionforge_loginout",
+                                               "href" => $efbox_log_link,
+                                               "text" => $efbox_log_text,
+                                               ),
+                               ));
+
                foreach ( $sidebar as $boxName => $content ) {
                        if ( $content === false ) {
                                continue;

-----------------------------------------------------------------------

Summary of changes:
 .../MonoBookFusionForgeTemplate.php                | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to