mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
use link_to to replace a href
This commit is contained in:
parent
3047d8afa3
commit
b609060455
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<h2>
|
||||
<a href="<%= @topic_view.topic.relative_url %>"><%= @topic_view.topic.title %></a>
|
||||
<%= link_to(@topic_view.topic.title, @topic_view.topic.relative_url) %>
|
||||
</h2>
|
||||
<% (@post ? [@post] : @topic_view.posts).each do |post| %>
|
||||
<div class='creator'>
|
||||
|
@ -12,7 +12,7 @@
|
|||
|
||||
<% if @next_page%>
|
||||
<p>
|
||||
<b><a href="<%= @topic_view.topic.relative_url %>?page=<%= @next_page%>">next page</a></b>
|
||||
<b><%= link_to("next page", @topic_view.topic.relative_url + "?page=" + @next_page ) %></b>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
|
|
Loading…
Reference in a new issue