排序: <%= link_to "时间", {:controller => 'homepages', :action => 'index', :user_id =>@user.id, :sort => @b_sort}, :class => "sortTxt", :remote => true %> <%= link_to "", {:controller => 'homepages', :action => 'index', :user_id =>@user.id, :sort => @b_sort}, :class => "#{@b_sort.to_i == 1 ? 'sortupbtn' : 'sortdownbtn'} ", :remote => true %>
<%=link_to '新 建', new_article_homepage_path(), :target => "_blank", :class => 'BlueCirBtnMiddle', :style => 'margin-right: 0;' %>
<% if @articles.any? %> <% @articles.each do |activity| %>
  • <% if activity.homepage.article_id and activity.id == activity.homepage.article_id %> <%= link_to activity.title.to_s.html_safe, homepage_user_path(activity.user.login), :class=> "list-title fl", :target => '_blank' %> 主页 <% else %> <%= link_to activity.title.to_s.html_safe, user_homepage_show_path(:user_id=>activity.user_id,:id=>activity), :class=> "list-title fl", :target => '_blank' %> <% end %>
  • 更新:<%= format_time(activity.updated_at) %>
    <%= link_to( l(:button_delete), {:controller => 'article_homepages',:action => 'destroy', :id => activity.id}, :method => :delete, :data => {:confirm => l(:text_are_you_sure)}, :class => 'fr' ) if User.current.admin? || User.current.id == activity.user_id %> <%= link_to( l(:button_edit), {:controller => 'article_homepages',:action => 'edit', :id => activity.id}, :class => 'fr mr10' ) if User.current.admin? || User.current.id == activity.user_id %>
<% end %>
    <%= pagination_links_full @atta_pages, @atta_count, :per_page_links => false, :remote => @is_remote, :flag => true %>
<% else %>

<%= l(:label_no_data) %>

<% end %>