Sha256: 0aff6a57f83e0cb27e2c61377ff5ade18808542b24d02f73beab54411310b9bd

Contents?: true

Size: 925 Bytes

Versions: 6

Compression:

Stored size: 925 Bytes

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>Name</th>
      <th>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">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

6 entries across 6 versions & 1 rubygems

Version Path
solidus_backend-2.5.2 app/views/spree/admin/stores/index.html.erb
solidus_backend-2.5.1 app/views/spree/admin/stores/index.html.erb
solidus_backend-2.5.0 app/views/spree/admin/stores/index.html.erb
solidus_backend-2.5.0.rc1 app/views/spree/admin/stores/index.html.erb
solidus_backend-2.5.0.beta2 app/views/spree/admin/stores/index.html.erb
solidus_backend-2.5.0.beta1 app/views/spree/admin/stores/index.html.erb