render_topic_next_page_link

This commit is contained in:
xdite
2013-02-11 19:18:17 +08:00
parent 0f54dbb36e
commit 00883842f4
2 changed files with 6 additions and 2 deletions

View File

@ -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