|
From: <hma...@us...> - 2010-04-08 03:37:48
|
Revision: 2097
http://ndlb.svn.sourceforge.net/ndlb/?rev=2097&view=rev
Author: hmazariegos
Date: 2010-04-08 03:37:41 +0000 (Thu, 08 Apr 2010)
Log Message:
-----------
replaced shanti_engine plugin by shanti_integration plugin. Added configuratiion to application_helper to work with new plugin.
Modified Paths:
--------------
portal/ror/topical_map_builder/branches/fathom/app/helpers/application_helper.rb
Property Changed:
----------------
portal/ror/topical_map_builder/branches/fathom/vendor/plugins/
Modified: portal/ror/topical_map_builder/branches/fathom/app/helpers/application_helper.rb
===================================================================
--- portal/ror/topical_map_builder/branches/fathom/app/helpers/application_helper.rb 2010-03-30 02:16:04 UTC (rev 2096)
+++ portal/ror/topical_map_builder/branches/fathom/app/helpers/application_helper.rb 2010-04-08 03:37:41 UTC (rev 2097)
@@ -1,7 +1,7 @@
# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
def stylesheet_files
- super + ['tmb', 'tmb_implicit'] #['base', 'language_support', 'authenticated_system', 'tmb', 'tmb_implicit']
+ ['base', 'language_support', 'authenticated_system','tmb', 'tmb_implicit'] + super
end
def javascript_files
@@ -16,7 +16,6 @@
return javascript_include_tag(*javascript_files)
end
-
def join_with_and(list)
size = list.size
case size
@@ -26,4 +25,56 @@
when 3 then [list[0..size-2].join(', '), list[size-1]].join(', and ')
end
end
+
+ def main_navigation_items()
+ return @main_navigation_items if @main_navigation_items
+ # basic menu options
+ @main_navigation_items = [
+ { :id => :home, :text => 'Home', :link => root_path },
+ ]
+ @current_nav_item = :home
+
+ return @main_navigation_items
+ end
+
+ def site_title(opts={:html=>true})
+ opts[:html] ? 'SHANTI UVa Kmaps' : 'SHANTI UVa Kmaps'
+ end
+
+ def banner_title(opts={:html=>true})
+ opts[:html] ? 'SHANTI - Kmaps' : 'SHANTI - Kmaps'
+ end
+
+ def page_title()
+ return "" #if @current_nav_item == :users
+
+ # Supply reasonable default if no current_nav_item is given.
+ if @current_nav_item
+ main_navigation_items.select { |item| item[:id] == @current_nav_item }.first[:text]
+ else
+ ''
+ end
+ end
+
+
+ def login_status_links()
+ return "<div id=\"login-status\">" +
+ "#{login_status}#{' '*3}" +
+ language_option_links +
+ "</div>\n"
+ end
+
+ # this method relies on the authenticated_system plugin
+ def login_status
+ if !logged_in?
+ return "#{link_to 'Login', authenticated_system_login_path}."
+ else
+ return "#{current_user.login}. #{link_to 'Logout', authenticated_system_logout_path}."
+ end
+ end
+
+ # this method relies on the complex scripts plugin
+ def language_option_links
+ render(:partial => 'sessions/language_options')
+ end
end
\ No newline at end of file
Property changes on: portal/ror/topical_map_builder/branches/fathom/vendor/plugins
___________________________________________________________________
Modified: svn:externals
- acts_as_tree http://dev.rubyonrails.org/svn/rails/plugins/acts_as_tree
annotate_models http://repo.pragprog.com/svn/Public/plugins/annotate_models
complex_scripts http://ndlb.svn.sourceforge.net/svnroot/ndlb/portal/ror/plugins/complex_scripts/trunk
newrelic_rpm http://newrelic.rubyforge.org/svn/newrelic_rpm
authenticated_system https://ndlb.svn.sourceforge.net/svnroot/ndlb/portal/ror/plugins/authenticated_system/trunk
tmb_engine https://ndlb.svn.sourceforge.net/svnroot/ndlb/portal/ror/plugins/tmb_engine/trunk
places_integration https://ndlb.svn.sourceforge.net/svnroot/ndlb/portal/ror/plugins/places_integration/trunk
media_integration https://ndlb.svn.sourceforge.net/svnroot/ndlb/portal/ror/plugins/media_integration/trunk
shanti_engine https://ndlb.svn.sourceforge.net/svnroot/ndlb/portal/ror/plugins/shanti_engine/trunk
+ acts_as_tree http://dev.rubyonrails.org/svn/rails/plugins/acts_as_tree
annotate_models http://repo.pragprog.com/svn/Public/plugins/annotate_models
complex_scripts http://ndlb.svn.sourceforge.net/svnroot/ndlb/portal/ror/plugins/complex_scripts/trunk
newrelic_rpm http://newrelic.rubyforge.org/svn/newrelic_rpm
authenticated_system https://ndlb.svn.sourceforge.net/svnroot/ndlb/portal/ror/plugins/authenticated_system/trunk
tmb_engine https://ndlb.svn.sourceforge.net/svnroot/ndlb/portal/ror/plugins/tmb_engine/trunk
places_integration https://ndlb.svn.sourceforge.net/svnroot/ndlb/portal/ror/plugins/places_integration/trunk
media_integration https://ndlb.svn.sourceforge.net/svnroot/ndlb/portal/ror/plugins/media_integration/trunk
shanti_integration svn+ssh://rubyforge.org/var/svn/fathom/plugins/shanti_integration/trunk
shanti_integration http://rubyforge.org/var/svn/fathom/plugins/shanti_integration/trunk
shanti_integration svn://rubyforge.org/var/svn/fathom/plugins/shanti_integration/trunk
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|