Just what the world needs, another silly Rust re-write! But it was a good exercise in learning. There's a lot of messy things, which is why this is 0.2.0-pre.1. Going to make some cleaning passes after landing this.
This commit is contained in:
parent
94a5e30a8f
commit
9945b9eb7f
41 changed files with 2975 additions and 1376 deletions
52
resources/skel/_templates/album.html
Normal file
52
resources/skel/_templates/album.html
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% if root_path %}
|
||||
<h1>
|
||||
{% for crumb in breadcrumbs %}
|
||||
<a href="{{crumb.path}}">{{crumb.name}}</a> /
|
||||
{% endfor %}
|
||||
{{name}}
|
||||
</h1>
|
||||
<hr>
|
||||
{% endif %}
|
||||
|
||||
{% if description %}
|
||||
<div class="caption">
|
||||
{{ description | safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if children %}
|
||||
<h2>Albums</h2>
|
||||
<div id="album-children">
|
||||
{% for child in children %}
|
||||
<div class="album">
|
||||
<a href="{{child.name}}/">
|
||||
<div>
|
||||
<img
|
||||
src="{{child.cover_thumbnail_path}}" />
|
||||
</div>
|
||||
<div>
|
||||
{{child.name}}
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if images %}
|
||||
{% if children %}
|
||||
<h2>Photos</h2>
|
||||
{% endif %}
|
||||
<div id="album-photos">
|
||||
{% for image in images %}
|
||||
<div class="thumbnail">
|
||||
<a href="slides/{{image.html_filename}}">
|
||||
<img src="slides/{{image.thumb_filename}}" />
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue