Sha256: 9e67b426a084d1ecf4ba9b31ce2a15398e2fad6aae18cd200bf46652b963ce88

Contents?: true

Size: 1.61 KB

Versions: 42

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 => '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

42 entries across 42 versions & 2 rubygems

Version Path
spree_backend-2.4.10 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.3.13 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.2.14 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.4.9 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.3.12 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.2.13 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.4.8 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.3.11 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.2.12 app/views/spree/admin/trackers/index.html.erb
solidus_backend-1.0.0.pre app/views/spree/admin/trackers/index.html.erb
spree_backend-2.4.7 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.3.10 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.4.6 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.3.9 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.2.11 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.2.10 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.3.8 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.4.5 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.4.4 app/views/spree/admin/trackers/index.html.erb
spree_backend-2.3.7 app/views/spree/admin/trackers/index.html.erb