Files
danbooru/app/views/posts/show.html.erb
albert 5856b105f5 stuff
2011-03-29 13:56:30 -04:00

92 lines
2.7 KiB
Plaintext

<div id="c-posts">
<div id="a-show">
<aside id="sidebar">
<section>
<h1>Search</h1>
<%= render :partial => "posts/partials/common/search" %>
</section>
<% if @post.pools.any? %>
<section id="pool-sidebar">
<h1>Pools</h1>
<%= render :partial => "posts/partials/show/pools", :locals => {:post => @post} %>
</section>
<% end %>
<section>
<h1>Tags</h1>
<%= @post.presenter.tag_list_html(self) %>
</section>
<section>
<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>
</aside>
<section id="content">
<h1>Post</h1>
<%= render :partial => "posts/partials/show/notices", :locals => {:post => @post} %>
<section id="image">
<h2>Image</h2>
<%= @post.presenter.image_html(self) %>
</section>
<menu id="post-sections">
<li><a href="#comments">Comments</a></li>
<li><a href="#notes">Notes</a></li>
<li><a href="#edit">Edit</a></li>
</menu>
<section id="comments">
<h2>Comments</h2>
<%= render :partial => "comments/partials/index/list", :locals => {:comments => @post.comments, :post => @post, :show_header => false} %>
</section>
<section id="notes">
<h2>Notes</h2>
<%= render :partial => "notes/note", :collection => @post.notes.active %>
</section>
<section id="edit">
<h2>Edit</h2>
<%= render :partial => "posts/partials/show/edit", :locals => {:post => @post} %>
</section>
</section>
</div>
<div id="flag-dialog" title="Flag Post">
<%= render :template => "post_flags/new" %>
</div>
<div id="appeal-dialog" title="Appeal Post">
<%= render :template => "post_appeals/new" %>
</div>
<div id="add-to-pool-dialog" title="Add to Pool">
<%= render :template => "pools_posts/new" %>
</div>
</div>
<% content_for(:page_title) do %>
/p/<%= @post.tag_string %>
<% end %>
<% content_for(:html_header) do %>
<meta name="tags" content="<%= @post.tag_string %>">
<meta name="favorites" content="<%= @post.fav_string %>">
<meta name="pools" content="<%= @post.pool_string %>">
<meta name="post-id" content="<%= @post.id %>">
<meta name="post-is-approvable" content="<%= @post.is_approvable? %>">
<meta name="post-is-deleted" content="<%= @post.is_deleted? %>">
<% end %>
<%= render :partial => "posts/partials/common/secondary_links" %>