<% if @user && @user == current_user && params[:refused] %>
<%= ts("Refused Gifts for %{recipient}", recipient: @user ? @user.login : h(@recipient_name)) %>
<% else %>
<%= ts("Gifts for %{recipient}", recipient: @user ? @user.login : h(@recipient_name)) %>
<% end %>
<%= @collection ? ts("in %{collection}", collection: h(@collection.title)) : "" %>
<% if @user && @user == current_user %>
<%= ts("Navigation") %>
-
<%= span_if_current ts("Accepted Gifts"), user_gifts_path(@user), !(params[:refused]) %>
-
<%= span_if_current ts("Refused Gifts"), user_gifts_path(@user, refused: true) %>
<% elsif !@user %>
<%= render 'gifts/gift_search' %>
<% end %>
<% if @works.respond_to?(:total_pages) %>
<%= will_paginate @works %>
<% end %>
<%= ts("List of Gifts") %>
<% for work in @works %>
<%= render 'gifts/gift_blurb', work: work, gift: work %>
<% end %>
<% if @works.respond_to?(:total_pages) %>
<%= will_paginate @works %>
<% end %>