This commit is contained in:
albert
2013-03-09 20:14:53 -05:00
parent ca76d7de20
commit 38e1ed3369
3 changed files with 36 additions and 23 deletions

View File

@@ -299,6 +299,21 @@ div#c-post-versions {
}
}
div#c-explore-posts {
a.desc {
font-weight: bold;
margin: 0 0.5em;
}
.period {
margin: 0 0.5em;
&:first-child {
margin-left: 0;
}
}
}
div#unapprove-dialog {
p {
margin-bottom: 1em;

View File

@@ -1,19 +1,19 @@
<aside id="sidebar">
<ul>
<li>
<%= link_to "&laquo;prev".html_safe, popular_explore_posts_path(:date => post_set.presenter.prev_day, :scale => "day") %>
<%= link_to "next&raquo;".html_safe, popular_explore_posts_path(:date => post_set.presenter.next_day, :scale => "day") %>
<%= link_to "Day", popular_explore_posts_path(:date => post_set.presenter.date, :scale => "day") %>
</li>
<li>
<%= link_to "&laquo;prev".html_safe, popular_explore_posts_path(:date => post_set.presenter.prev_week, :scale => "week") %>
<%= link_to "next&raquo;".html_safe, popular_explore_posts_path(:date => post_set.presenter.next_week, :scale => "week") %>
<%= link_to "Week", popular_explore_posts_path(:date => post_set.presenter.date, :scale => "week") %>
</li>
<li>
<%= link_to "&laquo;prev".html_safe, popular_explore_posts_path(:date => post_set.presenter.prev_month, :scale => "month") %>
<%= link_to "next&raquo;".html_safe, popular_explore_posts_path(:date => post_set.presenter.next_month, :scale => "month") %>
<%= link_to "Month", popular_explore_posts_path(:date => post_set.presenter.date, :scale => "month") %>
</li>
</ul>
</aside>
<p>
<span class="period">
<%= link_to "&laquo;prev".html_safe, popular_explore_posts_path(:date => post_set.presenter.prev_day, :scale => "day") %>
<%= link_to "Day", popular_explore_posts_path(:date => post_set.presenter.date, :scale => "day"), :class => "desc" %>
<%= link_to "next&raquo;".html_safe, popular_explore_posts_path(:date => post_set.presenter.next_day, :scale => "day") %>
</span>
|
<span class="period">
<%= link_to "&laquo;prev".html_safe, popular_explore_posts_path(:date => post_set.presenter.prev_week, :scale => "week") %>
<%= link_to "Week", popular_explore_posts_path(:date => post_set.presenter.date, :scale => "week"), :class => "desc" %>
<%= link_to "next&raquo;".html_safe, popular_explore_posts_path(:date => post_set.presenter.next_week, :scale => "week") %>
</span>
|
<span class="period">
<%= link_to "&laquo;prev".html_safe, popular_explore_posts_path(:date => post_set.presenter.prev_month, :scale => "month") %>
<%= link_to "Month", popular_explore_posts_path(:date => post_set.presenter.date, :scale => "month"), :class => "desc" %>
<%= link_to "next&raquo;".html_safe, popular_explore_posts_path(:date => post_set.presenter.next_month, :scale => "month") %>
</span>
</p>

View File

@@ -1,12 +1,10 @@
<div id="c-explore-posts">
<div id="a-index">
<h1>Explore: <%= @post_set.presenter.range_text %></h1>
<h1>Popular: <%= @post_set.presenter.range_text %></h1>
<%= render "date_explore", :post_set => @post_set %>
<section id="content">
<%= @post_set.presenter.post_previews_html(self) %>
</section>
<%= @post_set.presenter.post_previews_html(self) %>
</div>
</div>