<h2><%= @need.title %></h2>
<p><%= markdown @need.description %></p>

<p><%= link_to 'Edit need', [:edit, @need] %></p>

<dl>
  <dt>Format Type</dt>
  <dd><%= @need.kind %></dd>
  <dt>Created</dt>
  <dd><%= @need.created_at %></dd>
  <dt>Updated</dt>
  <dd><%= @need.updated_at %></dd>
  <dt>Added By</dt>
  <dd>tbd</dd>
  <dt>Priority</dt>
  <dd><%= @need.priority %></dd>
</dl>

<p>Tagged: <%= @need.tag_list %></p>
<p>Departments Interested: <%= @need.departments.collect(&:to_s).to_sentence %></p>

<div id="justifications">
  <h3>Justifications</h3>
  <% @need.justifications.each do |justification| %>
  <div>
    <p><%= justification.kind %></p>
    <p><%= markdown justification.details %></p>
    <p><%= link_to 'Edit', edit_need_justification_path(@need), :class => 'button' %></p>
  </div>
  <% end %>
  
  <p><%= link_to 'Add justification', new_need_justification_path(@need) %></p>
</div>

<h2><%= @need.title %></h2>
<p><%= markdown @need.description %></p>

<p><%= link_to 'Edit need', [:edit, @need] %></p>

<dl>
  <dt>Format Type</dt>
  <dd><%= @need.kind %></dd>
  <dt>Created</dt>
  <dd><%= @need.created_at %></dd>
  <dt>Updated</dt>
  <dd><%= @need.updated_at %></dd>
  <dt>Added By</dt>
  <dd>tbd</dd>
  <dt>Priority</dt>
  <dd><%= @need.priority %></dd>
</dl>

<p>Tagged: <%= @need.tag_list %></p>
<p>Departments Interested: <%= @need.departments.collect(&:to_s).to_sentence %></p>

<div id="justifications">
  <h3>Evidence</h3>
  <% @need.justifications.each do |justification| %>
  <div>
    <p><%= justification.kind %></p>
    <p><%= markdown justification.details %></p>

    <% if justification.file? %>
      <p><%= link_to 'Download file', justification.file_url %></p>
    <% end %>
    
    <p><%= link_to 'Edit', edit_need_justification_path(@need), :class => 'button' %></p>
  </div>
  <% end %>
  
  <p><%= link_to 'Add evidence', new_need_justification_path(@need) %></p>
</div>

Fix the way we check for file existence and display the link to those files
Fix the way we check for file existence and display the link to those files
