mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
use render_topic_title to replace plain link_to
This commit is contained in:
6
app/helpers/topics_helper.rb
Normal file
6
app/helpers/topics_helper.rb
Normal file
@@ -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>
|
<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>
|
</h2>
|
||||||
<% (@post ? [@post] : @topic_view.posts).each do |post| %>
|
<% (@post ? [@post] : @topic_view.posts).each do |post| %>
|
||||||
<div class='creator'>
|
<div class='creator'>
|
||||||
|
|||||||
Reference in New Issue
Block a user