From 1f58dd754582111bd7a68d6aa5f6d3fe11566bba Mon Sep 17 00:00:00 2001 From: decabeza Date: Tue, 19 Sep 2017 20:36:57 +0200 Subject: [PATCH 1/2] removes hash comment id on comment replies link --- app/views/comments/_comment.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index 0000f8cc0..e3880e320 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -72,7 +72,7 @@ <% if comment.children.size > 0 %> - <%= link_to "#{dom_id(comment)}", class: "js-toggle-children relative", data: {'id': "#{dom_id(comment)}"} do %> + <%= link_to "", class: "js-toggle-children relative", data: {'id': "#{dom_id(comment)}"} do %> <%= t("shared.hide") %> <%= t("comments.comment.responses", count: comment.children.size) %> From 73b61e8596eb1909039d667867432a07f88bed25 Mon Sep 17 00:00:00 2001 From: decabeza Date: Tue, 19 Sep 2017 20:38:08 +0200 Subject: [PATCH 2/2] adds and removes spaces :neckbeard: --- app/views/comments/_comment.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index e3880e320..8d45b5469 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -26,9 +26,9 @@
<% if comment.as_administrator? %> - <%= t("comments.comment.admin") %> #<%= comment.administrator_id%> + <%= t("comments.comment.admin") %> #<%= comment.administrator_id %> <% elsif comment.as_moderator? %> - <%= t("comments.comment.moderator") %> #<%= comment.moderator_id%> + <%= t("comments.comment.moderator") %> #<%= comment.moderator_id %> <% else %> <% if comment.user.hidden? || comment.user.erased? %> @@ -72,7 +72,7 @@
<% if comment.children.size > 0 %> - <%= link_to "", class: "js-toggle-children relative", data: {'id': "#{dom_id(comment)}"} do %> + <%= link_to "", class: "js-toggle-children relative", data: {'id': "#{dom_id(comment)}"} do %> <%= t("shared.hide") %> <%= t("comments.comment.responses", count: comment.children.size) %>