Skip to content
Snippets Groups Projects
Commit dee1a846 authored by ArtOfCode-'s avatar ArtOfCode-
Browse files

Rename

parent 1090e82c
Branches
Tags
No related merge requests found
...@@ -366,7 +366,7 @@ ...@@ -366,7 +366,7 @@
<% if is_question && post.children.length >= SiteSetting["TableOfContentsThreshold"] && SiteSetting["TableOfContentsThreshold"] != -1 %> <% if is_question && post.children.length >= SiteSetting["TableOfContentsThreshold"] && SiteSetting["TableOfContentsThreshold"] != -1 %>
<div class="toc has-margin-left-4" id="toc-toggle"> <div class="toc has-margin-left-4" id="toc-toggle">
<button class="toc--header" data-toggle="#toc-toggle" data-toggle-property="class" data-toggle-value="is-active">Show More</button> <button class="toc--header" data-toggle="#toc-toggle" data-toggle-property="class" data-toggle-value="is-active">Table of Contents</button>
<% sorted_answers = post.children.sort_by { |answer| answer.score }.reverse! %> <% sorted_answers = post.children.sort_by { |answer| answer.score }.reverse! %>
<% sorted_answers.each do |answer| %> <% sorted_answers.each do |answer| %>
<% next if answer.deleted? && !moderator? %> <% next if answer.deleted? && !moderator? %>
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment