refactor: renamed app to school
This commit is contained in:
19
school/lms/widgets/CourseTeaser.html
Normal file
19
school/lms/widgets/CourseTeaser.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<div class="course-teaser">
|
||||
<div class="course-body">
|
||||
<h3 class="course-title"><a href="/courses/{{ course.name }}">{{ course.title }}</a></h3>
|
||||
<div class="course-intro">
|
||||
{{ course.short_introduction or "" }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="course-footer">
|
||||
{% set batch = course.get_student_batch(frappe.session.user) %}
|
||||
{% if batch %}
|
||||
<a class="btn btn-secondary pull-right" href="/courses/{{course.name}}/{{batch.name}}/learn">Resume Course</a>
|
||||
{% endif %}
|
||||
<div class="course-author">
|
||||
{% with author = course.get_instructor() %}
|
||||
{{ widgets.Avatar(member=author, avatar_class="avatar-medium") }} <a href="{{get_profile_url(author.username)}}">{{ author.full_name }}</a>
|
||||
{% endwith %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user