diff --git a/app/assets/javascripts/application.js.erb b/app/assets/javascripts/application.js.erb index 914aa7e..0b9b828 100644 --- a/app/assets/javascripts/application.js.erb +++ b/app/assets/javascripts/application.js.erb @@ -296,7 +296,6 @@ $(document).ready(function() { $(document).on("click", "a.comment_folder", function() { $(this).addClass("comment_unfolder").removeClass("comment_folder"); - $(this).text("unfold"); var comment = $(this).closest(".comment"); comment.nextAll(".comments").each(function() { $(this).addClass("collapsed"); @@ -305,7 +304,6 @@ $(document).ready(function() { $(document).on("click", "a.comment_unfolder", function() { $(this).addClass("comment_folder").removeClass("comment_unfolder"); - $(this).text("fold"); var comment = $(this).closest(".comment"); comment.nextAll(".comments").each(function() { $(this).removeClass("collapsed"); diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 503c683..505cd2e 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -526,6 +526,18 @@ li .domain { vertical-align: middle; } +li .comment_folder:before, +li .comment_unfolder:before { + font-size: 9pt; + letter-spacing: 0.1em; +} +li .comment_folder:before { + content: "[-]"; +} +li .comment_unfolder:before { + content: "[+]"; +} + li .byline { color: #888; font-size: 8.5pt; diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index efbaca4..bd429f5 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -26,6 +26,10 @@ class="comment <%= comment.current_vote ? (comment.current_vote[:vote] == 1 ?
+ <% if @user %> + + <% end %> + <% if defined?(was_merged) && was_merged %> <% end %> @@ -63,11 +67,6 @@ class="comment <%= comment.current_vote ? (comment.current_vote[:vote] == 1 ? | link - <% if @user %> - | - fold - <% end %> - <% if comment.is_editable_by_user?(@user) %> | edit