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
OpenEdx
edx-platform
Commits
07d08223
Commit
07d08223
authored
Sep 28, 2017
by
Matt Tuchfarber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove group creation and fix
parent
d322e326
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
.gitignore
+3
-0
lms/djangoapps/courseware/views/views.py
+0
-3
lms/templates/courseware/info.html
+1
-1
No files found.
.gitignore
View file @
07d08223
...
@@ -136,3 +136,5 @@ dist
...
@@ -136,3 +136,5 @@ dist
# Visual Studio Code
# Visual Studio Code
.vscode
.vscode
venv
\ No newline at end of file
lms/djangoapps/courseware/views/views.py
View file @
07d08223
...
@@ -1679,9 +1679,6 @@ def enter_chat(request, course_id):
...
@@ -1679,9 +1679,6 @@ def enter_chat(request, course_id):
rocketchat
=
RocketWrap
(
'apiuser'
,
'apipassword'
,
server_url
=
SERVER_DOMAIN
,
ssl_verify
=
False
)
rocketchat
=
RocketWrap
(
'apiuser'
,
'apipassword'
,
server_url
=
SERVER_DOMAIN
,
ssl_verify
=
False
)
full_name
=
lms_user
.
get_full_name
()
if
lms_user
.
get_full_name
()
else
"_"
full_name
=
lms_user
.
get_full_name
()
if
lms_user
.
get_full_name
()
else
"_"
if
not
rocketchat
.
get_group
(
course_id
):
rocketchat
.
create_new_group
(
course_id
)
rc_user
=
rocketchat
.
get_or_create_user
(
rc_user
=
rocketchat
.
get_or_create_user
(
lms_user
.
email
,
lms_user
.
email
,
full_name
,
full_name
,
...
...
lms/templates/courseware/info.html
View file @
07d08223
...
@@ -112,7 +112,7 @@ from openedx.core.djangolib.markup import HTML, Text
...
@@ -112,7 +112,7 @@ from openedx.core.djangolib.markup import HTML, Text
</div>
</div>
</div>
</div>
</main>
</main>
% if course._deprecated_per_instance_field_data._kvs._fields
['enable_rocket_chat']
% if course._deprecated_per_instance_field_data._kvs._fields
.get('enable_rocket_chat', None)
<script>
<script>
var
full_url
=
window
.
location
.
protocol
+
'//'
+
window
.
location
.
host
+
'/courses/${course_id}/chat'
;
var
full_url
=
window
.
location
.
protocol
+
'//'
+
window
.
location
.
host
+
'/courses/${course_id}/chat'
;
tab_list
=
document
.
querySelector
(
'.course-tabs'
);
tab_list
=
document
.
querySelector
(
'.course-tabs'
);
...
...
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