feat: added get_profile_url function to get the profile url in templates
This takes care of generating the correct profile URL depending on the `profile_url_prefix` setting. Issue #192
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
{% endif %}
|
||||
<div class="course-author">
|
||||
{% with author = course.get_instructor() %}
|
||||
{{ widgets.Avatar(member=author, avatar_class="avatar-medium") }} <a href="/user/{{author.username}}">{{ author.full_name }}</a>
|
||||
{{ widgets.Avatar(member=author, avatar_class="avatar-medium") }} <a href="{{get_profile_url(author.username)}}">{{ author.full_name }}</a>
|
||||
{% endwith %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user