X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/453f758f91d57688663e354a54061a65945410e7..c7bc13668b78afde72e9b8f6644b001799e84eb9:/app/views/issues/show.html.erb?ds=inline diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index 1c3b8bb65..1f57c454e 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -1,2 +1,57 @@ -
Find me in app/views/issues/show.html.erb
+<% content_for :heading do %> +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? %> + +
+<%= 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 %> + + + +