diff --git a/community/hooks.py b/community/hooks.py index e2d768dc..8026dd8f 100644 --- a/community/hooks.py +++ b/community/hooks.py @@ -141,6 +141,7 @@ website_route_rules = [ {"from_route": "/courses//learn/.", "to_route": "batch/learn"}, {"from_route": "/courses//progress", "to_route": "batch/progress"}, {"from_route": "/courses//join", "to_route": "batch/join"}, + {"from_route": "/users", "to_route": "profiles/profile"} ] website_redirects = [ @@ -150,6 +151,7 @@ website_redirects = [ update_website_context = [ 'community.widgets.update_website_context', ] + jinja = { "methods": [ "community.page_renderers.get_profile_url" diff --git a/community/lms/widgets/CourseCard.html b/community/lms/widgets/CourseCard.html index e73a46f2..03fd49ed 100644 --- a/community/lms/widgets/CourseCard.html +++ b/community/lms/widgets/CourseCard.html @@ -40,7 +40,7 @@ +{% if course.video_link %} +{% endif %} {% endmacro%}