%= stylesheet_link_tag "admin" %> <%= javascript_include_tag "admin" %> <%= csrf_meta_tag %> <%= tr8n_scripts_tag %> <% admin_links = [ ["Site Users", "/admin/users", "users"], ["Site Admins", "/admin/admins", "admins"], ["Tr8n Administration", "/tr8n/admin/language", "language"], ] %>
Admin Options
<% admin_links.each do |admin| %>
<% kls = "admin_category_item"
ctrl_name = controller.controller_name
ctrl_name = 'language' if request.url.index('/tr8n/')
if admin[2] == ctrl_name
kls = "admin_category_item_selected"
end %>
<%=link_to(admin[0], admin[1]) %>
|
<%= yield %> |