Add conditional logic to show Edit Account link
This commit is contained in:
leigh-mil
2018-10-29 10:48:55 -04:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -30,7 +30,9 @@
<dd>{{ member.user.email }}</dd>
</div>
</dl>
<a href='#' class='icon-link'>edit account details</a>
{% if editable %}
<a href='{{ url_for("users.user") }}' class='icon-link'>edit account details</a>
{% endif %}
</div>
</div>