diff options
| author | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2020-05-28 19:58:23 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2020-05-28 19:58:23 -0400 |
| commit | c4939e02b80bf857419a257be316b5f87eae3445 (patch) | |
| tree | 132545095d855a3e55c5a7b997ef4bd9ade129ed /templates/image.hbs | |
| parent | 2d8035f4724f38875d0f29faa1069772d6aadb79 (diff) | |
Implement per-image information and display.
Diffstat (limited to 'templates/image.hbs')
| -rw-r--r-- | templates/image.hbs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/image.hbs b/templates/image.hbs new file mode 100644 index 0000000..8c3ceb6 --- /dev/null +++ b/templates/image.hbs @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html> +<head> + <title>бирка-тян - {{ orig_filename }}</title> + <link rel="stylesheet" type="text/css" href="/public/css/style.css"> + <meta charset="UTF-8"> +</head> +<body> + <header> + <h1><a href="/">бирка-тян</a></h1> + </header> + <main> + <h2>{{ orig_filename }}</h2> + <img src="/image/{{filename}}"> + </main> + <aside id="tag-view"> + <section id="search"> + <h2>Search</h2> + <form id="search-box" method="GET" action="/posts"> + <input id="tags" name="tags" 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?tags={{ . }}">{{ . }}</a></li> + {{/each}} + </ul> + </section> + </aside> +</body> +</html> |