Merge pull request #119 from xdite/refactor_topic_view

Refactor topic view
This commit is contained in:
Robin Ward
2013-02-11 10:30:30 -08:00
2 changed files with 13 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
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