mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
render_topic_next_page_link
This commit is contained in:
parent
0f54dbb36e
commit
00883842f4
2 changed files with 6 additions and 2 deletions
|
@ -3,4 +3,8 @@ module TopicsHelper
|
|||
def render_topic_title(topic)
|
||||
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,6 +1,6 @@
|
|||
<h2>
|
||||
<%= render_topic_title(@topic_view.topic) %>
|
||||
link_to(@topic_view.topic.title, @topic_view.topic.relative_url)
|
||||
|
||||
</h2>
|
||||
<% (@post ? [@post] : @topic_view.posts).each do |post| %>
|
||||
<div class='creator'>
|
||||
|
@ -13,7 +13,7 @@
|
|||
|
||||
<% if @next_page%>
|
||||
<p>
|
||||
<b><%= link_to("next page", @topic_view.topic.relative_url + "?page=" + @next_page ) %></b>
|
||||
<b><%= render_topic_next_page_link(@topic_view.topic, @next_page) %></b>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
|
|
Loading…
Reference in a new issue