1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-22 11:41:27 +08:00
koogua a7f197c01b !6 develop->master 1.1.0
* 更新版本号
* 完善后台今日统计,增加权限白名单,增加后台首页菜单,调整后台登录页样式
* Merge branch 'koogua/I1XFCF' of https://gitee.com/koogua/course-tencen…
* 前台学习资料部分完成
* !2 后台运营统计合并
* 后台学习资料部分完成
* Merge branch 'master' into develop
* Merge branch 'master' of https://github.com/xiaochong0302/course-tencent-cloud
* 1.增加changelog.md
* 1.简化部分路由地址
* Merge pull request #2 from xiaochong0302/dependabot/composer/symfony/h…
* Bump symfony/http-foundation from 4.3.4 to 5.1.6
2020-10-08 18:44:06 +08:00

59 lines
1.5 KiB
Plaintext

{% extends 'templates/main.volt' %}
{% block content %}
{%- macro client_type_info(value) %}
{% if value == 1 %}
desktop
{% elseif value == 2 %}
mobile
{% elseif value == 3 %}
app
{% elseif value == 4 %}
小程序
{% endif %}
{%- endmacro %}
<table class="layui-table kg-table">
<colgroup>
<col>
<col>
<col>
<col>
<col>
</colgroup>
<thead>
<tr>
<th>课时信息</th>
<th>终端信息</th>
<th>学习时长</th>
<th>活跃时间</th>
</tr>
</thead>
<tbody>
{% for item in pager.items %}
<tr>
<td>
<p class="layui-elip">课程:{{ item.course.title }}</p>
<p class="layui-elip">章节:{{ item.chapter.title }}</p>
</td>
<td>
<p>类型:{{ client_type_info(item.client_type) }}</p>
<p>地址:<a href="javascript:" class="kg-ip2region" title="查看位置" data-ip="{{ item.client_ip }}">{{ item.client_ip }}</a></p>
</td>
<td>{{ item.duration|duration }}</td>
<td>{{ date('Y-m-d H:i:s',item.active_time) }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{{ partial('partials/pager') }}
{% endblock %}
{% block include_js %}
{{ js_include('admin/js/ip2region.js') }}
{% endblock %}