24 lines
1 KiB
Text
24 lines
1 KiB
Text
|
|
<% # expects @user to be set %>
|
||
|
|
<ul class="navigation actions" role="navigation">
|
||
|
|
<% if @user == current_user %>
|
||
|
|
<li><%= link_to t(".new_work"), new_work_path %></li>
|
||
|
|
<li><%= span_if_current t(".edit_multiple"), (path = show_multiple_user_works_path(@user)),
|
||
|
|
current_page?(path) && params[:work_ids].blank? %></li>
|
||
|
|
<button><%= link_to t("New Status!"), new_user_status_path(current_user) %></button> <% end %>
|
||
|
|
<% if current_user && @subscription %>
|
||
|
|
<li>
|
||
|
|
<%= render :partial => 'subscriptions/form', :locals => { :subscription => @subscription } %>
|
||
|
|
</li>
|
||
|
|
<% end %>
|
||
|
|
<% if @user == current_user || policy(User).can_manage_users? %>
|
||
|
|
<li><%= span_if_current t(".invitations"), user_invitations_path(@user) %></li>
|
||
|
|
<% end %>
|
||
|
|
<% if current_user && @user != current_user %>
|
||
|
|
<li><%= block_link(@user) %></li>
|
||
|
|
<li><%= mute_link(@user) %></li>
|
||
|
|
<% end %>
|
||
|
|
<% if policy(User).can_manage_users? %>
|
||
|
|
<li><%= link_to t(".admin_user"), admin_user_path(@user) %></li>
|
||
|
|
<% end %>
|
||
|
|
</ul>
|