Skip to content

Commit

Permalink
Added submission information to #show - closing #109 , but obviously …
Browse files Browse the repository at this point in the history
…not resolving things stylistically
  • Loading branch information
augustf committed Jun 14, 2012
1 parent d552163 commit b48e05e
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions app/views/submissions/_show_body.html.erb
Expand Up @@ -17,13 +17,24 @@
<div id="moderate-include"></div>
</div>
<% end %>
<% user = User.find(@submission.content.user_id) %>
Submitted by: <%= link_to user.name, user %>

<br />
<b>Approved?:</b>
<%= @submission.moderation_flag %>
<% case @submission.moderation_flag %>
<% when true %>
<b>Approved</b>
<% when false %>
<b>Denied</b>
<% when nil %>
<b>Pending</b>
<% end %>

<br />
Starts:<%= @submission.content.start_time.strftime("%B %d at %I:%M%p %Z") %>
<br />
<b>Feed:</b>
<%= @submission.feed.name unless @submission.feed.nil? %>
Ends: <%= @submission.content.end_time.strftime("%B %d at %I:%M%p %Z") %>

</aside>
<div class="clear"></div>

0 comments on commit b48e05e

Please sign in to comment.