aboutsummaryrefslogtreecommitdiff
path: root/bgstack15-gallery-theme/templates/media.html
blob: bf56663d4128d207a1f1b7a76186048a48aa4be3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{% extends "base.html" %}
{% block content %}
  <header>
    {% if album.breadcrumb %}
    <h2>
      {% for url, title in album.breadcrumb %}
      <a href="{{ url }}">{{ title }}</a> »
      {% endfor -%}
      <a href="#">{{ media.title }}</a>
    </h2>
    <hr>
    {% endif %}
  </header>

  {% if media %}
  <div class="thumbnail">
    {% if media.type == "image" %}
      <img src="{{ media.url }}" alt="{{ media.title }}" title="{{ media.title }}" />
      <p>{{ media.title }}</p>
    {% endif %}
    {% if media.type == "video" %}
      <video controls>
        <source src='{{ media.url }}' type='video/webm' />
      </video>
    {% endif %}

    <p>
      {% if previous_media %}
      <a href="{{ previous_media.url }}.html">« previous</a>
      {% endif %}
      {% if next_media %}
      <a href="{{ next_media.url }}.html">next »</a>
      {% endif %}
    </p>
  </div>
  {% endif %}
{% endblock %}
bgstack15