We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 036e795 + 9eca9f9 commit 5c4e6c9Copy full SHA for 5c4e6c9
2 files changed
app/helpers/topics_helper.rb
@@ -4,7 +4,4 @@ def render_topic_title(topic)
4
link_to(topic.title,topic.relative_url)
5
end
6
7
- def render_topic_next_page_link(topic, next_page)
8
- link_to("next page", "#{topic.relative_url}?page=#{next_page}")
9
- end
10
app/views/topics/show.html.erb
@@ -1,5 +1,5 @@
1
<h2>
2
- <a href="<%= @topic_view.relative_url %>"><%= @topic_view.title %></a>
+ <%= render_topic_title(@topic_view.topic) %>
3
</h2>
<hr/>
@@ -15,7 +15,7 @@
15
16
<% if @topic_view.next_page %>
17
<p>
18
- <a href="<%= @topic_view.next_page_path %>">next page →</a>
+ <b><%= link_to("next page →", @topic_view.next_page_path ) %></b>
19
</p>
20
<% end %>
21
0 commit comments