You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2015/10/29 20:05:46 UTC

airavata-php-gateway git commit: making portal title configurable

Repository: airavata-php-gateway
Updated Branches:
  refs/heads/master e8f6fc8eb -> dc36abd10


making portal title configurable


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/dc36abd1
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/dc36abd1
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/dc36abd1

Branch: refs/heads/master
Commit: dc36abd10745549053177a13709500a2678ca04e
Parents: e8f6fc8
Author: scnakandala <su...@gmail.com>
Authored: Thu Oct 29 15:05:41 2015 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Thu Oct 29 15:05:41 2015 -0400

----------------------------------------------------------------------
 app/config/pga_config.php.template | 5 +++++
 app/controllers/BaseController.php | 4 +++-
 app/views/layout/basic.blade.php   | 3 ++-
 3 files changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/dc36abd1/app/config/pga_config.php.template
----------------------------------------------------------------------
diff --git a/app/config/pga_config.php.template b/app/config/pga_config.php.template
index 770edd6..7e9524a 100644
--- a/app/config/pga_config.php.template
+++ b/app/config/pga_config.php.template
@@ -172,6 +172,11 @@ return array(
         'theme' => 'base',
 
         /**
+         * Portal titles
+         */
+        'portal-tile' => 'Airavata PHP Gateway',
+
+        /**
          * Email address of the portal admin. Portal admin well get email notifications for events
          * such as new user creation
          */

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/dc36abd1/app/controllers/BaseController.php
----------------------------------------------------------------------
diff --git a/app/controllers/BaseController.php b/app/controllers/BaseController.php
index 59e3dda..66c3658 100755
--- a/app/controllers/BaseController.php
+++ b/app/controllers/BaseController.php
@@ -11,8 +11,10 @@ class BaseController extends Controller {
 	{
 		//Theme gets set baesd on the one chosen in pga_config. default is basic.
 		$themeName = Config::get('pga_config.portal')['theme'];
-		//$theme = Theme::uses( $themeName); 
+		$portalTitle = Config::get('pga_config.portal')['portal-title'];
+		//$theme = Theme::uses( $themeName);
 		Session::put( "theme", $themeName);
+		Session::put( "portal-title", $portalTitle);
 
 		
 		if ( ! is_null($this->layout))

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/dc36abd1/app/views/layout/basic.blade.php
----------------------------------------------------------------------
diff --git a/app/views/layout/basic.blade.php b/app/views/layout/basic.blade.php
index 7c0dec1..ab2504b 100755
--- a/app/views/layout/basic.blade.php
+++ b/app/views/layout/basic.blade.php
@@ -1,10 +1,11 @@
 <?php 
 $theme = Theme::uses(Session::get("theme"));
+$title = Session::get("portal-title");
 ?>
 
 @section ('page-header')
 @include("layout/fixed-header", array(
-                            "title" => "PHP Reference Gateway"
+                            "title" => $title
                         ))
 @show
 <style>