Skip to content

Commit

Permalink
consistent date format :long
Browse files Browse the repository at this point in the history
displaying last post's title instead of date
  • Loading branch information
TomK32 authored and Sven Fuchs committed Jul 14, 2008
1 parent 30ac8e9 commit 7db21d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vendor/engines/adva_forum/app/helpers/forum_helper.rb
Expand Up @@ -9,7 +9,7 @@ def link_to_topic(*args)
def link_to_last_post(*args)
options = args.extract_options!
topic = args.pop
text = args.pop || topic.last_comment.created_at.strftime('%d.%m.%y %H:%M')
text = args.pop || topic.last_comment.created_at.to_s(:long)
options[:anchor] = dom_id(topic.last_comment)
options[:page] = topic.last_page if topic.last_page > 1
link_to text, topic_path(topic.section, topic.permalink, options)
Expand Down
4 changes: 2 additions & 2 deletions vendor/engines/adva_forum/app/views/forum/_topic.html.erb
Expand Up @@ -7,7 +7,7 @@
<%= topic.comments_count %>
</td>
<td>
<%= link_to_last_post(topic) %>
<%= topic.last_author_name %>
<%= link_to_last_post(topic.title, topic) %>
by <%= topic.last_author_name %>
</td>
</tr>
2 changes: 1 addition & 1 deletion vendor/engines/adva_forum/app/views/topics/_post.html.erb
@@ -1,7 +1,7 @@
<div class="entry clearing" id="<%= dom_id post %>">
<div class="meta">
<p>
<%= post.created_at.strftime('%d.%m.%y %H:%M') %>
<%= post.created_at.to_s(:long) %>
</p>
<p>
<%= gravatar_img post.author %>
Expand Down

0 comments on commit 7db21d8

Please sign in to comment.