<% end -%>
</dd>
<% end -%>
+ <% if current_user&.moderator? || current_user&.administrator? %>
+ <dt class="list-inline-item m-0"><%= t ".uid" %></dt>
+ <dd class="list-inline-item"><%= link_to @user.id, api_user_path(:id => @user.id) %></dd>
+ <% end -%>
</dl>
</small>
</div>
remove as friend: Unfriend
add as friend: Add Friend
mapper since: "Mapper since:"
+ uid: "User id:"
ct status: "Contributor terms:"
ct undecided: Undecided
ct declined: Declined
assert_select "a[href='/user/#{ERB::Util.u(user.display_name)}/blocks']", 0
assert_select "a[href='/user/#{ERB::Util.u(user.display_name)}/blocks_by']", 0
assert_select "a[href='/blocks/new/#{ERB::Util.u(user.display_name)}']", 0
+ assert_select "a[href='/api/0.6/user/#{ERB::Util.u(user.id)}']", 0
end
# Login as a moderator
assert_select "a[href='/user/#{ERB::Util.u(user.display_name)}/blocks']", 0
assert_select "a[href='/user/#{ERB::Util.u(user.display_name)}/blocks_by']", 0
assert_select "a[href='/blocks/new/#{ERB::Util.u(user.display_name)}']", 1
+ assert_select "a[href='/api/0.6/user/#{ERB::Util.u(user.id)}']", 1
end
end