Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (26 sloc) 1.262 kB
<%
quick_search_tab_active = params[:action] == 'quick_search' ? 'active' : ''
advance_search_tab_active = params[:action] == 'advance_search' ? 'active' : ''
analytics_tab_active = params[:controller] == 'admin_data/analytics' ? 'active' : ''
table_structure_tab_active = params[:controller] == 'admin_data/table_structure' ? 'active' : ''
add_new_record_tab_active = %w(new create).include?(params[:action]) ? 'active' : ''
%>
<ul>
<li class="first <%=quick_search_tab_active%>">
<%= link_to 'Quick Search', admin_data_search_path(:klass => klass.name.underscore) %>
</li>
<li class="<%=advance_search_tab_active%>">
<%= link_to 'Advance Search', admin_data_advance_search_path(:klass => klass.name.underscore) %>
</li>
<li class="<%=analytics_tab_active%>">
<%= link_to 'Analytics', admin_data_daily_analytics_path(:klass => klass.name.underscore) %>
</li>
<li class="<%=table_structure_tab_active%>">
<%= link_to 'Table Structure', admin_data_table_structure_path(:klass => klass.name.underscore) %>
</li>
<% if is_allowed_to_update? %>
<li class="<%=add_new_record_tab_active%>">
<%= link_to '+Add New Record', admin_data_new_path(:klass => klass.name.underscore) %>
</li>
<% end %>
</ul>
Jump to Line
Something went wrong with that request. Please try again.