From e0af5eff272e90b903eba501ace1605f2ec3e26f Mon Sep 17 00:00:00 2001
From: rr-
Date: Fri, 1 Apr 2016 10:24:04 +0200
Subject: [PATCH] front/general: rename .tpl to .hbs
---
scripts/build-frontend.js | 4 ++--
static/html/{help-about.tpl => help-about.hbs} | 2 +-
static/html/{help-comments.tpl => help-comments.hbs} | 0
static/html/{help-keyboard.tpl => help-keyboard.hbs} | 0
static/html/{help-search.tpl => help-search.hbs} | 0
static/html/{help-tos.tpl => help-tos.hbs} | 4 ++--
static/html/{help.tpl => help.hbs} | 0
static/html/{home.tpl => home.hbs} | 2 +-
static/html/{login.tpl => login.hbs} | 0
static/html/{top_nav.tpl => top_nav.hbs} | 0
.../{user_registration.tpl => user_registration.hbs} | 10 +++++-----
11 files changed, 11 insertions(+), 11 deletions(-)
rename static/html/{help-about.tpl => help-about.hbs} (92%)
rename static/html/{help-comments.tpl => help-comments.hbs} (100%)
rename static/html/{help-keyboard.tpl => help-keyboard.hbs} (100%)
rename static/html/{help-search.tpl => help-search.hbs} (100%)
rename static/html/{help-tos.tpl => help-tos.hbs} (94%)
rename static/html/{help.tpl => help.hbs} (100%)
rename static/html/{home.tpl => home.hbs} (69%)
rename static/html/{login.tpl => login.hbs} (100%)
rename static/html/{top_nav.tpl => top_nav.hbs} (100%)
rename static/html/{user_registration.tpl => user_registration.hbs} (81%)
diff --git a/scripts/build-frontend.js b/scripts/build-frontend.js
index 7ddf9543..fee4f4fa 100644
--- a/scripts/build-frontend.js
+++ b/scripts/build-frontend.js
@@ -50,12 +50,12 @@ function getConfig() {
function bundleHtml(config) {
const minify = require('html-minifier').minify;
const baseHtml = fs.readFileSync('./static/html/index.htm', 'utf-8');
- glob('static/html/**/*.tpl', {}, (er, files) => {
+ glob('static/html/**/*.hbs', {}, (er, files) => {
let templatesHtml = '';
for (const file of files) {
templatesHtml += util.format(
'%s',
- path.basename(file, '.tpl').replace('_', '-'),
+ path.basename(file, '.hbs').replace('_', '-'),
fs.readFileSync(file));
}
diff --git a/static/html/help-about.tpl b/static/html/help-about.hbs
similarity index 92%
rename from static/html/help-about.tpl
rename to static/html/help-about.hbs
index 766816cf..1a1c377e 100644
--- a/static/html/help-about.tpl
+++ b/static/html/help-about.hbs
@@ -3,7 +3,7 @@ Gelbooru and Moebooru. Its name has
its roots in Polish language and has onomatopeic meaning of scraping or
scrubbing. It is pronounced as shoorubooru.
-
Registration
+
Registration
The e-mail you enter during account creation is only used to retrieve your
Gravatar and for password reminders. Only you can see it (well, except the
diff --git a/static/html/help-comments.tpl b/static/html/help-comments.hbs
similarity index 100%
rename from static/html/help-comments.tpl
rename to static/html/help-comments.hbs
diff --git a/static/html/help-keyboard.tpl b/static/html/help-keyboard.hbs
similarity index 100%
rename from static/html/help-keyboard.tpl
rename to static/html/help-keyboard.hbs
diff --git a/static/html/help-search.tpl b/static/html/help-search.hbs
similarity index 100%
rename from static/html/help-search.tpl
rename to static/html/help-search.hbs
diff --git a/static/html/help-tos.tpl b/static/html/help-tos.hbs
similarity index 94%
rename from static/html/help-tos.tpl
rename to static/html/help-tos.hbs
index f3ad7bb6..2b35f8f6 100644
--- a/static/html/help-tos.tpl
+++ b/static/html/help-tos.hbs
@@ -17,7 +17,7 @@ the Site.
stumble upon.
-
Prohibited content
+
Prohibited content
Child pornography: any photograph or photorealistic drawing or movie
@@ -36,7 +36,7 @@ the Site.
signatures.
-
Privacy policy
+
Privacy policy
The Site will not disclose the IP address or email address of any user
except to the staff.
diff --git a/static/html/help.tpl b/static/html/help.hbs
similarity index 100%
rename from static/html/help.tpl
rename to static/html/help.hbs
diff --git a/static/html/home.tpl b/static/html/home.hbs
similarity index 69%
rename from static/html/home.tpl
rename to static/html/home.hbs
index 164abc28..fc476b50 100644
--- a/static/html/home.tpl
+++ b/static/html/home.hbs
@@ -1,5 +1,5 @@
{{name}}
-
+
diff --git a/static/html/login.tpl b/static/html/login.hbs
similarity index 100%
rename from static/html/login.tpl
rename to static/html/login.hbs
diff --git a/static/html/top_nav.tpl b/static/html/top_nav.hbs
similarity index 100%
rename from static/html/top_nav.tpl
rename to static/html/top_nav.hbs
diff --git a/static/html/user_registration.tpl b/static/html/user_registration.hbs
similarity index 81%
rename from static/html/user_registration.tpl
rename to static/html/user_registration.hbs
index d8616553..a17997f7 100644
--- a/static/html/user_registration.tpl
+++ b/static/html/user_registration.hbs
@@ -14,7 +14,7 @@
-
Used for password reminder and to show a Gravatar. Leave blank for random Gravatar.
+
Used for password reminder and to show a Gravatar. Leave blank for random Gravatar.
@@ -26,10 +26,10 @@
Registered users can:
-
upload new posts
-
mark them as favorite
-
add comments
-
vote up/down on posts and comments
+
upload new posts
+
mark them as favorite
+
add comments
+
vote up/down on posts and comments
By creating an account, you are agreeing to the Terms of Service.