blob: 2cb17084c75e9c6af35017c46371c94936c740bf (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<!DOCTYPE html>
<html>
<head>
<title>Kona - {{ orig_filename }}</title>
<link rel="stylesheet" type="text/css" href="/public/css/style.css">
<meta charset="UTF-8">
</head>
<body>
<header>
<h1><a href="/">Kona</a></h1>
</header>
<main>
<h2>{{ orig_filename }}</h2>
{{#if is_video}}
<video width="320" height="240" controls>
<source src="/image/{{filename}}">
Your browser does not support the video tag.
</video>
{{/if}}
{{#if is_image}}
<img src="/image/{{filename}}">
{{/if}}
{{#if is_unknown}}
<a href="/image/{{filename}}">Click here to view.</a>
{{/if}}
</main>
<aside id="tag-view">
<section id="search">
<h2>Search</h2>
<form id="search-box" method="GET" action="/posts">
<input id="tags" name="query" type="text" autocomplete="off">
<button id="search-box-submit" type="submit">Search</button>
</form>
</section>
<section id="tags">
<h2>Tags</h2>
<ul>
{{#each tags}}
<li><a href="/posts?query={{ . }}">{{ . }}</a></li>
{{/each}}
</ul>
<form id="update-prompt" method="POST" action="/api/posts/{{id}}">
<input id="tags" name="tags" type="text">
<button id="search-box-submit" type="submit">Add Tags</button>
</form>
</section>
</aside>
</body>
</html>
|