Sha256: 2cdbcdaa52df22ac8e0fe9e82ec7776237c59faea02787e4f8ebfcd5c8c84533

Contents?: true

Size: 1.68 KB

Versions: 21

Compression:

Stored size: 1.68 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>
            <%= pretty_time(state_change.created_at) %>
            <% if state_change.created_at != state_change.updated_at %>
              <small><%= Spree::StateChange.human_attribute_name(:updated) %>: <%= pretty_time(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

21 entries across 21 versions & 1 rubygems

Version Path
spree_backend-3.1.14 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.13 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.12 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.11 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.10 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.9 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.8 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.7 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.6 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.5 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.4 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.2.0.rc2 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.2.0.rc1 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.3 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.2 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.1 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.0 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.0.rc4 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.0.rc3 app/views/spree/admin/state_changes/index.html.erb
spree_backend-3.1.0.rc2 app/views/spree/admin/state_changes/index.html.erb