Sha256: 8220185ab292504ace576adc583f65c22892b8771fbb045f76e6c5a84b611a80

Contents?: true

Size: 1.61 KB

Versions: 24

Compression:

Stored size: 1.61 KB

Contents

<%= render 'spree/admin/shared/configuration_menu' %>

<% content_for :page_title do %>
  <%= Spree.t(:analytics_trackers) %>
<% end %>

<% content_for :page_actions do %>
  <li>
    <%= button_link_to Spree.t(:new_tracker), new_object_url, :icon => 'icon-plus', :id => 'admin_new_tracker_link' %>
  </li>
<% 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.t(:google_analytics_id) %></th>
        <th><%= Spree.t(:environment) %></th>
        <th><%= 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" class="<%= cycle('odd', 'even')%>">
          <td class="align-center"><%= tracker.analytics_id %></td>
          <td class="align-center"><%= tracker.environment.to_s.titleize %></td>
          <td class="align-center"><%= tracker.active ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
          <td class="actions">
            <%= link_to_edit tracker, :no_text => true %>
            <%= link_to_delete tracker, :no_text => true %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <div class="no-objects-found">
    <%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/tracker')) %>,
    <%= link_to Spree.t(:add_one), new_object_url %>!
  </div>
<% end %>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
spree_backend-2.1.12 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.1.11 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.1.10 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.0.13 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.1.9 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.1.8 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.0.12 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.1.7 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.0.11 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.0.10 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.2.1 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.1.6 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.2.0 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.1.5 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.0.9 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.1.4 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.0.8 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.1.3 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.0.7 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.1.2 app/views/spree/admin/trackers/index.html.erb