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

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_at? %> <%= "| Last updated at #{l(@issue.updated_at.to_datetime, :format => :long)} by #{@updated_by_admin.display_name}" if @updated_by_admin %> + +

+

<%= link_to t('issues.resolve'), resolve_issue_url(@issue), :method => :post if @issue.may_resolve? %>

+

<%= link_to t('issues.ignore'), ignore_issue_url(@issue), :method => :post if @issue.may_ignore? %>

+

<%= link_to t('issues.reopen'), reopen_issue_url(@issue), :method => :post if @issue.may_reopen? %>

+<% end %> + + + +

Comments on this issue:

+
+ <%= render 'comments', comments: @comments %> +
+