mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-10 10:36:39 -07:00
Implement image display
This commit is contained in:
parent
97b9fbf46d
commit
c0ed59b2cd
19 changed files with 730 additions and 25 deletions
22
site/templates/images.hbs
Normal file
22
site/templates/images.hbs
Normal file
|
@ -0,0 +1,22 @@
|
|||
{{#if tag}}
|
||||
<h1>Images tagged {{tag}}</h1>
|
||||
<p><a href="/images/">View all images</a></p>
|
||||
{{else}}
|
||||
<h1>Images</h1>
|
||||
<p><a href="/i/tags">View image tags</a></p>
|
||||
{{/if}}
|
||||
<h3>Page {{page}}/{{page_max}}</h3>
|
||||
{{#if previous}}
|
||||
<a href="./{{previous}}">Previous page</a>
|
||||
{{/if}}
|
||||
{{#if next}}
|
||||
<a href="./{{next}}">Next page</a>
|
||||
{{/if}}
|
||||
<div class="images-list">
|
||||
{{#each images}}
|
||||
<a class="image" href="/i/{{id}}">
|
||||
<img class="image-actual" src="{{src}}" alt="{{alt}}">
|
||||
<span class="title">{{title}}</span>
|
||||
</a>
|
||||
{{/each}}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue