UPD 3
- checked and fixed problems: timer in lesson, sing-up, page length in courses - add Points and Courses in ProfileAbout NEW: - add icon for RuTube
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ doc_events = {
|
||||
"Notification Log": {"on_change": "lms.lms.utils.publish_notifications"},
|
||||
"User": {
|
||||
"validate": "lms.lms.user.validate_username_duplicates",
|
||||
"after_insert": "lms.lms.user.after_insert",
|
||||
#"after_insert": "lms.lms.user.after_insert",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -180,6 +180,7 @@ def get_lesson_icon(body, content):
|
||||
|
||||
if block.get("type") == "embed" and block.get("data").get("service") in [
|
||||
"youtube",
|
||||
"rutube",
|
||||
"vimeo",
|
||||
"cloudflareStream",
|
||||
"bunnyStream",
|
||||
@@ -193,7 +194,7 @@ def get_lesson_icon(body, content):
|
||||
|
||||
macros = find_macros(body)
|
||||
for macro in macros:
|
||||
if macro[0] == "YouTubeVideo" or macro[0] == "Video":
|
||||
if macro[0] == "YouTubeVideo" or macro[0] == "Video" or macro[0] == "RuTubeVideo" :
|
||||
return "icon-youtube"
|
||||
elif macro[0] == "Quiz":
|
||||
return "icon-quiz"
|
||||
|
||||
Reference in New Issue
Block a user