Sha256: 89416521e7af9fdb8f571a5f37e0f086fc5c198bcd150a05fd95cf5e0cb0288b

Contents?: true

Size: 1.45 KB

Versions: 6

Compression:

Stored size: 1.45 KB

Contents

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

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

<% content_for :page_actions do %>
  <li>
    <%= button_link_to t(:new_tracker), new_object_url, :icon => 'icon-plus', :id => 'admin_new_tracker_link' %>
  </li>
<% end %>

<% unless @trackers.any? %>
  <div class="no-objects-found">
    <%= t(:no_trackers_found)%>,
    <%= link_to t(:add_one), new_object_url %>!
  </div>
<% else %>
  <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><%= t(:google_analytics_id) %></th>
        <th><%= t(:environment) %></th>
        <th><%= 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><%= tracker.analytics_id %></td>
          <td><%= tracker.environment.to_s.titleize %></td>
          <td class="align-center"><%= tracker.active ? t(:yes) : t(:no) %></td>
          <td class="actions">
            <%= link_to_edit tracker, :no_text => true %>
            <%= link_to_delete tracker, :no_text => true %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% end%>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
spree_core-1.3.2 app/views/spree/admin/trackers/index.html.erb
spree_core-1.3.1 app/views/spree/admin/trackers/index.html.erb
spree_core-1.3.0 app/views/spree/admin/trackers/index.html.erb
spree_core-1.3.0.rc2 app/views/spree/admin/trackers/index.html.erb
dup_spree_core-1.3.0.rc1 app/views/spree/admin/trackers/index.html.erb
spree_core-1.3.0.rc1 app/views/spree/admin/trackers/index.html.erb