Refine Variable name & Comment for better readibility (#1)

* Update app.py

* Update admin.html
This commit is contained in:
Xiaodong
2017-07-03 18:12:54 +08:00
committed by GitHub
parent 4a2b3fabab
commit 023a149be9
2 changed files with 9 additions and 7 deletions

View File

@@ -2,14 +2,16 @@
{% block page_title %}Admin Dashboard{% endblock %}
{% block body %}
{{ super() }}
{% if id_is_duplicated %}
{# only invoked when failed adding new ID due to duplication #}
{% if id_to_add_is_duplicated %}
<div class="text-danger">
<strong>Warning!</strong> The account name already exists.
</div>
{% endif %}
{% if id_is_invalid %}
{# only invoked when failed adding new ID due to invalid character #}
{% if id_to_add_is_invalid %}
<div class="text-danger">
<strong>Warning!</strong> The account name is invalid.
</div>
@@ -67,4 +69,4 @@
{% endblock %}
{% endblock %}