1 <% content_for :heading do %>
2 <h1><%= t ".title" %></h1>
5 <%= form_tag(issues_path, :method => :get) do %>
6 <p><%= t ".search_guidance" %></p>
7 <%= select_tag :status, options_for_select(Issue.aasm.states.map(&:name).map { |state| [t(".states.#{state}"), state] }, params[:status]), :include_blank => t(".select_status"), :data => { :behavior => "category_dropdown" } %>
8 <%= select_tag :issue_type, options_for_select(@issue_types, params[:issue_type]), :include_blank => t(".select_type"), :data => { :behavior => "category_dropdown" } %>
9 <%= text_field_tag :search_by_user, params[:search_by_user], :placeholder => t(".reported_user") %>
10 <%= select_tag :last_updated_by, options_for_select(@users.all.collect { |f| [f.display_name, f.id] } << [t(".not_updated"), "nil"], params[:last_updated_by]), :include_blank => t(".select_last_updated_by"), :data => { :behavior => "category_dropdown" } %>
11 <%= submit_tag t(".search"), :name => nil %>
15 <% if @issues.length == 0 %>
16 <p><%= t ".issues_not_found" %></p>
21 <table class="issues-list">
24 <th><%= t ".status" %></th>
25 <th><%= t ".reports" %></th>
26 <th><%= t ".reported_item" %></th>
27 <th><%= t ".reported_user" %></th>
28 <th><%= t ".last_updated" %></th>
32 <% @issues.each do |issue| %>
34 <td><%= t ".states.#{issue.status}" %></td>
35 <td><%= link_to t(".reports_count", :count => issue.reports_count), issue %></td>
36 <td><%= link_to reportable_title(issue.reportable), reportable_url(issue.reportable) %></td>
37 <td><%= link_to issue.reported_user.display_name, user_path(issue.reported_user) if issue.reported_user %></td>
39 <% if issue.user_updated %>
40 <%= t ".last_updated_time_user_html", :user => link_to(issue.user_updated.display_name, user_path(issue.user_updated)),
41 :time => distance_of_time_in_words_to_now(issue.updated_at),
42 :title => l(issue.updated_at) %>
44 <%= t ".last_updated_time_html", :time => distance_of_time_in_words_to_now(issue.updated_at),
45 :title => l(issue.updated_at) %>