From e087af60acfa6c409ee10c1b3b17d1fd5bffcfeb Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 9 Jul 2014 15:19:13 -0300 Subject: [PATCH] Fix content menu --- cabecalho.css | 5 +++++ content_menu.html.erb | 5 +++++ navigation.html.erb | 16 +++++++++------- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/cabecalho.css b/cabecalho.css index e28dd49..50ec9d8 100644 --- a/cabecalho.css +++ b/cabecalho.css @@ -1257,6 +1257,11 @@ float: right; margin-bottom: 0; border: 0; line-height: normal; + background-color: transparent; +} +#control_panel_bar .control-panel span { + background: none; + padding-left: 0; } #control_panel_bar .control-panel a:hover { } diff --git a/content_menu.html.erb b/content_menu.html.erb index 69a7b94..ffb8993 100644 --- a/content_menu.html.erb +++ b/content_menu.html.erb @@ -4,6 +4,11 @@
  • <%= link_to(_('Manage Content'), url_for(:controller => 'cms'), :class => 'control-panel-cms') %>
  • +
  • + <% article = @article || @page %> + <% parent_id = ((article && article.allow_children?) ? article : nil) %> + <%= colorbox_button('new', _('New content'), :controller => 'cms', :action => 'new', :parent_id => parent_id, :cms => true) %> +
  • diff --git a/navigation.html.erb b/navigation.html.erb index 6ceb29e..1f58624 100644 --- a/navigation.html.erb +++ b/navigation.html.erb @@ -1,9 +1,11 @@ -
  • Configurações
  • -
  • Aparência
  • -
  • Conteúdo
  • -
  •  
  • +<% if profile %> +
  • Configurações
  • +
  • Aparência
  • +
  • Conteúdo
  • +
  •  
  • -<%= theme_include 'content_menu' %> -<%= theme_include 'appearance_menu' %> -<%= theme_include 'settings_menu' %> + <%= theme_include 'content_menu' %> + <%= theme_include 'appearance_menu' %> + <%= theme_include 'settings_menu' %> +<% end %> -- libgit2 0.21.2