Skip to content

Commit

Permalink
refactors admin layout
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoorai2000 committed Aug 14, 2015
1 parent 577f08e commit 101477c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions app/helpers/admin_helper.rb
@@ -1,7 +1,13 @@
module AdminHelper

def namespace
controller.class.parent.name.downcase
def side_menu
render "/#{namespace}/menu"
end

private

def namespace
controller.class.parent.name.downcase
end

end
File renamed without changes.
2 changes: 1 addition & 1 deletion app/views/layouts/admin.html.erb
Expand Up @@ -24,7 +24,7 @@
<% end %>

<div class="left" style="padding:50px;">
<%= render "/#{namespace}/shared/menu" %>
<%= side_menu %>
</div>

<%= yield %>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion config/locales/es.yml
Expand Up @@ -12,7 +12,7 @@ es:
see_all_debates: Ver todos los debates
my_account_link: Mi cuenta
language: Idioma de la página
administration: Admininstar
administration: Administar
moderation: Moderar
footer:
copyright: "Ayuntamiento de Madrid, %{year}. Todos los derechos reservados"
Expand Down

0 comments on commit 101477c

Please sign in to comment.