<%= stylesheet_link_tag "admin" %> <%= javascript_include_tag "application" %> <%= csrf_meta_tag %> <%= tr8n_scripts_tag %> <% admin_links = [ ["Users", "/admin/users", "users"], ["Admins", "/admin/admins", "admins"], ["Bookmarks", "/admin/bookmarks", "bookmarks"], ["Tr8n", "/tr8n/admin/language", "language"], ["Platform", "/platform/admin/apps", "apps"], ] %>
<%=render :partial => "/layouts/header" %>
Admin Options
<% admin_links.each do |admin| %> <% kls = "admin_category_item" ctrl_name = controller.controller_name ctrl_name = 'language' if request.url.index('/tr8n/') ctrl_name = 'apps' if request.url.index('/platform/') if admin[2] == ctrl_name kls = "admin_category_item_selected" end %>
<%=link_to(admin[0], admin[1]) %>
<% end %>
<%= yield %>
<%=render :partial =>"/layouts/footer" %>