{{{ if error }}}{error}{{{ else }}}[[global:403.message]]{{{ end }}}
+
+ {{{ if returnLink }}}
[[error:goback]]
-
+ {{{ end }}}
-
+ {{{ if !loggedIn }}}
[[global:403.login, {config.relative_path}]]
-
+ {{{ end }}}
\ No newline at end of file
diff --git a/src/views/404.tpl b/src/views/404.tpl
index 2a0a645bc8..5d1fb9d43c 100644
--- a/src/views/404.tpl
+++ b/src/views/404.tpl
@@ -1,8 +1,4 @@
{path} [[global:404.title]]
-
-
{error}
-
-
[[global:404.message, {config.relative_path}]]
-
+
{{{ if error }}}{error}{{{ else }}}[[global:404.message, {config.relative_path}]]{{{ end }}}
\ No newline at end of file
diff --git a/src/views/500.tpl b/src/views/500.tpl
index 7795fbbf8a..e0ddffae26 100644
--- a/src/views/500.tpl
+++ b/src/views/500.tpl
@@ -2,9 +2,9 @@
[[global:500.title]]
[[global:500.message]]
{path}
-
{error}
+ {{{ if error }}}
{error}
{{{ end }}}
-
+ {{{ if returnLink }}}
[[error:goback]]
-
+ {{{ end }}}
diff --git a/src/views/503.tpl b/src/views/503.tpl
index 5bd60e430d..2654ab8429 100644
--- a/src/views/503.tpl
+++ b/src/views/503.tpl
@@ -1,6 +1,6 @@
[[pages:maintenance.text, {site_title}]]
-
+{{{ if message }}}
[[pages:maintenance.messageIntro]]
@@ -9,4 +9,4 @@
-
\ No newline at end of file
+{{{ end }}}
\ No newline at end of file
diff --git a/src/views/admin/advanced/database.tpl b/src/views/admin/advanced/database.tpl
index 6646cc984f..311ff9deef 100644
--- a/src/views/admin/advanced/database.tpl
+++ b/src/views/admin/advanced/database.tpl
@@ -22,9 +22,9 @@
[[admin/advanced/database:mongo.data-size]][[admin/advanced/database:x-gb, {mongo.dataSize}]] [[admin/advanced/database:mongo.storage-size]][[admin/advanced/database:x-gb, {mongo.storageSize}]] [[admin/advanced/database:mongo.index-size]][[admin/advanced/database:x-gb, {mongo.indexSize}]]
-
+ {{{ if mongo.fileSize }}}
[[admin/advanced/database:mongo.file-size]][[admin/advanced/database:x-gb, {mongo.fileSize}]]
-
+ {{{ end }}}
[[admin/advanced/database:mongo.resident-memory]][[admin/advanced/database:x-gb, {mongo.mem.resident}]] [[admin/advanced/database:mongo.virtual-memory]][[admin/advanced/database:x-gb, {mongo.mem.virtual}]]
diff --git a/src/views/admin/advanced/errors.tpl b/src/views/admin/advanced/errors.tpl
index 5b84d04aeb..bf70584e5a 100644
--- a/src/views/admin/advanced/errors.tpl
+++ b/src/views/admin/advanced/errors.tpl
@@ -55,13 +55,13 @@
[[admin/advanced/errors:count]]
-
+ {{{ each not-found }}}
-
{../value}
-
{../score}
+
{./value}
+
{./score}
-
-
+ {{{ end }}}
+ {{{ if !not-found.length }}}
@@ -69,7 +69,7 @@
-
+ {{{ end }}}
diff --git a/src/views/admin/advanced/events.tpl b/src/views/admin/advanced/events.tpl
index 2fab55dbba..d5d0fa8022 100644
--- a/src/views/admin/advanced/events.tpl
+++ b/src/views/admin/advanced/events.tpl
@@ -13,7 +13,7 @@
#{events.eid}{events.type}uid {events.uid}
- {events.ip}
+ {{{ if events.ip }}}{events.ip}{{{ end }}}
{buildAvatar(events.user, "24px", true)}{events.user.username}
@@ -35,9 +35,9 @@
-
\ No newline at end of file
+{{{ end }}}
\ No newline at end of file
diff --git a/src/views/admin/partials/categories/category-rows.tpl b/src/views/admin/partials/categories/category-rows.tpl
index 4a1e964a81..670f0d50f9 100644
--- a/src/views/admin/partials/categories/category-rows.tpl
+++ b/src/views/admin/partials/categories/category-rows.tpl
@@ -1,6 +1,6 @@
- {{{ if ../href }}}
- {../name}
+ {{{ if ./href }}}
+ {./name}
{{{ else }}}
- {../name}
+ {./name}
{{{ end }}}
-
{stats.yesterday}
-
{stats.today}
-
{stats.dayIncrease}%
+
{./yesterday}
+
{./today}
+
{./dayIncrease}%
-
{stats.lastweek}
-
{stats.thisweek}
-
{stats.weekIncrease}%
+
{./lastweek}
+
{./thisweek}
+
{./weekIncrease}%
-
{stats.lastmonth}
-
{stats.thismonth}
-
{stats.monthIncrease}%
+
{./lastmonth}
+
{./thismonth}
+
{./monthIncrease}%
-
{stats.alltime}
+
{./alltime}
-
+ {{{ end }}}
\ No newline at end of file
diff --git a/src/views/admin/partials/download_plugin_item.tpl b/src/views/admin/partials/download_plugin_item.tpl
index ab8db31850..61c1e6e8be 100644
--- a/src/views/admin/partials/download_plugin_item.tpl
+++ b/src/views/admin/partials/download_plugin_item.tpl
@@ -1,25 +1,25 @@
-
\ No newline at end of file
diff --git a/src/views/admin/partials/theme_list.tpl b/src/views/admin/partials/theme_list.tpl
index 1316b40de5..4ac0a67743 100644
--- a/src/views/admin/partials/theme_list.tpl
+++ b/src/views/admin/partials/theme_list.tpl
@@ -1,24 +1,24 @@
-
-
-
+{{{ end }}}
diff --git a/src/views/admin/partials/widgets/show_hide_groups.tpl b/src/views/admin/partials/widgets/show_hide_groups.tpl
index 12c72e1684..583a405947 100644
--- a/src/views/admin/partials/widgets/show_hide_groups.tpl
+++ b/src/views/admin/partials/widgets/show_hide_groups.tpl
@@ -2,17 +2,17 @@
\ No newline at end of file
diff --git a/src/views/admin/settings/email.tpl b/src/views/admin/settings/email.tpl
index e973963679..f5a7482e4c 100644
--- a/src/views/admin/settings/email.tpl
+++ b/src/views/admin/settings/email.tpl
@@ -175,9 +175,9 @@
diff --git a/src/views/emails/partials/header.tpl b/src/views/emails/partials/header.tpl
index e292b13830..44fddbc78e 100644
--- a/src/views/emails/partials/header.tpl
+++ b/src/views/emails/partials/header.tpl
@@ -165,7 +165,7 @@
1. max-width for all clients except Desktop Windows Outlook, allowing the email to squish on narrow but never go wider than 600px.
2. MSO tags for Desktop Windows Outlook enforce a 600px width.
-->
-
+
+ {{{ if logo.src }}}
-
+ {{{ else }}}
-
+ {{{ end }}}
diff --git a/src/views/modals/crop_picture.tpl b/src/views/modals/crop_picture.tpl
index baa3051d48..f78e4eed76 100644
--- a/src/views/modals/crop_picture.tpl
+++ b/src/views/modals/crop_picture.tpl
@@ -31,7 +31,7 @@
\ No newline at end of file
diff --git a/src/views/modals/post-history.tpl b/src/views/modals/post-history.tpl
index 1f187e991e..433d015e41 100644
--- a/src/views/modals/post-history.tpl
+++ b/src/views/modals/post-history.tpl
@@ -1,21 +1,21 @@
-
+ {{{ if numDiffs }}}
[[topic:diffs.description, {numDiffs}]]
-
+ {{{ else }}}
[[topic:diffs.no-revisions-description, {numDiffs}]]
-
+ {{{ end }}}
-
+{{{ if numDiffs }}}
@@ -33,4 +33,4 @@
{{{ end }}}
-
+{{{ end }}}
diff --git a/src/views/modals/upload-file.tpl b/src/views/modals/upload-file.tpl
index 6f46f54d6a..537f6efd01 100644
--- a/src/views/modals/upload-file.tpl
+++ b/src/views/modals/upload-file.tpl
@@ -8,19 +8,19 @@
-
+ {{{ if description }}}
-
- accept="{accept}">
-
+ {{{ end }}}
+
+ {{{ if showHelp }}}
-
+ {{{ if accept }}}
[[global:allowed-file-types, {accept}]]
-
+ {{{ end }}}
- ([[uploads:maximum-file-size, {fileSize}]])
+ {{{ if fileSize }}}([[uploads:maximum-file-size, {fileSize}]]){{{ end }}}