Sha256: 712f13c7d57d3a8c670d702d3c582995e3e8c33852df2ce9ee52d87106fa64fb
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
- default_page_title ||= nil; on_site_link ||= nil - current_title = default_page_title || plural(model_class).capitalize - title current_title - state_method ||= :state - tabs = get_collection model_class .page-header .row .col-md-6 %h1 = current_title = link_to fa_icon(:plus), new_current_model_record_path, class: 'btn btn-primary' = render 'search', model_class: model_class %hr %ul.nav.nav-tabs - if params[:search] %li.nav-item = link_to search_tab_title(@records.total_count), '#', class: 'nav-link active' %li.nav-item = link_to t('helpers.actions.reset'), records_path(model: params[:model], filter: params[:filter]), class: 'nav-link' - else - tabs.each_with_index do |tab, index| %li.nav-item = link_to admin_index_path_of_model(model_class, tab, (params[:filter].present? ? params[:filter] : nil)&.permit!), class: "#{active_tab(tab, index)} nav-link" do != tab_title(model_class, tab, @counts[tab], state_method) %div{ id: (params[:search] ? :search : params[:scope]) } = render 'list'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tramway-admin-1.13.0.4 | app/views/tramway/admin/records/index.html.haml |
tramway-admin-1.13.0.3 | app/views/tramway/admin/records/index.html.haml |