Sha256: 72d2551ed2431207fd868b43540e5cfdb5e26faad301bd6229372aa87dd19831
Contents?: true
Size: 1.72 KB
Versions: 6
Compression:
Stored size: 1.72 KB
Contents
<%= render 'spree/admin/shared/general_tabs' %> <% content_for :page_title do %> <%= Spree::Tracker.model_name.human(count: :other) %> <% end %> <% content_for :page_actions do %> <% if can?(:create, Spree::Tracker) %> <li> <%= button_link_to Spree.t(:new_tracker), new_object_url, :icon => 'plus', :id => 'admin_new_tracker_link' %> </li> <% end %> <% end %> <% if @trackers.any? %> <table class="index"> <colgroup> <col style="width: 30%"> <col style="width: 40%"> <col style="width: 15%"> <col style="width: 15%"> </colgroup> <thead> <tr data-hook="admin_trackers_index_headers"> <th><%= Spree::Tracker.human_attribute_name(:analytics_id) %></th> <th><%= Spree::Tracker.human_attribute_name(:active) %></th> <th class="actions"></th> </tr> </thead> <tbody> <% @trackers.each do |tracker|%> <tr id="<%= spree_dom_id tracker %>" data-hook="admin_trackers_index_rows" class="<%= cycle('odd', 'even')%>"> <td class="align-center"><%= tracker.analytics_id %></td> <td class="align-center"><%= tracker.active ? Spree.t(:say_yes) : Spree.t(:say_no) %></td> <td class="actions"> <% if can?(:update, tracker) %> <%= link_to_edit tracker, :no_text => true %> <% end %> <% if can?(:destroy, tracker) %> <%= link_to_delete tracker, :no_text => true %> <% end %> </td> </tr> <% end %> </tbody> </table> <% else %> <div class="no-objects-found"> <%= render 'spree/admin/shared/no_objects_found', resource: Spree::Tracker, new_resource_url: new_object_url %> </div> <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems