* Capitalizes Admin on Admin Profile button for better consistency * Adds reactions and reports partials and adjusts filenames of _notes, _activity, and _credits * Removes code related to reports to separate this PR and the reports PR * Adds ability to toggle Recent Reactions and adds #get_related_reactions to controller - Adds a #get_related_reactions method to the Admin::Users::Controller - Moves the rendering of the reactions partial below the notes partial in edit - Styles Recent Reactions in a list format with the ability to toggle * Modifies #set_related_reactions name, query, and limit and the _reactions view with it - Adjust #get_related_reactions to read #set_related_reactions - Sort reactions by descending created_at - Add a limit of 15 to reactions displayed for any given user - Add .empty? in place of .nil? to _reactions.html.erb reaction check * Adjusts the format of how Recent Reactions are displayed and adds Reaction category * Adds a check for category: vomit in #set_related_reactions * Renames partial, adds User reactions to #set_related_reactions, and adjusts partial styling * Rewords message displayed when no negative reactions exist to make it fun * Adds additional styling changes to recent reactions
42 lines
1.3 KiB
Text
42 lines
1.3 KiB
Text
<div class="grid gap-6">
|
|
<div class="crayons-card p-6">
|
|
<h2 class="d-inline">
|
|
<%= @user.name %><%= link_to "@#{@user.username}", @user.path, class: "ml-2", target: "_blank", rel: "noopener" %>
|
|
</h2>
|
|
<a href="<%= edit_admin_user_path(@user) %>" class="btn btn-primary float-right">Manage User</a>
|
|
<p class="font-italic">Member since <%= @user.created_at.strftime("%b %e '%y") %></p>
|
|
|
|
<hr>
|
|
|
|
<h2>General Info</h2>
|
|
<dl>
|
|
<dt>ID:</dt>
|
|
<dd><%= @user.id %></dd>
|
|
<dt>Username:</dt>
|
|
<dd><%= @user.username %></dd>
|
|
<dt>Name:</dt>
|
|
<dd><%= @user.name %></dd>
|
|
<dt>Email:</dt>
|
|
<dd><%= @user.email %></dd>
|
|
<dt>Access Locked:</dt>
|
|
<dd><%= @user.access_locked? %></dd>
|
|
<dt>Twitter:</dt>
|
|
<% if @user.twitter_username %>
|
|
<dd><%= link_to @user.twitter_username, "https://twitter.com/#{@user.twitter_username}" %></dd>
|
|
<% else %>
|
|
<dd>N/A</dd>
|
|
<% end %>
|
|
<dt>GitHub:</dt>
|
|
<% if @user.github_username %>
|
|
<dd><%= link_to @user.github_username, "https://github.com/#{@user.github_username}" %></dd>
|
|
<% else %>
|
|
<dd>N/A</dd>
|
|
<% end %>
|
|
</dl>
|
|
</div>
|
|
|
|
<%= render "activity" %>
|
|
<%= render "credits" %>
|
|
<%= render "notes" %>
|
|
<%= render "user_organizations" %>
|
|
<%= render "email_tools" %>
|