Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed jumping to most recent post in topic list

  • Loading branch information...
commit da3acf6b209d5e74953291180f30fa5e7465443c 1 parent 138a738
@localhost localhost authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/views/forums/show.html.erb
View
2  app/views/forums/show.html.erb
@@ -79,7 +79,7 @@
<% if topic.last_user -%>
<%= I18n.t 'txt.by_user', :default => 'by {{user}}', :user => "<span class=\"author\"><strong class=\"fn\">#{h(topic.last_user.display_name)}</strong></span>" %>
<% end -%>
- <span><%= link_to I18n.t('txt.view', :default => 'view'), forum_topic_path(@forum, topic, :page => topic.last_page, :anchor => "posts-#{topic.last_post_id}") %></span>
+ <span><%= link_to I18n.t('txt.view', :default => 'view'), forum_topic_path(@forum, topic, :page => topic.last_page, :anchor => dom_id(topic.recent_post)) %></span>
</td>
</tr>
<% end %>

0 comments on commit da3acf6

Please sign in to comment.
Something went wrong with that request. Please try again.