Commit e087af60acfa6c409ee10c1b3b17d1fd5bffcfeb
1 parent
ee1342d2
Exists in
master
and in
3 other branches
Fix content menu
Showing
3 changed files
with
19 additions
and
7 deletions
Show diff stats
cabecalho.css
... | ... | @@ -1257,6 +1257,11 @@ float: right; |
1257 | 1257 | margin-bottom: 0; |
1258 | 1258 | border: 0; |
1259 | 1259 | line-height: normal; |
1260 | + background-color: transparent; | |
1261 | +} | |
1262 | +#control_panel_bar .control-panel span { | |
1263 | + background: none; | |
1264 | + padding-left: 0; | |
1260 | 1265 | } |
1261 | 1266 | #control_panel_bar .control-panel a:hover { |
1262 | 1267 | } | ... | ... |
content_menu.html.erb
... | ... | @@ -4,6 +4,11 @@ |
4 | 4 | <li> |
5 | 5 | <%= link_to(_('Manage Content'), url_for(:controller => 'cms'), :class => 'control-panel-cms') %> |
6 | 6 | </li> |
7 | + <li> | |
8 | + <% article = @article || @page %> | |
9 | + <% parent_id = ((article && article.allow_children?) ? article : nil) %> | |
10 | + <%= colorbox_button('new', _('New content'), :controller => 'cms', :action => 'new', :parent_id => parent_id, :cms => true) %> | |
11 | + </li> | |
7 | 12 | </ul> |
8 | 13 | |
9 | 14 | </div> | ... | ... |
navigation.html.erb
1 | 1 | <!-- *************** Painel de controle da comunidade ************** --> |
2 | -<li id="btn_settings">Configurações</li> | |
3 | -<li id="btn_aparence">Aparência</li> | |
4 | -<li id="btn_content">Conteúdo</li> | |
5 | -<li id="btn_icon"><span> </span></li> | |
2 | +<% if profile %> | |
3 | + <li id="btn_settings">Configurações</li> | |
4 | + <li id="btn_aparence">Aparência</li> | |
5 | + <li id="btn_content">Conteúdo</li> | |
6 | + <li id="btn_icon"><span> </span></li> | |
6 | 7 | |
7 | -<%= theme_include 'content_menu' %> | |
8 | -<%= theme_include 'appearance_menu' %> | |
9 | -<%= theme_include 'settings_menu' %> | |
8 | + <%= theme_include 'content_menu' %> | |
9 | + <%= theme_include 'appearance_menu' %> | |
10 | + <%= theme_include 'settings_menu' %> | |
11 | +<% end %> | ... | ... |