diff --git a/app/views/topics/plain.html.erb b/app/views/topics/plain.html.erb index f97da59856..93e94d2f09 100644 --- a/app/views/topics/plain.html.erb +++ b/app/views/topics/plain.html.erb @@ -3,22 +3,32 @@
- <%= link_to(t('next_page').html_safe, @topic_view.next_page_path ) %> -
-<% end %> ++ <% if @topic_view.prev_page %> + <%= link_to t(:prev_page), @topic_view.prev_page_path, rel: 'prev' %> + <% end %> + <% if @topic_view.next_page %> + <%= link_to t(:next_page), @topic_view.next_page_path, rel: 'next' %> + <% end %> +
diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index e4eaf680db..d18069c5b4 100644 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -6,7 +6,7 @@ <% @topic_view.posts.each do |post| %> <% if post.user %>