parent
1acc369774
commit
29bd105072
10 changed files with 115 additions and 15 deletions
|
|
@ -4,7 +4,15 @@
|
|||
|
||||
<p><%= _("Updated: %{date}") % { date: format_date(@user.updated_at) } %></p>
|
||||
|
||||
<p class="mb-5"><%= _("Admin: %{admin}") % { admin: @user.admin ? _("Yes") : _("No") } %></p>
|
||||
<p><%= _("Admin: %{admin}") % { admin: @user.admin ? _("Yes") : _("No") } %></p>
|
||||
|
||||
<% if @user.closed_at %>
|
||||
<p class="mb-5"><%= _("Closed: %{date}") % { date: format_date(@user.closed_at) } %></p>
|
||||
<% else %>
|
||||
<form action="/users/<%= @user.id %>/close" method="get" class="mb-5">
|
||||
<button type="submit" class="btn btn-outline-danger"><%= _("Close account") %></button>
|
||||
</form>
|
||||
<% end %>
|
||||
|
||||
<h2 class="mb-4"><%= _("Organized votes") %></h2>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue