|
|
|
@ -2,8 +2,18 @@
|
|
|
|
|
<h2 class="list-h2">博客列表</h2>
|
|
|
|
|
<div class="category">
|
|
|
|
|
<span class="grayTxt ">排序:</span>
|
|
|
|
|
<a href="#" class="sortTxt ">时间</a><a class="sortupbtn "></a>
|
|
|
|
|
<a href="#" class="sortTxt ">人气</a><a class="sortdownbtn "></a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<%= link_to "时间", user_blog_sort_blog_path(:sort => @score, :order => 1, :search => " "), :class => "sortTxt", :remote => true %>
|
|
|
|
|
<% if @order == 1 %>
|
|
|
|
|
<%= link_to "", user_blog_sort_blog_path(:sort => @score, :order => 1, :search => " "), :class => "#{@score == 'desc' ? 'sortupbtn' : 'sortdownbtn'} ", :remote => true %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<%= link_to "人气", user_blog_sort_blog_path(:sort => @score, :order => 2, :search => " "), :class => "sortTxt", :remote => true %>
|
|
|
|
|
<% if @order == 2 %>
|
|
|
|
|
<%= link_to "", user_blog_sort_blog_path(:sort => @score, :order => 2, :search => " "), :class => "#{@score == 'desc' ? 'sortupbtn' : 'sortdownbtn'} ", :remote => true %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bloglistbox">
|
|
|
|
|