diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index fce5e8e63..bf70ad6cc 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -62,6 +62,10 @@ module ApplicationHelper
content_tag(:time, content || datetime, :datetime => datetime, :title => time.to_formatted_s)
end
+ def time_ago_in_words_tagged(time)
+ time_tag(time_ago_in_words(time) + " ago", time)
+ end
+
def compact_time(time)
if time > Time.now.end_of_day
time_tag(time.strftime("%b %e, %Y"), time)
diff --git a/app/helpers/post_appeals_helper.rb b/app/helpers/post_appeals_helper.rb
index 956042eac..218072c81 100644
--- a/app/helpers/post_appeals_helper.rb
+++ b/app/helpers/post_appeals_helper.rb
@@ -4,7 +4,7 @@ module PostAppealsHelper
html << '
diff --git a/app/views/forum_posts/_forum_post.html.erb b/app/views/forum_posts/_forum_post.html.erb
index e328d34e4..014e4bdeb 100644
--- a/app/views/forum_posts/_forum_post.html.erb
+++ b/app/views/forum_posts/_forum_post.html.erb
@@ -7,7 +7,7 @@
<% end %>
- <%= time_ago_in_words(forum_post.created_at) %> ago
+ <%= time_ago_in_words_tagged(forum_post.created_at) %> ago
diff --git a/app/views/forum_posts/index.html.erb b/app/views/forum_posts/index.html.erb
index 1668bd907..cedc4958e 100644
--- a/app/views/forum_posts/index.html.erb
+++ b/app/views/forum_posts/index.html.erb
@@ -15,7 +15,7 @@
<%= link_to forum_post.topic.title, forum_topic_path(forum_post.topic) %> |
<%= link_to truncate(forum_post.body, :length => 50), forum_post_path(forum_post) %> |
<%= forum_post.creator.name %> |
-
<%= time_ago_in_words forum_post.created_at %> ago |
+
<%= time_ago_in_words_tagged forum_post.created_at %> ago |
<% end %>
diff --git a/app/views/janitor_trials/index.html.erb b/app/views/janitor_trials/index.html.erb
index 76fe6fe72..514f9cc37 100644
--- a/app/views/janitor_trials/index.html.erb
+++ b/app/views/janitor_trials/index.html.erb
@@ -14,7 +14,7 @@
<% @janitor_trials.each do |janitor_trial| %>
| <%= link_to janitor_trial.user.name, user_path(janitor_trial.user) %> |
- <%= time_ago_in_words janitor_trial.created_at %> |
+ <%= time_ago_in_words_tagged janitor_trial.created_at %> |
<%= link_to "Promote", promote_janitor_trial_path(janitor_trial), :remote => true, :method => :put %>
| <%= link_to "Demote", demote_janitor_trial_path(janitor_trial), :remote => true, :method => :put %>
diff --git a/app/views/moderator/dashboards/_activity_user_feedback.html.erb b/app/views/moderator/dashboards/_activity_user_feedback.html.erb
index 56547ed3d..1eeb22a71 100644
--- a/app/views/moderator/dashboards/_activity_user_feedback.html.erb
+++ b/app/views/moderator/dashboards/_activity_user_feedback.html.erb
@@ -12,7 +12,7 @@
|
| <%= link_to(record.user.name, user_path(record.user)) %> |
<%= format_text(record.body) %> |
- <%= time_ago_in_words(record.created_at) %> ago |
+ <%= time_ago_in_words_tagged(record.created_at) %> ago |
<% end %>
diff --git a/app/views/moderator/post/queues/show.html.erb b/app/views/moderator/post/queues/show.html.erb
index 46e6e5eab..ac276c3ed 100644
--- a/app/views/moderator/post/queues/show.html.erb
+++ b/app/views/moderator/post/queues/show.html.erb
@@ -42,7 +42,7 @@
(<%= post.image_width %>x<%= post.image_height %>)
<% end %>
-
Uploader: <%= link_to(post.uploader.name, user_path(post.uploader_id)) %> <%= time_ago_in_words(post.created_at) %> ago
+
Uploader: <%= link_to(post.uploader.name, user_path(post.uploader_id)) %> <%= time_ago_in_words_tagged(post.created_at) %> ago
<% if post.is_flagged? %>
Flagged: <%= post_flag_reasons(post) %>
<% end %>
diff --git a/app/views/notes/index_by_note.html.erb b/app/views/notes/index_by_note.html.erb
index b18c32b0b..93d9042d5 100644
--- a/app/views/notes/index_by_note.html.erb
+++ b/app/views/notes/index_by_note.html.erb
@@ -17,7 +17,7 @@
| <%= link_to note.post_id, post_path(note.post_id) %> |
<%= link_to note.creator.name, user_path(note.creator_id) %> |
- <%= time_ago_in_words(note.created_at) %> ago |
+ <%= time_ago_in_words_tagged(note.created_at) %> ago |
<%= note.is_active? %> |
<%= format_text(note.body) %> |
diff --git a/app/views/pool_versions/index.html.erb b/app/views/pool_versions/index.html.erb
index 56bc57f0c..59cbf81b1 100644
--- a/app/views/pool_versions/index.html.erb
+++ b/app/views/pool_versions/index.html.erb
@@ -26,7 +26,7 @@
<%= pool_version.updater_ip_addr %>
<% end %>
-
<%= time_ago_in_words pool_version.updated_at %> |
+
<%= time_ago_in_words_tagged pool_version.updated_at %> |
<%= link_to "Revert", revert_pool_path(pool_version.pool_id, :version => pool_version.id) %> |
<% end %>
diff --git a/app/views/posts/partials/show/_information.html.erb b/app/views/posts/partials/show/_information.html.erb
index 54b4755c0..507890f7d 100644
--- a/app/views/posts/partials/show/_information.html.erb
+++ b/app/views/posts/partials/show/_information.html.erb
@@ -1,6 +1,6 @@
- Uploader: <%= link_to_unless(post.uploader.nil?, post.uploader_name, user_path(post.uploader)) %>
- - Date:
+ - Date:
<% if post.approver %>
- Approver: <%= link_to(post.approver.name, user_path(post.approver_id)) %>
<% end %>
diff --git a/app/views/user_feedbacks/index.html.erb b/app/views/user_feedbacks/index.html.erb
index e4478bf17..397053538 100644
--- a/app/views/user_feedbacks/index.html.erb
+++ b/app/views/user_feedbacks/index.html.erb
@@ -18,7 +18,7 @@
<%= feedback.category %> |
<%= link_to feedback.user_name, user_feedback_path(feedback.user_id) %> |
<%= feedback.creator.name %> |
- <%= time_ago_in_words(feedback.created_at) %> ago |
+ <%= time_ago_in_words_tagged(feedback.created_at) %> ago |
<%= format_text(feedback.body) %> |
<% end %>
diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb
index 6ba15659f..515023994 100644
--- a/app/views/users/index.html.erb
+++ b/app/views/users/index.html.erb
@@ -46,7 +46,7 @@
<% end %>
<%= link_to user.note_versions.count, note_versions_path(:search => {:updater_id => user.id}) %> |
<%= user.level_string %> |
- <%= time_ago_in_words user.created_at %> ago |
+ <%= time_ago_in_words_tagged user.created_at %> ago |
<% end %>
diff --git a/app/views/wiki_page_versions/show.html.erb b/app/views/wiki_page_versions/show.html.erb
index ecb726104..ee698368c 100644
--- a/app/views/wiki_page_versions/show.html.erb
+++ b/app/views/wiki_page_versions/show.html.erb
@@ -3,7 +3,7 @@
<%= render "wiki_pages/sidebar" %>
- <%= @wiki_page_version.pretty_title %> (<%= time_ago_in_words(@wiki_page_version.updated_at) %> ago)
+ <%= @wiki_page_version.pretty_title %> (<%= time_ago_in_words_tagged(@wiki_page_version.updated_at) %> ago)
<%= format_text(@wiki_page_version.body) %>