X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c32f6dd4fffe1d2b5fc34f42e447e7b5c8fc5b92..ce342fede0fc465993e588487056d76458f97169:/app/views/issues/_page.html.erb diff --git a/app/views/issues/_page.html.erb b/app/views/issues/_page.html.erb index ed23fb8cd..f625f0e04 100644 --- a/app/views/issues/_page.html.erb +++ b/app/views/issues/_page.html.erb @@ -1,34 +1,42 @@ - - - - - - - - - - - - <% @issues.each do |issue| %> - - - - - - - + + <% if @issues.length == 0 %> + <% if params[:search_by_user].present? && !@find_user %> +

<%= t ".user_not_found" %>

+ <% else %> +

<%= t ".issues_not_found" %>

<% end %> -
-
<%= t ".status" %><%= t ".reports" %><%= t ".reported_item" %><%= t ".reported_user" %><%= t ".last_updated" %>
<%= t ".states.#{issue.status}" %><%= link_to t(".reports_count", :count => issue.reports_count), issue %><%= link_to reportable_title(issue.reportable), reportable_url(issue.reportable) %><%= link_to issue.reported_user.display_name, issue.reported_user if issue.reported_user %> - <% if issue.user_updated %> - <%= t ".last_updated_time_ago_user_html", :user => link_to(issue.user_updated.display_name, issue.user_updated), - :time_ago => friendly_date_ago(issue.updated_at) %> - <% else %> - <%= friendly_date_ago(issue.updated_at) %> - <% end %> -
-<%= render "shared/pagination", - :newer_key => "issues.page.newer_issues", - :older_key => "issues.page.older_issues", - :newer_id => @newer_issues_id, - :older_id => @older_issues_id %> + <% else %> + + + + + + + + + + + + <% @issues.each do |issue| %> + + + + + + + + <% end %> + +
<%= t ".status" %><%= t ".reports" %><%= t ".reported_item" %><%= t ".reported_user" %><%= t ".last_updated" %>
<%= t ".states.#{issue.status}" %><%= link_to t(".reports_count", :count => issue.reports_count), issue %><%= link_to reportable_title(issue.reportable), reportable_url(issue.reportable) %><%= link_to issue.reported_user.display_name, issue.reported_user if issue.reported_user %> + <% if issue.user_updated %> + <%= t ".last_updated_time_ago_user_html", :user => link_to(issue.user_updated.display_name, issue.user_updated), + :time_ago => friendly_date_ago(issue.updated_at) %> + <% else %> + <%= friendly_date_ago(issue.updated_at) %> + <% end %> +
+ <%= render "shared/pagination", + :newer_id => @newer_issues_id, + :older_id => @older_issues_id %> + <% end %> +