Skip to content

Commit

Permalink
Edit admin node page
Browse files Browse the repository at this point in the history
  • Loading branch information
ego008 committed May 16, 2024
1 parent 61ead7c commit 8c4d65e
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 53 deletions.
30 changes: 20 additions & 10 deletions views/admin/node.qtpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,27 @@
</form>

<h2>节点列表</h2>
<ul>
<li class="bot-line">
ID - Name - Score - About
</li>
{% for _, v := range p.NodeLst %}
<li class="bot-line">
{%dul v.ID %} - <a href="/admin/node?id={%dul v.ID %}">{%s v.Name %}</a> - {%d v.Score %} - {%s v.About %}
</li>
{% endfor %}
</ul>

<table class="pure-table">
<thead>
<tr>
<th>#ID</th>
<th>Name</th>
<th>Score</th>
<th>About</th>
</tr>
</thead>
<tbody>
{% for i, v := range p.NodeLst %}
<tr {% if i%2 == 0 %}class="pure-table-odd"{% endif %}>
<td>{%dul v.ID %}</td>
<td><a href="/admin/node?id={%dul v.ID %}">{%s v.Name %}</a></td>
<td>{%d v.Score %}</td>
<td>{%s v.About %}</td>
</tr>
{% endfor %}
</tbody>
</table>

</div>
</div>
Expand Down
104 changes: 61 additions & 43 deletions views/admin/node.qtpl.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8c4d65e

Please sign in to comment.