1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-26 20:52:44 +08:00
2023-12-06 20:24:09 +08:00

48 lines
1.8 KiB
Plaintext

{% extends 'templates/main.volt' %}
{% block content %}
{{ partial('macros/course') }}
<div class="layout-main">
<div class="my-sidebar">{{ partial('teacher/console/menu') }}</div>
<div class="my-content">
<div class="wrap">
<div class="my-nav">
<span class="title">我的课程</span>
</div>
{% if pager.total_pages > 0 %}
<table class="layui-table" lay-size="lg" lay-skin="line">
<colgroup>
<col>
<col>
<col>
<col>
</colgroup>
<thead>
<tr>
<th>标题</th>
<th>类型</th>
<th>学员</th>
<th>评分</th>
</tr>
</thead>
<tbody>
{% for item in pager.items %}
{% set course_url = url({'for':'home.course.show','id':item.id}) %}
<tr>
<td><a href="{{ course_url }}">{{ item.title }}</a></td>
<td><span class="layui-badge layui-bg-green">{{ model_type(item.model) }}</span></td>
<td>{{ item.user_count }}</td>
<td>{{ "%0.1f"|format(item.rating) }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{{ partial('partials/pager') }}
{% endif %}
</div>
</div>
</div>
{% endblock %}