<%=trl("Tr8n Administration Tools", "Tr8n administration tools label")%>
<% tr8n_admin_tabs.each do |tab| %>
<% classes = []
current = (tab["controller"] == controller.controller_name)
classes << "current" if current
if tr8n_admin_tabs.first == tab
classes << "first"
classes << "first_current" if current
elsif tr8n_admin_tabs.last == tab
classes << "last"
classes << "last_current" if current
end
%>
-
<%=link_to(trl(tab["title"], tab["description"]), "/tr8n/admin/#{tab["controller"]}")%>
<% end %>