Skip to content

Commit

Permalink
feat: more defaulting in the account URL
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jan 17, 2021
1 parent ffec336 commit fcfa64b
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -10,8 +10,9 @@
</p>
{{ h2("Information") }}
{% if owner.admin_email_account_new_link %}
{% set account_admin_url = url_for("admin.show_entity", model = account.__class__._under(), _id = account._id, absolute = True) %}
{% set account_url = config.conf("NEW_ACCOUNT_URL")|default(account_admin_url, True) %}
{% set account_url = url_for("admin.show_entity", model = account.__class__._under(), _id = account._id, absolute = True) %}
{% set account_url = config.conf("ACCOUNT_URL")|default(account_url, True) %}
{% set account_url = config.conf("NEW_ACCOUNT_URL")|default(account_url, True) %}
<p>
You can view all the information about your account by clicking {{ link(account_url, "here", False) }}.
</p>
Expand Down

0 comments on commit fcfa64b

Please sign in to comment.