Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
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
course-discovery
Commits
97c8ba82
Commit
97c8ba82
authored
Sep 19, 2017
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exposing publish button only to staff users
LEARNER-2473
parent
f917c9c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
course_discovery/apps/publisher/templates/publisher/course_run_detail/course_run_detail.html
+2
-0
No files found.
course_discovery/apps/publisher/templates/publisher/course_run_detail/course_run_detail.html
View file @
97c8ba82
...
@@ -49,7 +49,9 @@
...
@@ -49,7 +49,9 @@
</h2>
</h2>
</div>
</div>
{% if request.user.is_staff %}
<button
class=
"btn btn-primary"
onclick=
"publish('{% url 'publisher:api:v1:course_run-publish' pk=object.pk %}');"
>
{% trans "Publish" %}
</button>
<button
class=
"btn btn-primary"
onclick=
"publish('{% url 'publisher:api:v1:course_run-publish' pk=object.pk %}');"
>
{% trans "Publish" %}
</button>
{% endif %}
<div
class=
"alert hidden"
role=
"alert"
aria-labelledby=
"alertTitle"
tabindex=
"-1"
id=
"alertContainer"
style=
"margin:15px 0;"
>
<div
class=
"alert hidden"
role=
"alert"
aria-labelledby=
"alertTitle"
tabindex=
"-1"
id=
"alertContainer"
style=
"margin:15px 0;"
>
<span
class=
"icon alert-icon fa"
aria-hidden=
"true"
></span>
<span
class=
"icon alert-icon fa"
aria-hidden=
"true"
></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