Fix index signin and signout button might not shown if only email enabled

This commit is contained in:
Wu Cheng-Han 2016-12-07 21:19:06 +08:00
parent dd284a7bd0
commit ecb956f515

View file

@ -57,7 +57,7 @@
<% if (errorMessage && errorMessage.length > 0) { %>
<div class="alert alert-danger" style="max-width: 400px; margin: 0 auto;"><%= errorMessage %></div>
<% } %>
<% if(facebook || twitter || github || gitlab || dropbox || google) { %>
<% if(facebook || twitter || github || gitlab || dropbox || google || email) { %>
<span class="ui-signin">
<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>
@ -93,7 +93,7 @@
</div>
<div id="history" class="section"<% if(!signin) { %> style="display:none;"<% } %>>
<% if(facebook || twitter || github || gitlab || dropbox || google) { %>
<% if(facebook || twitter || github || gitlab || dropbox || google || email) { %>
<div class="ui-signin">
<p><%= __('Below is the history from browser') %></p>
</div>