- 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:
Alexandrina-Kuzeleva
2025-11-10 17:28:26 +03:00
parent 25c640fabb
commit d827a10c84
5 changed files with 151 additions and 4 deletions
+1 -1
View File
@@ -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
View File
@@ -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"