Sha256: 62d6b04384089646c6ad97a719cc37c360dea7850fc5763927a6a3dc1cf5039e
Contents?: true
Size: 1.54 KB
Versions: 3
Compression:
Stored size: 1.54 KB
Contents
<% content_for :page_title do %> <%= Spree.t(:analytics_trackers) %> <% end %> <% content_for :page_actions do %> <%= button_link_to Spree.t(:new_tracker), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_tracker_link' %> <% end if can? :create, Spree::Tracker %> <% if @trackers.any? %> <table class="table"> <thead> <tr data-hook="admin_trackers_index_headers"> <th><%= Spree.t(:google_analytics_id) %></th> <th><%= Spree.t(:analytics_engine) %></th> <th><%= Spree.t(:store) %></th> <th class="text-center"><%= Spree.t(: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"> <td><%= tracker.analytics_id %></td> <td><%= tracker.engine.humanize %></td> <td><%= tracker.store&.name %></td> <td class="text-center"> <%= tracker.active ? Spree.t(:say_yes) : Spree.t(:say_no) %> </td> <td class="actions text-right"> <%= link_to_edit(tracker, no_text: true) if can? :edit, tracker %> <%= link_to_delete(tracker, no_text: true) if can? :delete, tracker %> </td> </tr> <% end %> </tbody> </table> <% else %> <div class="alert alert-info"> <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::Tracker)) %>, <%= link_to(Spree.t(:add_one), new_object_url) if can? :create, Spree::Tracker %>! </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems