2014-04-26 21:50:58 +00:00
|
|
|
<div id="issue">
|
|
|
|
<h1>Issue: <%= h @issue %></h1>
|
|
|
|
<h2 class="title">Created: <%= @issue.created_at.strftime("%Y-%m-%d %H:%M:%S") %></h2>
|
|
|
|
|
|
|
|
<%= cascade @issue, [:author, :assigned, :category, "status_s"] %>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-26 21:50:58 +00:00
|
|
|
<h3>Issue details:</h3>
|
|
|
|
<p><%= @issue.text_parsed.html_safe %></p>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-26 21:50:58 +00:00
|
|
|
<% if @issue.solution and !@issue.solution.empty? %>
|
|
|
|
<h3>Solution:</h3>
|
|
|
|
<p><%= @issue.solution_formatted.html_safe %></p>
|
|
|
|
<% end %>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
|
|
|
<p>
|
|
|
|
<% if @issue.can_update? cuser%>
|
2014-04-26 21:50:58 +00:00
|
|
|
<%= link_to 'Edit Issue', edit_issue_path(@issue), class: 'button' %>
|
2014-03-23 00:22:25 +00:00
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
|
2014-04-26 21:50:58 +00:00
|
|
|
<%= add_comments @issue %>
|
2014-03-23 00:22:25 +00:00
|
|
|
</div>
|
2014-04-26 21:50:58 +00:00
|
|
|
|