app/views/sb_posts/monitored.html.erb in community_engine-2.3.2 vs app/views/sb_posts/monitored.html.erb in community_engine-3.0.0

- old
+ new

@@ -1,24 +1,20 @@ <% @page_title = "Posts that #{h @user.display_name} is monitoring" -%> <h4><%= link_to @user.display_name, user_path(@user) %>'<%= 's '+:monitored_topics.l %></h4> <ul class="flat"> -<% @user.monitored_topics.find(:all, :limit => 25).each do |topic| %> +<% @user.monitored_topics.limit(25).each do |topic| %> <li><%= link_to topic.title, forum_topic_path(topic.forum_id, topic) %></li> <% end %> </ul> <h1><%= @page_title %></h1> <p class="subtitle"> - <%= feed_icon_tag @page_title, monitored_all_sb_posts_path(:user_id => @user, :format => 'rss') %> + <%= link_to fa_icon("rss"), monitored_all_sb_posts_path(:user_id => @user, :format => 'rss') %> <%= :post_found.l(:count => @posts.size) %> </p> -<% if @posts.total_count > 1 -%> -<div class="pagination"><%= "#{:pages.l}:" %> <strong><%= paginating_links @posts %></strong></div> -<% end -%> - <table border="0" cellspacing="0" cellpadding="0" class="posts wide"> <% for post in @posts do %> <% unless post == @posts.to_a.first %> <tr class="spacer"> <td colspan="2">&nbsp;</td> @@ -48,8 +44,6 @@ </tr> <% end %> </table> -<% if @posts.total_count > 1 -%> -<div class="pagination"><%= :pages.l %> <strong><%= paginating_links @posts %></strong></div> -<% end -%> +<%= paginate @posts, :theme => 'bootstrap' %>