File tree 2 files changed +14
-7
lines changed
exercise/templates/exercise
2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 93
93
{% if is_course_staff %}
94
94
< li >
95
95
< p class ="navbar-text navbar-btn ">
96
- {% if submission %}
96
+ {% if submission and not disable_staff_nav %}
97
97
< a href ="{{ submission|url:'submission-inspect' }} " role ="button " class ="aplus-button--secondary aplus-button--xs ">
98
98
< span class ="glyphicon glyphicon-zoom-in " aria-hidden ="true "> </ span >
99
99
{% translate "INSPECT_SUBMISSION" %}
100
100
</ a >
101
- {% elif is_teacher %}
101
+ {% elif is_teacher and not disable_staff_nav %}
102
102
{% load editcourse %}
103
103
< a href ="{{ exercise|editurl:'exercise' }} " role ="button " class ="aplus-button--secondary aplus-button--xs ">
104
104
< span class ="glyphicon glyphicon-edit " aria-hidden ="true "> </ span >
105
105
{% translate "EDIT_EXERCISE" %}
106
106
</ a >
107
107
{% endif %}
108
- {% if is_teacher or exercise.allow_assistant_viewing %}
109
- < a href ="{{ exercise|url:'submission-list' }} " role ="button " class ="aplus-button--secondary aplus-button--xs ">
110
- < span class ="glyphicon glyphicon-list " aria-hidden ="true "> </ span >
111
- {% translate "VIEW_ALL_SUBMISSIONS" %}
112
- </ a >
108
+ {% if not disable_staff_nav %}
109
+ {% if is_teacher or exercise.allow_assistant_viewing %}
110
+ < a href ="{{ exercise|url:'submission-list' }} " role ="button " class ="aplus-button--secondary aplus-button--xs ">
111
+ < span class ="glyphicon glyphicon-list " aria-hidden ="true "> </ span >
112
+ {% translate "VIEW_ALL_SUBMISSIONS" %}
113
+ </ a >
114
+ {% endif %}
113
115
{% endif %}
114
116
</ p >
115
117
</ li >
Original file line number Diff line number Diff line change @@ -128,6 +128,11 @@ def parse_lti_session_params(self):
128
128
)
129
129
self .message_launch_data = self .message_launch .get_launch_data ()
130
130
131
+ def get_common_objects (self ):
132
+ super ().get_common_objects ()
133
+ self .disable_staff_nav = True
134
+ self .note ("disable_staff_nav" )
135
+
131
136
132
137
class LtiInstanceView (LtiSessionMixin , InstanceView ):
133
138
You can’t perform that action at this time.
0 commit comments