summaryrefslogtreecommitdiff
path: root/templates/image.hbs
diff options
context:
space:
mode:
Diffstat (limited to 'templates/image.hbs')
-rw-r--r--templates/image.hbs35
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>