aboutsummaryrefslogtreecommitdiff
path: root/client/html
diff options
context:
space:
mode:
authorrr-2016-07-06 09:49:21 +0200
committerrr-2016-07-08 00:08:44 +0200
commitcd1f4709f0c636c6cbcf62c90c7df0eb593c6c3c (patch)
tree3427cd55a1687fd330a5f02d13b6457fa6b3b7ee /client/html
parent6140872cd904ed031a9508a7644c02b6d91b00a9 (diff)
client/home: change apparance
Diffstat (limited to 'client/html')
-rw-r--r--client/html/home.tpl18
-rw-r--r--client/html/home_featured_post.tpl2
-rw-r--r--client/html/home_footer.tpl6
-rw-r--r--client/html/home_stats.tpl1
4 files changed, 12 insertions, 15 deletions
diff --git a/client/html/home.tpl b/client/html/home.tpl
index af899a9..f1d9b1c 100644
--- a/client/html/home.tpl
+++ b/client/html/home.tpl
@@ -2,23 +2,15 @@
<div class='messages'></div>
<header>
<h1><%- ctx.name %></h1>
- <aside class='stats-container'></aside>
</header>
<% if (ctx.canListPosts) { %>
<form class='horizontal'>
- <div class='input'>
- <%= ctx.makeButton({name: 'all-posts', value: 'Browse all posts'}) %>
- <span class='separator'>or</span>
- <%= ctx.makeTextInput({name: 'search-text', placeholder: 'enter some tags'}) %>
- </div>
- <div class='buttons'>
- <input type='submit' value='Search'/>
- </div>
+ <%= ctx.makeTextInput({name: 'search-text', placeholder: 'enter some tags'}) %>
+ <input type='submit' value='Search'/>
+ <span class=sep>or</span>
+ <a href='/posts'>browse all posts</a>
</form>
<% } %>
<div class='post-info-container'></div>
- <footer>
- Build <a class='version' href='https://github.com/rr-/szurubooru/commits/master'><%- ctx.version %></a>
- from <%= ctx.makeRelativeTime(ctx.buildDate) %>
- </footer>
+ <footer class='footer-container'></footer>
</div>
diff --git a/client/html/home_featured_post.tpl b/client/html/home_featured_post.tpl
index d5fb43e..90851d7 100644
--- a/client/html/home_featured_post.tpl
+++ b/client/html/home_featured_post.tpl
@@ -1,3 +1,4 @@
+<div class='post-container'></div>
<% if (ctx.featuredPost) { %>
<aside>
Featured post: <%= ctx.makePostLink(ctx.featuredPost.id) %>,
@@ -7,4 +8,3 @@
<%= ctx.makeUserLink(ctx.featuredPost.user) %>
</aside>
<% } %>
-<div class='post-container'></div>
diff --git a/client/html/home_footer.tpl b/client/html/home_footer.tpl
new file mode 100644
index 0000000..47d25e8
--- /dev/null
+++ b/client/html/home_footer.tpl
@@ -0,0 +1,6 @@
+<%- ctx.postCount %> posts
+<span class=sep>&bull;</span>
+<%= ctx.makeFileSize(ctx.diskUsage) %>
+<span class=sep>&bull;</span>
+Build <a class='version' href='https://github.com/rr-/szurubooru/commits/master'><%- ctx.version %></a>
+from <%= ctx.makeRelativeTime(ctx.buildDate) %>
diff --git a/client/html/home_stats.tpl b/client/html/home_stats.tpl
deleted file mode 100644
index cf2c379..0000000
--- a/client/html/home_stats.tpl
+++ /dev/null
@@ -1 +0,0 @@
-Serving <%- ctx.postCount %> posts (<%= ctx.makeFileSize(ctx.diskUsage) %>)

© 2015 - 2026 Jakob L. Kreuze