Sha256: 4cfd898361e6acfabbb37358fa61e461501da79dadf08d8e3e412b364f6c4edb
Contents?: true
Size: 1 KB
Versions: 13
Compression:
Stored size: 1 KB
Contents
<% quick_search_tab_active = params[:action] == 'quick_search' ? 'active' : '' advance_search_tab_active = params[:action] == 'advance_search' ? '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="<%=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>
Version data entries
13 entries across 13 versions & 1 rubygems