From a73d9ce39e2107b2a9628003f05900d4a641bee5 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Fri, 2 Dec 2016 01:58:14 +0800 Subject: Update to support optional email register and signin --- public/views/foot.ejs | 1 + public/views/index.ejs | 7 +++++++ public/views/signin-modal.ejs | 28 +++++++++++++++++++++++++++- 3 files changed, 35 insertions(+), 1 deletion(-) (limited to 'public/views') diff --git a/public/views/foot.ejs b/public/views/foot.ejs index 4a54ac44..829d4d3d 100644 --- a/public/views/foot.ejs +++ b/public/views/foot.ejs @@ -19,6 +19,7 @@ + <%- include build/index-scripts %> <% } else { %> diff --git a/public/views/index.ejs b/public/views/index.ejs index 729987ca..789565af 100644 --- a/public/views/index.ejs +++ b/public/views/index.ejs @@ -51,6 +51,12 @@

<%= __('Best way to write and share your knowledge in markdown.') %>

+ <% if (infoMessage && infoMessage.length > 0) { %> +
<%= infoMessage %>
+ <% } %> + <% if (errorMessage && errorMessage.length > 0) { %> +
<%= errorMessage %>
+ <% } %> <% if(facebook || twitter || github || gitlab || dropbox || google) { %>
@@ -195,6 +201,7 @@ + <%- include build/cover-scripts %> <% } else { %> <%- include build/cover-pack-scripts %> diff --git a/public/views/signin-modal.ejs b/public/views/signin-modal.ejs index a3ca63f8..acbad256 100644 --- a/public/views/signin-modal.ejs +++ b/public/views/signin-modal.ejs @@ -7,7 +7,7 @@ - -- cgit v1.2.3