Sha256: ec19781f7c0bf43c0a2a04d9b54c02c0ec68e5331154f0a6aecbf3dc796c1c2f

Contents?: true

Size: 1.7 KB

Versions: 6

Compression:

Stored size: 1.7 KB

Contents

<% content_for :page_title do %>
  <%= Spree.t('admin.data_feeds.data_feeds') %>
<% end %>

<% content_for :page_actions do %>
  <%= button_link_to Spree.t('admin.data_feeds.new_data_feed'), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_data_feed_link' %>
<% end if can?(:create, Spree::DataFeed) %>

<% if @data_feeds.present? %>
  <div class="table-responsive border rounded bg-white">
    <table class="table">
      <thead class="text-muted">
      <tr>
        <th><%= Spree.t('admin.name') %></th>
        <th><%= Spree.t('admin.url') %></th>
        <th><%= Spree.t('admin.data_feeds.type') %></th>
        <th><%= Spree.t('admin.active') %></th>
        <th></th>
      </tr>
      </thead>
      <tbody>
      <% @data_feeds.each do |data_feed| %>
        <tr id="<%= spree_dom_id data_feed %>">
          <td><%= data_feed.name %></td>
          <td><code><%= data_feed.formatted_url %></code></td>
          <td><%= data_feed.class.label %></td>
          <td><%= active_badge(data_feed.active) %></td>
          <td class="actions">
          <span class="d-flex justify-content-end">
            <%= link_to_edit(data_feed, no_text: true) if can? :edit, data_feed %>
            <%= link_to_delete(data_feed, no_text: true) if can? :delete, data_feed %>
          </span>
          </td>
        </tr>
      <% end %>
      </tbody>
    </table>
  </div>
  <%= render 'spree/admin/shared/index_table_options', collection: @data_feeds, simple: true %>
<% else %>
  <div class="text-center no-objects-found m-5">
    <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::DataFeed)) %>,
    <%= link_to(Spree.t(:add_one), new_object_url) if can? :create, Spree::DataFeed %>!
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_backend-4.7.2 app/views/spree/admin/data_feeds/index.html.erb
spree_backend-4.6.2 app/views/spree/admin/data_feeds/index.html.erb
spree_backend-4.7.1 app/views/spree/admin/data_feeds/index.html.erb
spree_backend-4.7.0 app/views/spree/admin/data_feeds/index.html.erb
spree_backend-4.6.1 app/views/spree/admin/data_feeds/index.html.erb
spree_backend-4.6.0 app/views/spree/admin/data_feeds/index.html.erb