RE: Patch for the Redmine Collapse plugin ยป collapse_plugin_i18n_tabs.patch
| vendor/plugins/redmine_collapse/lib/collapse_application_helper_patch.rb | ||
|---|---|---|
|
def left_menu_tabs
|
||
|
# Don't render the projects-tab unless specifically configured
|
||
|
if Setting.plugin_redmine_collapse['show_projects_tab'] == '1'
|
||
|
tabs = [ { :name => 'actions', :label => l(:label_actions_tab), :partial => 'left_menu/actions.rhtml' },
|
||
|
{ :name => 'projects', :label => l(:label_projects_tab), :partial => 'left_menu/projects.rhtml' } ]
|
||
|
tabs = [ { :name => 'actions', :label => :label_actions_tab, :partial => 'left_menu/actions.rhtml' },
|
||
|
{ :name => 'projects', :label => :label_projects_tab, :partial => 'left_menu/projects.rhtml' } ]
|
||
|
else
|
||
|
tabs = [ { :name => 'actions', :label => l(:label_actions_tab), :partial => 'left_menu/actions.rhtml' } ]
|
||
|
tabs = [ { :name => 'actions', :label => :label_actions_tab, :partial => 'left_menu/actions.rhtml' } ]
|
||
|
end
|
||
|
return tabs
|
||
|
end
|
||