fix: profile urls
This commit is contained in:
@@ -141,6 +141,7 @@ website_route_rules = [
|
||||
{"from_route": "/courses/<course>/learn/<int:chapter>.<int:lesson>", "to_route": "batch/learn"},
|
||||
{"from_route": "/courses/<course>/progress", "to_route": "batch/progress"},
|
||||
{"from_route": "/courses/<course>/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"
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<div {% if not read_only %} class="mb-4" {% endif %}>
|
||||
<span class="zindex">
|
||||
{{ widgets.Avatar(member=course.get_instructor(), avatar_class="avatar-small") }}
|
||||
<a class="button-links" href="/users/{{ course.get_instructor().username}}">
|
||||
<a class="button-links" href="{{ get_profile_url(course.get_instructor().username) }}">
|
||||
<span class="course-instructor">
|
||||
{{ course.get_instructor().full_name }}
|
||||
</span>
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if course.video_link %}
|
||||
<div class="modal fade preview-modal" id="video-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
@@ -92,6 +93,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endmacro%}
|
||||
|
||||
<!-- Course Outline and Creator -->
|
||||
|
||||
Reference in New Issue
Block a user