* layout * user * config * header * badges, badge_achievements, layout * broadcasts * chat channels * comments.. not much really * Events * growth * listings * mod actions * mods * orgs * pages * permissions * podcasts * reactions * profile fields * reports * response templates * tools * users * Secrets * webhooks * welcome threads * . * internal * css fix * . * main element elsewhere * scope * bring back some of the old styling * . * . * . * notice * Revert schema.db * add alert * little fixes * profile fields * Update schema.rb * closing span * another span * Fixed broken admin specs. Co-authored-by: Nick Taylor <nick@dev.to>
24 lines
798 B
Text
24 lines
798 B
Text
<div class="crayons-card p-6">
|
|
<div class="grid grid-cols-2">
|
|
<div>
|
|
<h2>Activity</h2>
|
|
<ul>
|
|
<li><%= @user.comments_count %> comments</li>
|
|
<li><%= @user.articles_count %> articles</li>
|
|
<li><%= @user.reactions_count %> reactions</li>
|
|
<li><%= @user.followers_count %> followers</li>
|
|
<li><%= @user.following_users_count %> users following</li>
|
|
<li><%= @user.badge_achievements_count %> badges</li>
|
|
</ul>
|
|
</div>
|
|
<div>
|
|
<h2>Current Roles</h2>
|
|
<p>(view full history in notes below)</p>
|
|
<ul>
|
|
<% @user.roles.each do |role| %>
|
|
<li><%= role.name %> <em><%= "- " + Tag.find(role.resource_id).name if role.resource_id.present? %></em></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|