Sha256: d23e3f073c2726c1e0e20ccb12ff16c8edd2c47ba666e06ed83ac9668bf2592b

Contents?: true

Size: 1.66 KB

Versions: 10

Compression:

Stored size: 1.66 KB

Contents

<%= render partial: 'spree/admin/shared/order_tabs', locals: { current: :state_changes } %>

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

<% if @state_changes.any? %>
  <table class="table" id="listing_order_state_changes" data-hook>
    <thead>
      <tr data-hook="admin_orders_state_changes_headers">
        <th><%= Spree::StateChange.human_attribute_name(:type) %></th>
        <th><%= Spree::StateChange.human_attribute_name(:state_from) %></th>
        <th><%= Spree::StateChange.human_attribute_name(:state_to) %></th>
        <th><%= Spree::StateChange.human_attribute_name(:user) %></th>
        <th><%= Spree::StateChange.human_attribute_name(:timestamp) %></th>
      </tr>
    </thead>

    <tbody>
      <% @state_changes.each do |state_change| %>
        <tr>
          <td><%= Spree.t("state_machine_states.#{state_change.name}") %></td>
          <td><%= state_change.previous_state ? Spree.t(state_change.previous_state) : Spree.t(:previous_state_missing) %></td>
          <td><%= Spree.t(state_change.next_state) %></td>
          <td>
            <%= link_to state_change.user.login, spree.admin_user_path(state_change.user) if state_change.user %>
          </td>
          <td>
            <%= l(state_change.created_at) %>
            <% if state_change.created_at != state_change.updated_at %>
              <small><%= Spree::StateChange.human_attribute_name(:updated)%>: <%= l(state_change.updated_at) %></small>
            <% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <div class="alert alert-info no-objects-found">
    <%= Spree.t(:no_state_changes) %>
  </div>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spree_backend-3.0.10 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.0.9 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.0.8 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.0.7 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.0.6.1 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.0.6 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.0.5 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.0.4 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.0.3 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.0.2 app/views/spree/admin/state_changes/index.html.erb