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

@ -225,6 +225,7 @@ span.wait {
span.ui-icon {
float: left;
margin-top: 0.2em;
margin-right: 0.25em;
}

View File

@ -51,7 +51,7 @@
<%- if flash[:notice] -%>
<div class="ui-corner-all ui-state-highlight" id="notice"><span class="ui-icon ui-icon-info"></span> <%= flash[:notice] %></div>
<%- else -%>
<div class="ui-corner-all ui-state-highlight" id="notice" style="display: none;"><span class="ui-icon ui-icon-info"></span> </div>
<div class="ui-corner-all ui-state-highlight" id="notice" style="display: none;"><span class="ui-icon ui-icon-info"></span></div>
<%- end -%>
<div id="page">

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">