X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c3ad6aa2923c03aeeea0b57033b0a9238d262aa2..63992d83bdf3c2489e10504957bb57ed29976803:/app/views/issues/index.html.erb diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index 7a7da4578..431158c38 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -1,7 +1,5 @@ -

<%= notice %>

- <% content_for :heading do %> -

List of <%= @user_role %> issues:

+

List of issues:

<% end %> <%= form_tag(issues_path, :method => :get) do %> @@ -13,29 +11,34 @@ Search for a particular issue(s):
<%= submit_tag "Search" %> <% end %>
+ +<% if @issues.length == 0 %> +

<%= t ".search.issues_not_found" %>

+<% end %> +
- - - - - - - + + + + + + + <% @issues.each do |issue| %> - + - + <% end %>
<%= sortable("status") %> <%= sortable("report_count", "Number of Reports") %> <%= sortable("updated_at","Last updated at") %> <%= sortable("updated_by","Last updated by") %> Link to reports <%= sortable("reported_user_id","Reported User") %> Link to reported instanceStatusNumber of ReportsLast updated atLast updated byLink to reportsReported UserLink to reported instance
<%= issue.status.humanize %><%= issue.report_count %><%= issue.reports_count %> <%= l(issue.updated_at.to_datetime, :format => :friendly) %> <% if issue.user_updated %> <%= issue.user_updated.display_name %> <% else %> - <% end %> <%= reports_url(issue) %><%= link_to issue.user.display_name , :controller => :user, :action => :view,:display_name => issue.user.display_name %><%= link_to issue.reported_user.display_name , :controller => :user, :action => :view, :display_name => issue.reported_user.display_name %> <%= instance_url(issue.reportable) %>