Users

<%= link_to 'New user', new_user_path, class: "rounded-lg py-3 px-5 bg-blue-600 text-white block font-medium" %>
<% @users.each do |user| %> "> <% end %>
Name Created at
Updated at
Status Admin? Edit
<%= user_gravatar current_user, class: "h-10 w-10 rounded-full", size: 80 %>
<%= user.name.presence || "Anonymous".html_safe %>
<%= user.email %>
<%= user.created_at %>
<%= user.updated_at %>
<% if user.confirmed? %> <%= colored_pill_tag("Confirmed", color: "green") %> <% else %> <%= colored_pill_tag("Unconfirmed", color: "yellow") %> <% end %> <% if user.admin? %> <%= colored_pill_tag("Yes", color: "green") %> <% else %> <%= colored_pill_tag("No", color: "yellow") %> <% end %> <%= link_to "Show", user, class: "text-indigo-600 hover:text-indigo-900" %> <%= link_to 'Edit', edit_user_path(user), class: "text-indigo-600 hover:text-indigo-900" %>