Sha256: 4d9f006c4f241f1e5e676715b0d1222f907e4aefbd194c678a4610f08980e5b0

Contents?: true

Size: 1.26 KB

Versions: 10

Compression:

Stored size: 1.26 KB

Contents

<table class="table table-striped" id="outgoing-transfers">
  <thead>
    <tr>
      <th>Title</th>
      <th>Date</th>
      <th>To</th>
      <th>Status</th>
      <th>Comments</th>
    </tr>
  </thead>
  <tbody>
    <% @outgoing.each do |req| %>
      <% unless req.receiving_user.blank? %>
        <tr>
          <td> <%= show_transfer_request_title(req) %> </td>
          <td class="sorts-dash">
            <% if req.created_at > Time.current.beginning_of_day %>
              <%= "#{time_ago_in_words(req.created_at)} ago"%>
            <% else %>
              <%= req.created_at.strftime("%b %d %Y") %>
            <% end %>
          </td>

          <td><%= link_to req.receiving_user.name, hyrax.profile_path(req.receiving_user)  %></td>

          <td>
            <% if req.pending? %>
              <%= button_to "Cancel", hyrax.transfer_path(req), method: :delete, class:'btn btn-danger', data: {confirm: "Are you sure you want to cancel this request?"} %>
            <% else %>
              <%= req.status.capitalize %>
            <% end %>
          </td>

          <td><%= req.sender_comment %></td>
        </tr>
      <% else %>
          <% Rails.logger.error "A proxy request has no receiver: #{req.inspect}" %>
      <% end %>
    <% end %>
  </tbody>
</table>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/views/hyrax/transfers/_sent.html.erb
hyrax-1.1.0 app/views/hyrax/transfers/_sent.html.erb
hyrax-1.0.5 app/views/hyrax/transfers/_sent.html.erb
hyrax-1.0.4 app/views/hyrax/transfers/_sent.html.erb
hyrax-1.0.3 app/views/hyrax/transfers/_sent.html.erb
hyrax-1.0.2 app/views/hyrax/transfers/_sent.html.erb
hyrax-1.0.1 app/views/hyrax/transfers/_sent.html.erb
hyrax-1.0.0.rc2 app/views/hyrax/transfers/_sent.html.erb
hyrax-1.0.0.rc1 app/views/hyrax/transfers/_sent.html.erb
test_hyrax-0.0.1.alpha app/views/hyrax/transfers/_sent.html.erb