diff --git a/app/assets/stylesheets/specific/posts.css.scss b/app/assets/stylesheets/specific/posts.css.scss index 33715f92c..66bb0b7e3 100644 --- a/app/assets/stylesheets/specific/posts.css.scss +++ b/app/assets/stylesheets/specific/posts.css.scss @@ -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; diff --git a/app/views/explore/posts/_date_explore.html.erb b/app/views/explore/posts/_date_explore.html.erb index 4716fa1bb..f07c44f8c 100644 --- a/app/views/explore/posts/_date_explore.html.erb +++ b/app/views/explore/posts/_date_explore.html.erb @@ -1,19 +1,19 @@ - +

+ + <%= link_to "«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»".html_safe, popular_explore_posts_path(:date => post_set.presenter.next_day, :scale => "day") %> + + | + + <%= link_to "«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»".html_safe, popular_explore_posts_path(:date => post_set.presenter.next_week, :scale => "week") %> + + | + + <%= link_to "«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»".html_safe, popular_explore_posts_path(:date => post_set.presenter.next_month, :scale => "month") %> + +

\ No newline at end of file diff --git a/app/views/explore/posts/popular.html.erb b/app/views/explore/posts/popular.html.erb index 086f0ecb6..52e1bfa98 100644 --- a/app/views/explore/posts/popular.html.erb +++ b/app/views/explore/posts/popular.html.erb @@ -1,12 +1,10 @@
-

Explore: <%= @post_set.presenter.range_text %>

+

Popular: <%= @post_set.presenter.range_text %>

<%= render "date_explore", :post_set => @post_set %> -
- <%= @post_set.presenter.post_previews_html(self) %> -
+ <%= @post_set.presenter.post_previews_html(self) %>