Skip to content

Commit

Permalink
Edit link page
Browse files Browse the repository at this point in the history
  • Loading branch information
ego008 committed Jun 11, 2024
1 parent 78b263f commit f850116
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 52 deletions.
30 changes: 20 additions & 10 deletions views/admin/link.qtpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,26 @@

<h2>链接列表</h2>

<ul>
<li class="bot-line">
ID - Name - Score - Url
</li>
{% for _, v := range p.LinkLst %}
<li class="bot-line">
{%dul v.ID %} - <a href="/admin/link?id={%dul v.ID %}">{%s v.Name %}</a> - {%d v.Score %} - {%s v.Url %}
</li>
{% endfor %}
</ul>
<table class="pure-table">
<thead>
<tr>
<th>#ID</th>
<th>Name</th>
<th>Score</th>
<th>URL</th>
</tr>
</thead>
<tbody>
{% for i, v := range p.LinkLst %}
<tr {% if i%2 == 0 %}class="pure-table-odd"{% endif %}>
<td>{%dul v.ID %}</td>
<td><a href="/admin/link?id={%dul v.ID %}">{%s v.Name %}</a></td>
<td>{%d v.Score %}</td>
<td>{%s v.Url %}</td>
</tr>
{% endfor %}
</tbody>
</table>

</div>
</div>
Expand Down
102 changes: 60 additions & 42 deletions views/admin/link.qtpl.go

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

0 comments on commit f850116

Please sign in to comment.