Add support of allow anonymous config option with correspond modifications

This commit is contained in:
Wu Cheng-Han
2016-12-15 14:07:12 +08:00
parent cf8bae32d1
commit 5c7eb48319
6 changed files with 15 additions and 1 deletions

View File

@@ -62,13 +62,17 @@
<br>
<a type="button" class="btn btn-lg btn-success ui-signin" data-toggle="modal" data-target=".signin-modal" style="min-width: 170px;"><%= __('Sign In') %></a>
</span>
<% }%>
<% if((facebook || twitter || github || gitlab || dropbox || google || email) && allowAnonmyous) { %>
<span class="ui-or"><%= __('or') %></span>
<% }%>
<% if(allowAnonmyous) { %>
<span class="ui-signin">
<a href="<%- url %>/new" class="btn btn-lg btn-default" style="min-width: 170px;"><%= __('New guest note') %></a>
<br>
<br>
</span>
<% }%>
<div class="lead row" style="width: 90%; margin: 0 auto;">
<div class="col-md-4 inner">
<a href="<%- url %>/features#share-notes">