From 44ffc564da1dd20b2fae3247d9fa314a52e0aaca Mon Sep 17 00:00:00 2001 From: Claudius Date: Thu, 13 Sep 2018 21:26:39 +0200 Subject: removing global site layout vars from individual routers, putting them into app.local Signed-off-by: Claudius --- public/views/index/body.ejs | 30 +++++++++++++++--------------- public/views/index/head.ejs | 4 ++-- 2 files changed, 17 insertions(+), 17 deletions(-) (limited to 'public/views/index') diff --git a/public/views/index/body.ejs b/public/views/index/body.ejs index 18bffddb..907cc1a8 100644 --- a/public/views/index/body.ejs +++ b/public/views/index/body.ejs @@ -12,24 +12,24 @@
  • <%= __('History') %>
  • - <% if(allowAnonymous) { %> - <%= __('New guest note') %> + <% if (allowAnonymous) { %> + <%= __('New guest note') %> <% } %> - <% if(facebook || twitter || github || gitlab || mattermost || dropbox || google || ldap || saml || oauth2 || email) { %> + <% if (authProviders.facebook || authProviders.twitter || authProviders.github || authProviders.gitlab || authProviders.mattermost || authProviders.dropbox || authProviders.google || authProviders.ldap || authProviders.saml || authProviders.oauth2 || authProviders.email) { %> <% } %>
    - <%= __('New note') %> + <%= __('New note') %>
    @@ -50,7 +50,7 @@ <% if (errorMessage && errorMessage.length > 0) { %>
    <%= errorMessage %>
    <% } %> - <% if(facebook || twitter || github || gitlab || mattermost || dropbox || google || ldap || saml || oauth2 || email) { %> + <% if (authProviders.facebook || authProviders.twitter || authProviders.github || authProviders.gitlab || authProviders.mattermost || authProviders.dropbox || authProviders.google || authProviders.ldap || authProviders.saml || authProviders.oauth2 || authProviders.email) { %>
    @@ -58,26 +58,26 @@ <%= __('or') %> <% } %>
    - +

    <%= __('Support slide mode') %>

    @@ -150,7 +150,7 @@

    - Powered by CodiMD | <%= __('Releases') %><% if(privacyStatement) { %> | <%= __('Privacy') %><% } %><% if(termsOfUse) { %> | <%= __('Terms of Use') %><% } %> + Powered by CodiMD | <%= __('Releases') %><% if(privacyStatement) { %> | <%= __('Privacy') %><% } %><% if(termsOfUse) { %> | <%= __('Terms of Use') %><% } %>

    diff --git a/public/views/index/head.ejs b/public/views/index/head.ejs index fc10dfa0..7a601bdf 100644 --- a/public/views/index/head.ejs +++ b/public/views/index/head.ejs @@ -7,8 +7,8 @@ CodiMD - <%= __('Collaborative markdown notes') %> - - + + <% if(useCDN) { %> -- cgit v1.2.3