Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Qpixel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Answers
Qpixel
Commits
dee1a846
Commit
dee1a846
authored
Dec 14, 2020
by
ArtOfCode-
Browse files
Options
Downloads
Patches
Plain Diff
Rename
parent
1090e82c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/views/posts/_expanded.html.erb
+1
-1
1 addition, 1 deletion
app/views/posts/_expanded.html.erb
with
1 addition
and
1 deletion
app/views/posts/_expanded.html.erb
+
1
−
1
View file @
dee1a846
...
@@ -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?
%>
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment