-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
GitHub
committed
Jan 29, 2024
1 parent
164467e
commit b0d7a13
Showing
7 changed files
with
164 additions
and
36 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% block content %} | ||
<div class="box content"> | ||
<div class="columns is-multiline"> | ||
{% for img in imgs %} | ||
<div class="column is-one-third"> | ||
<figure> | ||
<p class="image is-32x32 is-hidden-mobile"> | ||
<a href="/gallery/{{img.0}}"><img src="/static/avatars/{{img.0}}.png"></a> | ||
</p> | ||
<a href="/static/upload/{{img.2}}" target="_blank"><img src="/static/upload/{{img.2}}"></a> | ||
<figcaption> | ||
<code>{{img.2}}</code> | ||
</figcaption> | ||
</figure> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
|
||
<div class="divider"></div> | ||
|
||
<nav class="pagination"> | ||
{% if anchor < n %} | ||
<a class="pagination-previous" disabled>Prev</a> | ||
{% else %} | ||
<a class="pagination-previous" href="/admin/gallery?anchor={{anchor - n}}&is_desc={{is_desc}}">Prev</a> | ||
{% endif %} | ||
|
||
{% if imgs.len() < n %} | ||
<a class="pagination-next" disabled >Next</a> | ||
{% else %} | ||
<a class="pagination-next" href="/admin/gallery?anchor={{anchor + n}}&is_desc={{is_desc}}">Next</a> | ||
{% endif %} | ||
</nav> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters