mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #153 from xdite/refactor_topic_show_again
use helper again
This commit is contained in:
@@ -4,7 +4,4 @@ module TopicsHelper
|
||||
link_to(topic.title,topic.relative_url)
|
||||
end
|
||||
|
||||
def render_topic_next_page_link(topic, next_page)
|
||||
link_to("next page", "#{topic.relative_url}?page=#{next_page}")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<h2>
|
||||
<a href="<%= @topic_view.relative_url %>"><%= @topic_view.title %></a>
|
||||
<%= render_topic_title(@topic_view.topic) %>
|
||||
</h2>
|
||||
<hr/>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
<% if @topic_view.next_page %>
|
||||
<p>
|
||||
<a href="<%= @topic_view.next_page_path %>">next page →</a>
|
||||
<b><%= link_to("next page →", @topic_view.next_page_path ) %></b>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user