From dbc87c8a8e90b9cb231bc7f86aaa50cc0011d9ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 2 Sep 2021 09:52:36 -0400 Subject: [PATCH] feat: login/register widget areas --- library.js | 1 + templates/login.tpl | 140 +++++++++++++++++++++++------------------ templates/register.tpl | 130 +++++++++++++++++++++----------------- 3 files changed, 152 insertions(+), 119 deletions(-) diff --git a/library.js b/library.js index 29ede0c..5fafee6 100644 --- a/library.js +++ b/library.js @@ -25,6 +25,7 @@ library.defineWidgetAreas = async function (areas) { const templates = [ 'categories.tpl', 'category.tpl', 'topic.tpl', 'users.tpl', 'unread.tpl', 'recent.tpl', 'popular.tpl', 'top.tpl', 'tags.tpl', 'tag.tpl', + 'login.tpl', 'register.tpl', ]; function capitalizeFirst(str) { return str.charAt(0).toUpperCase() + str.slice(1); diff --git a/templates/login.tpl b/templates/login.tpl index 9b01316..abb8b8e 100644 --- a/templates/login.tpl +++ b/templates/login.tpl @@ -1,75 +1,91 @@ +
+ {{{each widgets.header}}} + {{widgets.header.html}} + {{{end}}} +
+
+
+ {{{ if allowLocalLogin }}} +
+