* thanks to @maxwell for the initial work on this port admin pages to bootstrap * improve user view on admin search page * add 'close account' link to each user in the search results * keep the same blue color for the admin menu some refactoring of the routes and the admin code * try to be more RESTful (possibly) * use a 'UserSearch' model for search parameters and querying add changelog entry
29 lines
981 B
Text
29 lines
981 B
Text
|
|
%div
|
|
= render :partial => 'admins/admin_bar'
|
|
|
|
%div.row
|
|
%div.span12
|
|
%h1
|
|
= t('report.title')
|
|
%div#reports
|
|
- @reports.each do |r|
|
|
- username = User.find_by_id(r.user_id).username
|
|
%div.content
|
|
%span.text
|
|
= report_content(r.item_id, r.item_type)
|
|
%span
|
|
= raw t('report.reported_label', person: link_to(username, user_profile_path(username)))
|
|
%span
|
|
= t('report.reason_label', text: r.text)
|
|
%div.options.text-right
|
|
%span
|
|
= button_to t('report.review_link'), report_path(r.id, :type => r.item_type),
|
|
:class => "btn btn-info btn-small",
|
|
method: :put
|
|
%span
|
|
= button_to t('report.delete_link'), report_path(r.id, :type => r.item_type),
|
|
:data => { :confirm => t('report.confirm_deletion') },
|
|
:class => "btn btn-danger btn-small",
|
|
method: :delete
|
|
%div.clear
|