Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cs_comments_service
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
cs_comments_service
Commits
88b0cd88
Commit
88b0cd88
authored
Apr 01, 2013
by
Kevin Chugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flagged search started
parent
6a27f7aa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lib/helpers.rb
+6
-0
No files found.
lib/helpers.rb
View file @
88b0cd88
...
@@ -107,6 +107,11 @@ helpers do
...
@@ -107,6 +107,11 @@ helpers do
end
end
def
handle_threads_query
(
comment_threads
)
def
handle_threads_query
(
comment_threads
)
if
params
[
:flagged
]
#get flagged threads and threads containing flagged responses
comment_threads
=
comment_threads
.
where
(
:course_id
=>
params
[
:course_id
]).
where
(
:abuse_flaggers
)
else
if
params
[
:course_id
]
if
params
[
:course_id
]
comment_threads
=
comment_threads
.
where
(
:course_id
=>
params
[
:course_id
])
comment_threads
=
comment_threads
.
where
(
:course_id
=>
params
[
:course_id
])
end
end
...
@@ -165,6 +170,7 @@ helpers do
...
@@ -165,6 +170,7 @@ helpers do
}.
to_json
}.
to_json
end
end
end
end
end
def
author_contents_only
(
contents
,
author_id
)
def
author_contents_only
(
contents
,
author_id
)
contents
.
map
do
|
content
|
contents
.
map
do
|
content
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment