40 lines
928 B
Plaintext
40 lines
928 B
Plaintext
<%= render 'shared/back_link' %>
|
|
|
|
<h2><%= t("admin.users.show.title", user: @user.name) %></h2>
|
|
|
|
<p>
|
|
<strong><%= t("admin.users.show.email") %></strong> <%= @user.email %> |
|
|
<strong><%= t("admin.users.show.registered_at") %></strong> <%= @user.confirmed_at %> |
|
|
<strong><%= t("admin.users.show.hidden_at") %></strong> <%= @user.hidden_at %>
|
|
</p>
|
|
|
|
<% if @debates.present? %>
|
|
<h3><%= page_entries_info @debates %></h3>
|
|
<% end %>
|
|
|
|
<table>
|
|
<% @debates.each do |debate| %>
|
|
<tr>
|
|
<td>
|
|
<%= link_to debate.title, debate_path(debate) %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
|
|
<% if @comments.present? %>
|
|
<h3><%= page_entries_info @comments %></h3>
|
|
<% end %>
|
|
|
|
<table>
|
|
<% @comments.each do |comment| %>
|
|
<tr id="<%= dom_id(comment) %>">
|
|
<td>
|
|
<%= text_with_links comment.body %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
|
|
<%= paginate [@debates, @comments].sort_by {|x| x.size}.last %>
|