use render_topic_title to replace plain link_to
This commit is contained in:
parent
b609060455
commit
0f54dbb36e
|
@ -0,0 +1,6 @@
|
|||
module TopicsHelper
|
||||
|
||||
def render_topic_title(topic)
|
||||
link_to(topic.title,topic.relative_url)
|
||||
end
|
||||
end
|
|
@ -1,5 +1,6 @@
|
|||
<h2>
|
||||
<%= link_to(@topic_view.topic.title, @topic_view.topic.relative_url) %>
|
||||
<%= 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'>
|
||||
|
|
Loading…
Reference in New Issue