Sha256: b41c003851b89d1e27a7d3fbc4c09449d99aba6924151f5d2e20aa9266b1b038

Contents?: true

Size: 1.86 KB

Versions: 14

Compression:

Stored size: 1.86 KB

Contents

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

<% content_for :page_title do %>
  <%= Spree.t(:analytics_trackers) %>
<% 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.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">
            <% 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">
    <%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/tracker')) %>
    <% if can?(:create, Spree::Tracker) %>
      <%= link_to Spree.t(:add_one), new_object_url %>!
    <% end %>
  </div>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
solidus_backend-1.0.7 app/views/spree/admin/trackers/index.html.erb
solidus_backend-1.0.6 app/views/spree/admin/trackers/index.html.erb
solidus_backend-1.0.5 app/views/spree/admin/trackers/index.html.erb
solidus_backend-1.0.4 app/views/spree/admin/trackers/index.html.erb
solidus_backend-1.0.3 app/views/spree/admin/trackers/index.html.erb
solidus_backend-1.1.0.pre1 app/views/spree/admin/trackers/index.html.erb
solidus_backend-1.1.0.beta1 app/views/spree/admin/trackers/index.html.erb
solidus_backend-1.0.2 app/views/spree/admin/trackers/index.html.erb
solidus_backend-1.0.1 app/views/spree/admin/trackers/index.html.erb
solidus_backend-1.0.0 app/views/spree/admin/trackers/index.html.erb
solidus_backend-1.0.0.rc2 app/views/spree/admin/trackers/index.html.erb
solidus_backend-1.0.0.rc1 app/views/spree/admin/trackers/index.html.erb
solidus_backend-1.0.0.pre3 app/views/spree/admin/trackers/index.html.erb
solidus_backend-1.0.0.pre2 app/views/spree/admin/trackers/index.html.erb