mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-07-02 23:16:49 +08:00
56 lines
2.1 KiB
Plaintext
56 lines
2.1 KiB
Plaintext
{% extends 'templates/full.volt' %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="layout-main">
|
|
<div class="my-sidebar">{{ partial('my/menu') }}</div>
|
|
<div class="my-content">
|
|
<div class="wrap">
|
|
<div class="my-nav-title">我的课程</div>
|
|
{% if pager.total_pages > 0 %}
|
|
<table class="layui-table" lay-size="lg">
|
|
<colgroup>
|
|
<col>
|
|
<col>
|
|
<col>
|
|
<col width="15%">
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th>课程</th>
|
|
<th>进度</th>
|
|
<th>过期时间</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in pager.items %}
|
|
{% set course_url = url({'for':'web.course.show','id':item.course.id}) %}
|
|
{% set review_url = url({'for':'web.review.add'},{'id':item.course.id}) %}
|
|
<tr>
|
|
<td><a href="{{ course_url }}">{{ item.course.title }}</a></td>
|
|
<td>
|
|
<p>用时:{{ item.duration|duration }}</p>
|
|
<p>进度:{{ item.progress }}%</p>
|
|
</td>
|
|
<td>{{ date('Y-m-d', item.expiry_time) }}</td>
|
|
<td>
|
|
<button class="layui-btn layui-btn-sm btn-add-review" data-url="{{ review_url }}">评价</button>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{{ partial('partials/pager') }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
{% block include_js %}
|
|
|
|
{{ js_include('web/js/my.js') }}
|
|
|
|
{% endblock %} |