<% @outgoing.each do |req| %> <% unless req.receiving_user.blank? %> <% else %> <% Rails.logger.error "A proxy request has no receiver: #{req.inspect}" %> <% end %> <% end %>
Title Date To Status Comments
<%= show_transfer_request_title(req) %> <% 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 %> <%= link_to req.receiving_user.name, sufia.profile_path(req.receiving_user) %> <% if req.pending? %> <%= button_to "Cancel", sufia.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 %> <%= req.sender_comment %>