-
Notifications
You must be signed in to change notification settings - Fork 6
/
file.html
54 lines (39 loc) · 1.4 KB
/
file.html
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{% extends 'base.html' %}
{% block title %}{{ file.title }}{% endblock %}
{% block head %}
<meta content="width=device-width, initial-scale=1.0, maximum-scale=5, user-scalable=yes" name="viewport">
{% endblock %}
{% set next_one = get_connected_one('>') %}
{% set pre_one = get_connected_one('<') %}
{% block content %}
{{ bread_nav(file.path, '/folder/') }}
<div class="container80">
<div id="image">
<div class="info">
<span class="date">{{ file.date | date('%Y-%m-%d %H:%M') }}</span>
</div>
<img src="{{ file.url }}" />
<div class="connected_images">
{% if pre_one %}
<a href="/file/{{ pre_one.path }}" class="pre">
<span><{{ pre_one.title }}</span>
</a>
{% else %}
<a href="#pre_one" class="pre" id="pre_one">
<span><没有上一张了</span>
</a>
{% endif %}
{% if next_one %}
<a href="/file/{{ next_one.path }}" class="next">
<span>>{{ next_one.title }}</span>
</a>
{% else %}
<a href="#next_one" class="next" id="next_one">
<span>>没有下一张了</span>
</a>
{% endif %}
</div>
</div>
{% include 'include/comments.html' %}
</div>
{% endblock %}