diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index af480e0..26aee6a 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -68,6 +68,6 @@ module ApplicationHelper ago.gsub!(/^about /, "") end - raw(label_tag(nil, ago, :title => time.strftime("%F %T %z"))) + raw(label_tag(nil, "#{ago} ago", :title => time.strftime("%F %T %z"))) end end diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index d5f8c09..0391417 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -62,7 +62,7 @@ class="comment <%= comment.current_vote ? (comment.current_vote[:vote] == 1 ? e-mailed <% end %> <%= time_ago_in_words_label((comment.has_been_edited? ? - comment.updated_at : comment.created_at), :strip_about => true) %> ago + comment.updated_at : comment.created_at), :strip_about => true) %> <% end %> <% if !comment.previewing %> diff --git a/app/views/messages/index.html.erb b/app/views/messages/index.html.erb index cf1bd3c..046c95b 100644 --- a/app/views/messages/index.html.erb +++ b/app/views/messages/index.html.erb @@ -42,7 +42,7 @@ <%= message.recipient.username %> <% end %> - <%= time_ago_in_words_label(message.created_at) %> ago + <%= time_ago_in_words_label(message.created_at) %> <%= message.subject %> diff --git a/app/views/stories/_form.html.erb b/app/views/stories/_form.html.erb index d0c51ca..872f1f3 100644 --- a/app/views/stories/_form.html.erb +++ b/app/views/stories/_form.html.erb @@ -1,7 +1,7 @@ <% if f.object.errors.count == 1 && f.object.already_posted_story %>

Error: This story was already submitted <%= - time_ago_in_words(f.object.already_posted_story.created_at) %> ago

+ time_ago_in_words(f.object.already_posted_story.created_at) %>

Please view the previous discussion for this story. @@ -12,7 +12,7 @@ <% elsif !f.object.errors.any? && f.object.already_posted_story %>

Note: This story was already submitted <%= - time_ago_in_words(f.object.already_posted_story.created_at) %> ago, but may + time_ago_in_words(f.object.already_posted_story.created_at) %>, but may be submitted again.

Please view the ms.html_class_for_user(@user) %>"><%= ms.user.username %> <%= time_ago_in_words_label(ms.created_at, :strip_about => true) %> - ago <% end %> <% end %> @@ -106,7 +105,6 @@ class="story <%= story.vote && story.vote[:vote] == 1 ? "upvoted" : "" %> story.html_class_for_user(@user) %>"><%= story.user.username %> <%= time_ago_in_words_label(story.created_at, :strip_about => true) %> - ago <% if story.is_editable_by_user?(@user) %> | diff --git a/app/views/stories/show.html.erb b/app/views/stories/show.html.erb index 7745cc6..d88eb91 100644 --- a/app/views/stories/show.html.erb +++ b/app/views/stories/show.html.erb @@ -12,7 +12,7 @@ <% if @story.is_unavailable && @story.story_cache.present? %> Source URL considered unavailable as of <%= - time_ago_in_words_label(@story.unavailable_at) %> ago, cached text + time_ago_in_words_label(@story.unavailable_at) %>, cached text available

diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index a91f47a..d694edb 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -38,7 +38,7 @@ - <%= time_ago_in_words_label(@showing_user.created_at) %> ago + <%= time_ago_in_words_label(@showing_user.created_at) %> <% if @showing_user.invited_by_user %> by invitation from <%= link_to @showing_user.invited_by_user.try(:username), @@ -50,7 +50,7 @@ <% if @showing_user.is_banned? %> - <%= time_ago_in_words_label(@showing_user.banned_at) %> ago + <%= time_ago_in_words_label(@showing_user.banned_at) %> <% if @showing_user.banned_by_user %> by <%= link_to @showing_user.banned_by_user.try(:username), @showing_user.banned_by_user %>: @@ -73,7 +73,7 @@ <% if @showing_user.deleted_at? %> - <%= time_ago_in_words_label(@showing_user.deleted_at) %> ago + <%= time_ago_in_words_label(@showing_user.deleted_at) %>
<% end %>