浏览代码

a little logic for different resource types

joel
Simon Bowie 3 年前
父节点
当前提交
e3c6512db7
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      web/app/templates/tool.html

+ 2
- 0
web/app/templates/tool.html 查看文件

<div class="row"> <div class="row">
{% for resource in resources %} {% for resource in resources %}
<div class="col-md-4 col-sm-6 py-3"> <div class="col-md-4 col-sm-6 py-3">
{% if resource['type'] == 'practice' %}
<div class="card text-dark bg-warning mb-3"> <div class="card text-dark bg-warning mb-3">
<div class="card-body"> <div class="card-body">
<a href="{{ url_for('practice.show_practice', practice_id=resource['id']) }}"> <a href="{{ url_for('practice.show_practice', practice_id=resource['id']) }}">
</p> </p>
</div> </div>
</div> </div>
{% endif %}
</div> </div>
{% endfor %} {% endfor %}
</div> </div>

正在加载...
取消
保存