X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/453f758f91d57688663e354a54061a65945410e7..d49922eb630abb73c7faffb650ab97b3c5d94c52:/app/views/issues/show.html.erb diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index 1c3b8bb65..d756595cf 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -1,2 +1,29 @@ -

Issues#show

-

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

+<% content_for :heading do %> +

Issue #<%= @issue.id %>
Status: <%= @issue. status %>

+

Issue against: <%= reportable_url(@issue.reportable) %>

+

Issue type: <%= @issue.reportable_type %>

+

+ + <%= @issue.reports.count %> reports | First reported: <%= l @issue.created_at.to_date, :format => :long %> | <%= "Last resolved at #{l(@issue.resolved_at.to_datetime, :format =>:long)}" if @issue.resolved? %> + +

+

<%= link_to "Resolve", resolve_issue_url(@issue), :method => :post if @issue.may_resolve? %>

+

<%= link_to "Ignore", ignore_issue_url(@issue), :method => :post if @issue.may_ignore? %>

+

<%= link_to "Reopen", reopen_issue_url(@issue), :method => :post if @issue.may_reopen? %>

+<% end %> + +

Reports under this issue:

+ +<% if @read_reports.present? %> +
+

Read Reports:

+ <%= render 'reports',reports: @read_reports %> +
+<% end %> + +<% if @unread_reports.any? %> +
+

New Reports:

+ <%= render 'reports',reports: @unread_reports %> +
+<% end %>