DO NOT hide Reg. button when reg. is disabled

This commit is contained in:
Ilya Prokopenko 2022-03-09 14:06:43 +03:00
parent dee3942aef
commit 116a12a90a
No known key found for this signature in database
GPG key ID: 7736BBBB05F14A56
2 changed files with 3 additions and 3 deletions

View file

@ -129,7 +129,7 @@
<div class="link"> <div class="link">
<a href="/login">{_header_login}</a> <a href="/login">{_header_login}</a>
</div> </div>
<div n:if="OPENVK_ROOT_CONF['openvk']['preferences']['registration']['enable']" class="link"> <div class="link">
<a href="/reg">{_header_registration}</a> <a href="/reg">{_header_registration}</a>
</div> </div>
<div class="link"> <div class="link">
@ -208,7 +208,7 @@
<input type="hidden" name="jReturnTo" value="{$_SERVER['REQUEST_URI']}" /> <input type="hidden" name="jReturnTo" value="{$_SERVER['REQUEST_URI']}" />
<input type="hidden" name="hash" value="{$csrfToken}" /> <input type="hidden" name="hash" value="{$csrfToken}" />
<input type="submit" value="{_log_in}" class="button" style="display: inline-block;" /> <input type="submit" value="{_log_in}" class="button" style="display: inline-block;" />
<a n:if="OPENVK_ROOT_CONF['openvk']['preferences']['registration']['enable']" href="/reg" class="button" style="display: inline-block;">{_registration}</a><br><br> <a href="/reg" class="button" style="display: inline-block;">{_registration}</a><br><br>
<a href="/restore">{_forgot_password}</a> <a href="/restore">{_forgot_password}</a>
</form> </form>
{/ifset} {/ifset}

View file

@ -9,7 +9,7 @@
{presenter "openvk!Support->knowledgeBaseArticle", "about"} {presenter "openvk!Support->knowledgeBaseArticle", "about"}
<center> <center>
<a class="button" style="margin-right: 5px;cursor: pointer;" href="/login">{_"log_in"}</a> <a class="button" style="margin-right: 5px;cursor: pointer;" href="/login">{_"log_in"}</a>
<a n:if="OPENVK_ROOT_CONF['openvk']['preferences']['registration']['enable']" class="button" style="cursor: pointer;" href="/reg">{_"registration"}</a> <a class="button" style="cursor: pointer;" href="/reg">{_"registration"}</a>
</center> </center>
{* TO-DO: Add statistics about this instance as on mastodon.social *} {* TO-DO: Add statistics about this instance as on mastodon.social *}
{/block} {/block}