| User ID |
<%= user.id %> |
| Join Date |
<%= presenter.join_date %> |
<% if policy(User).can_see_last_logged_in_at? %>
| Last Seen |
<%= time_ago_in_words_tagged(user.last_logged_in_at) %> |
<% end %>
<% if policy(IpAddress).show? %>
| Last IP |
<% if user.last_ip_addr.present? %>
<%= link_to user.last_ip_addr, ip_addresses_path(search: { ip_addr: user.last_ip_addr }) %>
(<%= link_to "info", ip_address_path(user.last_ip_addr) %>,
<%= link_to "users", ip_addresses_path(search: { ip_addr: user.last_ip_addr, group_by: "user" }) %>,
<%= link_to "IPs", ip_addresses_path(search: { user_id: user.id, group_by: "ip_addr" }) %>)
<% else %>
unknown
(<%= link_to "IPs", ip_addresses_path(search: { user_id: user.id, group_by: "ip_addr" }) %>)
<% end %>
|
<% end %>
<% if policy(UserEvent).show? %>
| User Events |
<%= link_to "By Name", user_events_path(search: { user_name: user.name }) %>,
<%= link_to "By IP", user_events_path(search: { user_session: { ip_addr: user.last_ip_addr }}) %>
|
|
<% end %>
<% if policy(user.email_address).show? %>
| Email Address |
<% if user.email_address.present? %>
<%= user.email_address.address %>
<% if user == CurrentUser.user %>
(<%= link_to "edit", edit_user_email_path(user) %>)
<% end %>
<% if user.email_address.is_verified? %>
<%= checkmark_icon(class: "user-verified-email-icon", title: "Verified email") %>
<% elsif user == CurrentUser.user %>
<%= link_to verify_user_email_path(user) do %>
<%= exclamation_icon(class: "user-unverified-email-icon", title: "Unverified email. Click here to verify your email.") %>
<% end %>
<% else %>
<%= exclamation_icon(class: "user-unverified-email-icon", title: "Unverified email") %>
<% end %>
<% else %>
none
<% end %>
|
<% end %>
<% if user.inviter %>
| Promoter |
<%= link_to_user user.inviter %> <%= link_to "ยป", users_path(search: { inviter: { name: user.inviter.name }}) %> |
<% end %>
| Level |
<%= user.level_string %>
<% if !user.is_gold? %>
<% if CurrentUser.user == user %>
(<%= link_to "Upgrade account", new_user_upgrade_path %>)
<% else %>
(<%= link_to "Gift upgrade", new_user_upgrade_path(user_id: user.id) %>)
<% end %>
<% end %>
|
| Permissions |
<%= presenter.permissions %> |
<% if user.is_banned? && user.active_ban.present? %>
| Ban reason |
<%= format_text user.active_ban.reason, inline: true %>
(banned <%= humanized_duration(user.active_ban.duration) %>)
|
<% end %>
| Upload Limit |
<%= render "users/upload_limit", user: user %>
|
| Uploads |
<%= presenter.upload_count(self) %>
<% if presenter.has_uploads? %>
(<%= link_to "tag changes report", post_versions_path(search: { updater_name: user.name, version: 1 }, type: "current") %>)
<% end %>
<% if CurrentUser.is_moderator? %>
[<%= link_to "sample", posts_path(:tags => "user:#{user.name} order:random limit:#{PostSets::Post::MAX_PER_PAGE}") %>]
<% end %>
|
| Deleted Uploads |
<%= presenter.deleted_upload_count(self) %>
<% if CurrentUser.is_moderator? %>
[<%= link_to "sample", posts_path(:tags => "user:#{user.name} order:random limit:#{PostSets::Post::MAX_PER_PAGE} status:deleted") %>]
<% end %>
|
| Favorites |
<%= presenter.favorite_count(self) %>
<% if CurrentUser.is_moderator? %>
[<%= link_to "sample", posts_path(:tags => "fav:#{user.name} order:random limit:#{PostSets::Post::MAX_PER_PAGE}") %>]
<% end %>
|
<% if CurrentUser.user == user || CurrentUser.user.is_admin? %>
| Votes |
<%= link_to user.post_votes.active.count, post_votes_path(search: { user_name: user.name }) %> posts,
<%= link_to user.comment_votes.active.count, comment_votes_path(search: { user_name: user.name }) %> comments,
<%= link_to user.forum_post_votes.count, forum_post_votes_path(search: { creator_name: user.name }) %> forum posts
|
<% end %>
| Favorite Groups |
<%= presenter.favorite_group_count(self) %> |
| Post Changes |
<%= presenter.post_version_count(self) %>
<% if CurrentUser.id == user.id %>
(<%= link_to "refresh", new_maintenance_user_count_fixes_path %>)
<% end %>
|
| Note Changes |
<%= presenter.note_version_count(self) %> in <%= presenter.noted_posts_count(self) %> posts
(<%= link_to "note changes report", note_versions_path(search: { updater_id: user.id, version: 1 }, type: "current") %>)
|
| Wiki Page Changes |
<%= presenter.wiki_page_version_count(self) %> |
| Artist Changes |
<%= presenter.artist_version_count(self) %> |
| Commentary Changes |
<%= presenter.artist_commentary_version_count(self) %> |
<% if PoolVersion.enabled? %>
| Pool Changes |
<%= presenter.pool_version_count(self) %> |
<% end %>
<% if Danbooru.config.forum_enabled?.to_s.truthy? %>
| Forum Posts |
<%= presenter.forum_post_count(self) %> |
<% end %>
| Approvals |
<%= presenter.approval_count(self) %> |
<% if Danbooru.config.comments_enabled?.to_s.truthy? %>
| Comments |
<%= presenter.comment_count(self) %> in <%= presenter.commented_posts_count(self) %> posts |
<% end %>
| Appeals |
<%= presenter.appeal_count(self) %> |
<% if CurrentUser.user.id == user.id || CurrentUser.is_moderator? %>
| Flags |
<%= presenter.flag_count(self) %> |
<% end %>
| Feedback |
<%= presenter.feedbacks(self) %> |
<% if policy(ModerationReport).can_see_moderation_reports? %>
| Mod Reports |
<%= link_to "received:#{ModerationReport.received_by(user).count}", moderation_reports_path(search: { recipient_name: user.name }) %>
<%= link_to "submitted:#{ModerationReport.where(creator: user).count}", moderation_reports_path(search: { creator_name: user.name }) %>
|
<% end %>
<% if policy(UserNameChangeRequest.new(user: user)).show? %>
<% user.user_name_change_requests.visible(CurrentUser.user).tap do |changes| %>
<% if changes.present? %>
| Previous Names |
<%= changes.map do |change| %>
<% link_to change.original_name, change %>
<% end.join(", ").html_safe %>
|
<% end %>
<% end %>
<% end %>
<% if CurrentUser.id == user.id %>
<% if SavedSearch.labels_for(CurrentUser.user.id).present? %>
| Saved Searches |
<% SavedSearch.labels_for(CurrentUser.user.id).each do |label| %>
<%= link_to label, posts_path(tags: "search:#{label}") %>
<% end %>
|
<% end %>
| API Key |
<%= link_to "View", user_api_keys_path(CurrentUser.user) %>
(<%= link_to_wiki "help", "help:api" %>)
|
<% end %>