Files
danbooru/app/views/posts/index.html.erb
2011-06-21 13:10:01 -04:00

44 lines
1.2 KiB
Plaintext

<div id="c-posts">
<div id="a-index">
<aside id="sidebar">
<section id="search-box">
<h1>Search</h1>
<%= form_tag(posts_path, :method => "get") do %>
<%= text_field_tag("tags", params[:tags], :size => 20) %>
<%= submit_tag "Go" %>
<% end %>
</section>
<% if CurrentUser.user.is_privileged? %>
<section id="mode-box">
<%= render :partial => "posts/partials/index/mode_menu" %>
</section>
<% end %>
<section id="blacklist-box">
<h1>Blacklist</h1>
<%= link_to "Hidden", "#" %>
<ul>
</ul>
</section>
<section id="tag-box">
<h1>Tags</h1>
<%= @post_set.presenter.tag_list_html(self) %>
</section>
</aside>
<section id="content">
<%= render :partial => "wiki_pages/excerpt", :locals => {:post_set => @post_set} %>
<%= render :partial => "posts/partials/index/posts", :locals => {:post_set => @post_set} %>
</section>
<% content_for(:page_title) do %>
/<%= @post_set.tags.join(" ") %>
<% end %>
<%= render :partial => "posts/partials/common/secondary_links" %>
</div>
</div>