Commit 30576377fef555c17bcb5c8c9efa0e8c02f3a72e
1 parent
8992f46e
Exists in
master
and in
3 other branches
Added submenus
Showing
4 changed files
with
82 additions
and
3 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,11 @@ |
| 1 | +<div id="control_panel_bar" class="menu_aparence controller-profile_editor"> | |
| 2 | + | |
| 3 | +<% control_panel do %> | |
| 4 | + <%= control_panel_button(_('Edit sideboxes'), 'blocks', :controller => 'profile_design', :action => 'index') %> | |
| 5 | + | |
| 6 | + <%= control_panel_button(_('Edit Appearance'), 'design-editor', :controller => 'profile_themes', :action => 'index') %> | |
| 7 | + | |
| 8 | + <%= control_panel_button(_('Edit Header and Footer'), 'header-and-footer', :controller => 'profile_editor', :action => 'header_footer') unless profile.enterprise? && environment.enabled?('disable_header_and_footer') && !user.is_admin?(environment) %> | |
| 9 | +<% end %> | |
| 10 | + | |
| 11 | +</div> | ... | ... |
| ... | ... | @@ -0,0 +1,18 @@ |
| 1 | +<div id="control_panel_bar" class="menu_content controller-profile_editor"> | |
| 2 | + | |
| 3 | +<% control_panel do %> | |
| 4 | + <%= control_panel_button(_('Manage Content'), 'cms', :controller => 'cms') %> | |
| 5 | + | |
| 6 | + <% unless profile.enterprise? %> | |
| 7 | + <%= case profile.blogs.count | |
| 8 | + when 0 | |
| 9 | + control_panel_button(_('Create blog'), 'blog-disabled', :controller => 'cms', :action => 'new', :type => 'Blog') | |
| 10 | + when 1 | |
| 11 | + control_panel_button(_('Configure blog'), 'blog', :controller => 'cms', :action => 'edit', :id => profile.blog) | |
| 12 | + else | |
| 13 | + control_panel_button(_('Configure blog'), 'blog', :controller => 'cms') | |
| 14 | + end %> | |
| 15 | + <% end %> | |
| 16 | +<% end %> | |
| 17 | + | |
| 18 | +</div> | ... | ... |
navigation.html.erb
| ... | ... | @@ -4,6 +4,6 @@ |
| 4 | 4 | <li id="btn_content">Conteúdo</li> |
| 5 | 5 | <li id="btn_icon"><span> </span></li> |
| 6 | 6 | |
| 7 | -<div id="control_panel_bar" class="menu_content controller-profile_editor"> </div> | |
| 8 | -<div id="control_panel_bar" class="menu_aparence controller-profile_editor"> </div> | |
| 9 | -<div id="control_panel_bar" class="menu_settings controller-profile_editor"> </div> | |
| 7 | +<%= theme_include 'content_menu' %> | |
| 8 | +<%= theme_include 'appearance_menu' %> | |
| 9 | +<%= theme_include 'settings_menu' %> | ... | ... |
| ... | ... | @@ -0,0 +1,50 @@ |
| 1 | +<div id="control_panel_bar" class="menu_settings controller-profile_editor"> | |
| 2 | + | |
| 3 | +<% control_panel do %> | |
| 4 | + | |
| 5 | + <%= control_panel_button(profile.control_panel_settings_button[:title], | |
| 6 | + profile.control_panel_settings_button[:icon], | |
| 7 | + :controller => 'profile_editor', :action => 'edit') %> | |
| 8 | + | |
| 9 | + <%= control_panel_button(_('Location'), 'edit-location', :controller => 'maps', :action => 'edit_location') %> | |
| 10 | + | |
| 11 | + <%= control_panel_button(_('Mail settings'), 'mail', :controller => 'mailconf') if profile.person? && MailConf.enabled? %> | |
| 12 | + | |
| 13 | + <%= control_panel_button(_('Tasks'), 'todo', :controller => 'tasks', :action => 'index') %> | |
| 14 | + | |
| 15 | + <%= control_panel_button(_('Change Password'), 'change-password', :controller => 'account', :action => 'change_password') if profile.person? %> | |
| 16 | + | |
| 17 | + <%= control_panel_button(_('Manage friends'), 'friends', :controller => 'friends', :action => 'index') if profile.person? %> | |
| 18 | + | |
| 19 | + <%= control_panel_button(_('Manage Members'), 'members', :controller => 'profile_members') if profile.organization? && user.has_permission?(:manage_memberships, profile) %> | |
| 20 | + | |
| 21 | + <%= control_panel_button(_('Manage Products/Services'), 'products', :controller => 'manage_products') if profile.enterprise? && environment.enabled?('products_for_enterprises') %> | |
| 22 | + | |
| 23 | + <% if !environment.enabled?('disable_asset_enterprises') %> | |
| 24 | + <% if profile.is_validation_entity? %> | |
| 25 | + <%= control_panel_button(_('Enterprise Validation'), 'validation', :controller => 'enterprise_validation') %> | |
| 26 | + <% end %> | |
| 27 | + <% if profile.person? %> | |
| 28 | + <%= control_panel_button(_('Favorite Enterprises'), 'favorites', :controller => 'favorite_enterprises') %> | |
| 29 | + <% end %> | |
| 30 | + <% end %> | |
| 31 | + | |
| 32 | + <% if profile.enterprise? %> | |
| 33 | + <% if profile.enabled? %> | |
| 34 | + <%= control_panel_button(_('Disable'), 'disable', :action => 'disable') %> | |
| 35 | + <% else %> | |
| 36 | + <%= control_panel_button(_('Enable'), 'enable', :action => 'enable') %> | |
| 37 | + <% end %> | |
| 38 | + <% end %> | |
| 39 | + | |
| 40 | + <%= control_panel_button(_('Manage my groups'), 'groups', :controller => 'memberships') if profile.person? %> | |
| 41 | + | |
| 42 | + <%= control_panel_button(_('Manage SPAM'), 'manage-spam', :controller => 'spam', :action => 'index') %> | |
| 43 | + | |
| 44 | + <% @plugins.dispatch(:control_panel_buttons).each do |button| %> | |
| 45 | + <%= control_panel_button(button[:title], button[:icon], button[:url]) %> | |
| 46 | + <% end %> | |
| 47 | + | |
| 48 | +<% end %> | |
| 49 | + | |
| 50 | +</div> | ... | ... |