% # expects @user to be set %>
<% if @user == current_user %>
- <%= link_to t(".new_work"), new_work_path %>
- <%= span_if_current t(".edit_multiple"), (path = show_multiple_user_works_path(@user)),
current_page?(path) && params[:work_ids].blank? %>
<% end %>
<% if current_user && @subscription %>
-
<%= render :partial => 'subscriptions/form', :locals => { :subscription => @subscription } %>
<% end %>
<% if @user == current_user || policy(User).can_manage_users? %>
- <%= span_if_current t(".invitations"), user_invitations_path(@user) %>
<% end %>
<% if current_user && @user != current_user %>
- <%= block_link(@user) %>
- <%= mute_link(@user) %>
<% end %>
<% if policy(User).can_manage_users? %>
- <%= link_to t(".admin_user"), admin_user_path(@user) %>
<% end %>