This commit is contained in:
albert
2011-05-31 15:57:04 -04:00
parent 5d4ff96cbc
commit ce0695c606
4 changed files with 13 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
<ul>
<li>Uploader: <%= link_to_unless(post.uploader.nil?, post.uploader_name, user_path(post.uploader)) %></li>
<li>Uploaded: <%= time_ago_in_words(post.created_at).gsub(/about/, "") %> ago</li>
<li>Date: <time datetime="<%= post.created_at.iso8601 %>" title="<%= post.created_at.to_date %>"><%= time_ago_in_words(post.created_at).gsub(/about/, "") %> ago</time></li>
<% if post.approver %>
<li>Approver: <%= link_to(post.approver.name, user_path(post.approver_id)) %></li>
<% end %>
@@ -28,6 +28,4 @@
<abbr title="Active">A</abbr>
<% end %>
</li>
<li><%= link_to "Tag History", post_versions_path(:search => {:post_id_eq => post.id}) %></li>
<li><%= link_to "Note History", note_versions_path(:search => {:post_id_eq => post.id}) %></li>
</ul>

View File

@@ -22,11 +22,20 @@
<h1>Information</h1>
<%= render :partial => "posts/partials/show/information", :locals => {:post => @post} %>
</section>
<section>
<h1>Options</h1>
<%= render :partial => "posts/partials/show/options", :locals => {:post => @post} %>
</section>
<section>
<h1>History</h1>
<ul>
<li><%= link_to "Tags", post_versions_path(:search => {:post_id_eq => @post.id}) %></li>
<li><%= link_to "Notes", note_versions_path(:search => {:post_id_eq => @post.id}) %></li>
</ul>
</section>
</aside>
<section id="content">