Sha256: f9cae8fd5831d773b50b3f879a689af4e41bc53e0b0cd6085c139d4281eac38d

Contents?: true

Size: 1.03 KB

Versions: 131

Compression:

Stored size: 1.03 KB

Contents

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

<% content_for :page_title do %>
  <%= plural_resource_name(Spree::Store) %>
<% end %>

<% content_for :page_actions do %>
  <% if can?(:create, Spree::Store) %>
    <li>
      <%= link_to t('spree.new_store'), new_admin_store_url, class: 'button' %>
    </li>
  <% end %>
<% end %>

<table class="index">
  <thead>
    <tr>
      <th><%= Spree::Store.human_attribute_name(:name) %></th>
      <th><%= Spree::Store.human_attribute_name(:url) %></th>
      <th class="actions"></th>
    </tr>
  </thead>
  <tbody>
    <% @stores.each do |store| %>
      <tr>
        <td>
          <%= store.name %>
          <% if store.default? %>
            <span class="label label-default"><%= Spree::Store.human_attribute_name(:default) %></span>
          <% end %>
        </td>
        <td><%= store.url %></td>
        <td class="actions">
          <% if can?(:edit, store) %>
            <%= link_to_edit store, no_text: true %>
          <% end %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

131 entries across 131 versions & 2 rubygems

Version Path
solidus_backend-4.4.1 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.4.0 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.3.4 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.2.4 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.1.5 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.3.3 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.3.2 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.1.4 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.3.1 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.3.0 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.2.3 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.1.3 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.0.4 app/views/spree/admin/stores/index.html.erb
solidus_backend-3.4.6 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.0.3 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.1.2 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.2.2 app/views/spree/admin/stores/index.html.erb
solidus_backend-3.4.5 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.2.1 app/views/spree/admin/stores/index.html.erb
solidus_backend-4.2.0 app/views/spree/admin/stores/index.html.erb