Sha256: c003e015cfbf842fa20cfec3b7400555ccf809d6081df5adc76247783dab86cb

Contents?: true

Size: 1.59 KB

Versions: 19

Compression:

Stored size: 1.59 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">
    <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.t(:google_analytics_id) %></th>
        <th><%= Spree.t(:analytics_engine) %></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 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-warning">
    <%= 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

19 entries across 19 versions & 2 rubygems

Version Path
spree_backend-3.4.6 app/views/spree/admin/trackers/index.html.erb
spree_analytics_trackers-1.0.1 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.3.6 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.4.5 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.3.5 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.4.4 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.4.3 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.3.4 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.4.2 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.3.3 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.4.1 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.4.0 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.4.0.rc2 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.4.0.rc1 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.3.2 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.3.1 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.3.0 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.3.0.rc4 app/views/spree/admin/trackers/index.html.erb
spree_backend-3.3.0.rc3 app/views/spree/admin/trackers/index.html.erb