Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx-platform
Commits
772908d7
Commit
772908d7
authored
Feb 02, 2015
by
Dino Cikatic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SOL-302 Hide reindex button if 'ENABLE_COURSEWARE_INDEX' false
parent
1b96a597
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
cms/djangoapps/contentstore/views/course.py
+1
-0
cms/templates/course_outline.html
+7
-5
No files found.
cms/djangoapps/contentstore/views/course.py
View file @
772908d7
...
...
@@ -504,6 +504,7 @@ def course_index(request, course_key):
'rerun_notification_id'
:
current_action
.
id
if
current_action
else
None
,
'course_release_date'
:
course_release_date
,
'settings_url'
:
settings_url
,
'reindex_button'
:
settings
.
FEATURES
.
get
(
'ENABLE_COURSEWARE_INDEX'
,
False
),
'notification_dismiss_url'
:
reverse_course_url
(
'course_notifications_handler'
,
current_action
.
course_key
,
...
...
cms/templates/course_outline.html
View file @
772908d7
...
...
@@ -68,11 +68,13 @@ from contentstore.utils import reverse_usage_url
<i
class=
"icon fa fa-plus"
></i>
${_('New Section')}
</a>
</li>
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"button button-reindex"
data-category=
"reindex"
title=
"${_('Reindex current course')}"
>
<i
class=
"icon-arrow-right"
></i>
${_('Reindex')}
</a>
</li>
%if reindex_button:
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"button button-reindex"
data-category=
"reindex"
title=
"${_('Reindex current course')}"
>
<i
class=
"icon-arrow-right"
></i>
${_('Reindex')}
</a>
</li>
%endif
<li
class=
"nav-item"
>
<a
href=
"#"
class=
"button button-toggle button-toggle-expand-collapse collapse-all is-hidden"
>
<span
class=
"collapse-all"
><i
class=
"icon fa fa-arrow-up"
></i>
<span
class=
"label"
>
${_("Collapse All Sections")}
</span></span>
...
...
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