]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/users/show.html.erb
Show user id on profile pages to moderators and admins
[rails.git] / app / views / users / show.html.erb
index 6335b06d9895371bb4479105f5447495528c3992..81fda926b7a081b333add6d07f6d3aaa87989668 100644 (file)
                 <% 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>