feat: 新增技能扩展N7一章相关示例源码
This commit is contained in:
33
code/newsletter/N7/templates/web/user.html
Normal file
33
code/newsletter/N7/templates/web/user.html
Normal file
@@ -0,0 +1,33 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}
|
||||
{{ "User" }}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block body %}
|
||||
|
||||
<main>
|
||||
{% if users %}
|
||||
<p>Users: </p>
|
||||
<table class="data">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Id</th>
|
||||
<th scope="col">Name</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for user in users %}
|
||||
<tr scope="row">
|
||||
<td>{{ user.id }}</td>
|
||||
<td class="name">{{ user.name }}</td>
|
||||
</tr>
|
||||
{% endfor%}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<p>Whoops! Do you not seem to add any user?</p>
|
||||
{% endif%}
|
||||
</main>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user