X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/453f758f91d57688663e354a54061a65945410e7..965f32d545d7c44ad7b36264b818b930a50d8901:/app/views/issues/index.html.erb diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index 83fe41be9..4002e9db3 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -1,2 +1,43 @@ -

Issues#index

-

Find me in app/views/issues/index.html.erb

+

<%= notice %>

+ +<% content_for :heading do %> +

List of <%= @user_role %> issues:

+<% end %> + +<%= form_tag(issues_path, :method => :get) do %> + <%= text_field_tag :search_by_user, params[:search_by_user], placeholder: "Search by Reported User" %> + <%= submit_tag "Search" %> +<% end %> +
+
+ + + + + + + + + + + + + + + + + <% @issues.each do |issue| %> + + + + + + + + + + <% end %> + +
# Issue Type Status Number of Reports Link to instance Reported User
Issue #<%= issue.id %> <%= issue.reportable_type %> <%= issue.status %> <%= issue.reports.count %> <%= reportable_url(issue.reportable) %><%= link_to issue.user.display_name , :controller => :user, :action => :view,:display_name => issue.user.display_name %><%= link_to "Show Issue", issue %>
+ +