diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb index 0214d5212..0706dcbf7 100644 --- a/app/helpers/groups_helper.rb +++ b/app/helpers/groups_helper.rb @@ -41,6 +41,6 @@ module GroupsHelper link_to text, autocomplete_for_user_group_path(group, parameters.merge(:q => params[:q], :format => 'js')), :remote => true } - s + content_tag('p', links, :class => 'pagination') + s + content_tag('span', links, :class => 'pagination') end end diff --git a/app/helpers/members_helper.rb b/app/helpers/members_helper.rb index cd9e5632e..57ff4d4b5 100644 --- a/app/helpers/members_helper.rb +++ b/app/helpers/members_helper.rb @@ -33,6 +33,6 @@ module MembersHelper link_to text, autocomplete_project_memberships_path(project, parameters.merge(:q => params[:q], :format => 'js')), :remote => true } - s + content_tag('p', links, :class => 'pagination') + s + content_tag('span', links, :class => 'pagination') end end diff --git a/app/views/auth_sources/index.html.erb b/app/views/auth_sources/index.html.erb index fcdbf7d43..ecde2bf95 100644 --- a/app/views/auth_sources/index.html.erb +++ b/app/views/auth_sources/index.html.erb @@ -28,4 +28,4 @@ -
<%= pagination_links_full @auth_source_pages %>
+<%= pagination_links_full @auth_source_pages %> diff --git a/app/views/boards/show.html.erb b/app/views/boards/show.html.erb index 7a599eae2..a9734318a 100644 --- a/app/views/boards/show.html.erb +++ b/app/views/boards/show.html.erb @@ -50,7 +50,7 @@ <% end %> -<%= pagination_links_full @topic_pages, @topic_count %>
+<%= pagination_links_full @topic_pages, @topic_count %> <% else %><%= l(:label_no_data) %>
<% end %> diff --git a/app/views/issue_statuses/index.html.erb b/app/views/issue_statuses/index.html.erb index 3da8c5b80..40a5c92ce 100644 --- a/app/views/issue_statuses/index.html.erb +++ b/app/views/issue_statuses/index.html.erb @@ -32,6 +32,6 @@ -<%= pagination_links_full @issue_status_pages %>
+<%= pagination_links_full @issue_status_pages %> <% html_title(l(:label_issue_status_plural)) -%> diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index de87c5ee2..8310dc73e 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -66,7 +66,7 @@ <% else %> <%= render_query_totals(@query) %> <%= render :partial => 'issues/list', :locals => {:issues => @issues, :query => @query} %> -<%= pagination_links_full @issue_pages, @issue_count %>
+<%= pagination_links_full @issue_pages, @issue_count %> <% end %> <% other_formats_links do |f| %> diff --git a/app/views/messages/show.html.erb b/app/views/messages/show.html.erb index 533be20bb..23e6f0285 100644 --- a/app/views/messages/show.html.erb +++ b/app/views/messages/show.html.erb @@ -67,7 +67,7 @@ <%= link_to_attachments message, :author => false %> <% end %> -<%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %>
+<%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %> <% end %> <% if !@topic.locked? && authorize_for('messages', 'reply') %> diff --git a/app/views/news/index.html.erb b/app/views/news/index.html.erb index 87eb98b4b..64614c154 100644 --- a/app/views/news/index.html.erb +++ b/app/views/news/index.html.erb @@ -37,7 +37,7 @@ <% end %> <% end %> -<%= pagination_links_full @news_pages %>
+<%= pagination_links_full @news_pages %> <% other_formats_links do |f| %> <%= f.link_to 'Atom', :url => {:project_id => @project, :key => User.current.rss_key} %> diff --git a/app/views/repositories/revisions.html.erb b/app/views/repositories/revisions.html.erb index a1e54582f..c0afb955a 100644 --- a/app/views/repositories/revisions.html.erb +++ b/app/views/repositories/revisions.html.erb @@ -17,7 +17,7 @@ :revisions => @changesets, :entry => nil } %> -<%= pagination_links_full @changeset_pages,@changeset_count %>
+<%= pagination_links_full @changeset_pages,@changeset_count %> <% content_for :header_tags do %> <%= stylesheet_link_tag "scm" %> diff --git a/app/views/roles/index.html.erb b/app/views/roles/index.html.erb index 9545d5509..6561d1170 100644 --- a/app/views/roles/index.html.erb +++ b/app/views/roles/index.html.erb @@ -29,6 +29,6 @@ -<%= pagination_links_full @role_pages %>
+<%= pagination_links_full @role_pages %> <% html_title(l(:label_role_plural)) -%> diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erb index 35d0d0bf7..6fceaeab2 100644 --- a/app/views/search/index.html.erb +++ b/app/views/search/index.html.erb @@ -52,7 +52,7 @@ <% end %> <% if @result_pages %> -<%= pagination_links_full @result_pages, @result_count, :per_page_links => false %>
+<%= pagination_links_full @result_pages, @result_count, :per_page_links => false %> <% end %> <% html_title(l(:label_search)) -%> diff --git a/app/views/timelog/index.html.erb b/app/views/timelog/index.html.erb index ad1854f36..a875e53af 100644 --- a/app/views/timelog/index.html.erb +++ b/app/views/timelog/index.html.erb @@ -18,7 +18,7 @@ <% unless @entries.empty? %> <%= render :partial => 'list', :locals => { :entries => @entries }%> -<%= pagination_links_full @entry_pages, @entry_count %>
+<%= pagination_links_full @entry_pages, @entry_count %> <% other_formats_links do |f| %> <%= f.link_to 'Atom', :url => params.merge({:issue_id => @issue, :key => User.current.rss_key}) %> diff --git a/app/views/trackers/index.html.erb b/app/views/trackers/index.html.erb index f76a4f5db..8ba7b7cdc 100644 --- a/app/views/trackers/index.html.erb +++ b/app/views/trackers/index.html.erb @@ -34,6 +34,6 @@ -<%= pagination_links_full @tracker_pages %>
+<%= pagination_links_full @tracker_pages %> <% html_title(l(:label_tracker_plural)) -%> diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 7cd6bb067..c32b46a9c 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -53,6 +53,6 @@ -<%= pagination_links_full @user_pages, @user_count %>
+<%= pagination_links_full @user_pages, @user_count %> <% html_title(l(:label_user_plural)) -%> diff --git a/lib/redmine/pagination.rb b/lib/redmine/pagination.rb index 943e8f5a7..83ded7b40 100644 --- a/lib/redmine/pagination.rb +++ b/lib/redmine/pagination.rb @@ -172,34 +172,40 @@ module Redmine per_page_links = false if count.nil? page_param = paginator.page_param - html = '' + html = '