From 5b2ee94765afa4c2af792f6efaac9c6297bcc493 Mon Sep 17 00:00:00 2001 From: kikito Date: Sun, 13 Sep 2015 12:32:27 +0200 Subject: [PATCH] removes all mentions of debates from comment views --- app/views/comments/_actions.html.erb | 2 +- app/views/comments/_comment.html.erb | 12 ++++++------ app/views/comments/_votes.html.erb | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/comments/_actions.html.erb b/app/views/comments/_actions.html.erb index 36ec42e01..80302a70a 100644 --- a/app/views/comments/_actions.html.erb +++ b/app/views/comments/_actions.html.erb @@ -11,7 +11,7 @@ <% if can? :hide, comment.user %>  •  - <%= link_to t("admin.actions.hide_author").capitalize, hide_moderation_user_path(comment.user_id, debate_id: @debate.id), + <%= link_to t("admin.actions.hide_author").capitalize, hide_moderation_user_path(comment.user_id), method: :put, data: { confirm: t('admin.actions.confirm') } %> <% end %> diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index 25d7585f3..ad56e6341 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -5,7 +5,7 @@ <% if comment.hidden? || comment.user.hidden? %> <% if select_children(@comments, comment).size > 0 %>
-

<%= t("debates.comment.deleted") %>

+

<%= t("comment.deleted") %>

<% end %> <% else %> @@ -28,13 +28,13 @@
<% if comment.as_administrator? %> - <%= t("debates.comment.admin") %> #<%= comment.administrator_id%> + <%= t("comment.admin") %> #<%= comment.administrator_id%> <% elsif comment.as_moderator? %> - <%= t("debates.comment.moderator") %> #<%= comment.moderator_id%> + <%= t("comment.moderator") %> #<%= comment.moderator_id%> <% else %> <% if comment.user.hidden? %> - <%= t("debates.comment.user_deleted") %> + <%= t("comment.user_deleted") %> <% else %> <%= comment.user.name %> <% if comment.user.official? %> @@ -53,7 +53,7 @@ <% if comment.user_id == @commentable.author_id %>  •  - <%= t("debates.comment.author") %> + <%= t("comment.author") %> <% end %> @@ -80,7 +80,7 @@
- <%= t("debates.comment.responses", count: select_children(@comments, comment).size) %> + <%= t("comment.responses", count: select_children(@comments, comment).size) %> <% if user_signed_in? %>  |  diff --git a/app/views/comments/_votes.html.erb b/app/views/comments/_votes.html.erb index 495837af6..6b4e7e718 100644 --- a/app/views/comments/_votes.html.erb +++ b/app/views/comments/_votes.html.erb @@ -1,5 +1,5 @@ - <%= t('debates.comment.votes', count: comment.total_votes) %> + <%= t('comment.votes', count: comment.total_votes) %>  |