<% @incoming.each do |req| %> <% unless req.sending_user.blank? %> <% else %> <% Rails.logger.error "A proxy request has no sender: #{req.inspect}" %> <% end %> <% end %>
Title Date From Status Comments
<%= show_transfer_request_title(req) %> <% if req.created_at > Time.now.beginning_of_day %> <%= "#{time_ago_in_words(req.created_at)} ago"%> <% else %> <%= req.created_at.strftime("%b %d %Y") %> <% end %> <%= link_to req.sending_user.name, sufia.profile_path(req.sending_user) %> <% if req.pending? %>
<%#= button_to "Accept and allow depositor to retain edit access", sufia.accept_transfer_path(req), method: :put, class: 'btn btn-primary' %> <%#= button_to "Accept and reset access", sufia.accept_transfer_path(req, reset: true), method: :put, class: 'btn btn-primary' %> <%#= button_to "Accept & Authorize Proxy", sufia.accept_transfer_path(req, sticky: true), method: :put, class: 'btn btn-primary' %> <%= button_to "Reject", sufia.reject_transfer_path(req), method: :put, class: 'btn btn-danger', data: {confirm: "Are you sure you want to reject this request?"} %> <% else %> <%= req.status.capitalize %> <% end %>
<%= req.sender_comment %>