From c5731298fb219757ddd3f32c589e759cce4c3c4d Mon Sep 17 00:00:00 2001 From: albert Date: Tue, 19 Feb 2013 22:03:01 -0500 Subject: [PATCH] clarify post deletion/flag logic --- app/helpers/post_appeals_helper.rb | 2 +- app/helpers/post_flags_helper.rb | 2 +- app/views/artist_versions/index.html.erb | 2 +- app/views/forum_posts/index.html.erb | 2 +- .../_activity_user_feedback.html.erb | 2 +- app/views/moderator/post/queues/show.html.erb | 2 +- app/views/notes/index_by_note.html.erb | 2 +- .../posts/partials/show/_information.html.erb | 2 +- .../posts/partials/show/_notices.html.erb | 22 +++++++++++++------ app/views/user_feedbacks/index.html.erb | 2 +- app/views/users/index.html.erb | 2 +- app/views/wiki_page_versions/show.html.erb | 2 +- 12 files changed, 26 insertions(+), 18 deletions(-) diff --git a/app/helpers/post_appeals_helper.rb b/app/helpers/post_appeals_helper.rb index 218072c81..6274fc86c 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/helpers/post_flags_helper.rb b/app/helpers/post_flags_helper.rb index c86f58aee..9ca0aeb1b 100644 --- a/app/helpers/post_flags_helper.rb +++ b/app/helpers/post_flags_helper.rb @@ -10,7 +10,7 @@ module PostFlagsHelper html << ' - ' + link_to(flag.creator.name, user_path(flag.creator)) end - html << ' ' + time_ago_in_words_tagged(flag.created_at) + ' ago' + html << ' ' + time_ago_in_words_tagged(flag.created_at) + '' end html << '' diff --git a/app/views/artist_versions/index.html.erb b/app/views/artist_versions/index.html.erb index 484ea1621..90b84b199 100644 --- a/app/views/artist_versions/index.html.erb +++ b/app/views/artist_versions/index.html.erb @@ -21,7 +21,7 @@ <%= link_to h(artist_version.name), artist_versions_path(:artist_id => artist_version.artist_id) %> <%= h artist_version.other_names %> <%= h artist_version.group_name %> - <%= time_ago_in_words_tagged artist_version.created_at %> ago + <%= time_ago_in_words_tagged artist_version.created_at %> <%= link_to artist_version.updater_name, user_path(artist_version.updater_id) %> <%= artist_version.is_active? %> <%= artist_version.url_string %> diff --git a/app/views/forum_posts/index.html.erb b/app/views/forum_posts/index.html.erb index cedc4958e..9371e1d9b 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_tagged forum_post.created_at %> ago + <%= time_ago_in_words_tagged forum_post.created_at %> <% end %> diff --git a/app/views/moderator/dashboards/_activity_user_feedback.html.erb b/app/views/moderator/dashboards/_activity_user_feedback.html.erb index 1eeb22a71..d90078460 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_tagged(record.created_at) %> ago + <%= time_ago_in_words_tagged(record.created_at) %> <% end %> diff --git a/app/views/moderator/post/queues/show.html.erb b/app/views/moderator/post/queues/show.html.erb index ac276c3ed..8cd528975 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_tagged(post.created_at) %> ago
  • +
  • Uploader: <%= link_to(post.uploader.name, user_path(post.uploader_id)) %> <%= time_ago_in_words_tagged(post.created_at) %>
  • <% 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 93d9042d5..4a95c622d 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_tagged(note.created_at) %> ago + <%= time_ago_in_words_tagged(note.created_at) %> <%= note.is_active? %> <%= format_text(note.body) %> diff --git a/app/views/posts/partials/show/_information.html.erb b/app/views/posts/partials/show/_information.html.erb index 11c09685f..5751d59b1 100644 --- a/app/views/posts/partials/show/_information.html.erb +++ b/app/views/posts/partials/show/_information.html.erb @@ -1,6 +1,6 @@