diff options
author | Vitaly Takmazov | 2018-12-03 17:01:03 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-12-03 17:01:03 +0300 |
commit | f418a0bfda83f6a19059209c7e7c5904d3e67a2a (patch) | |
tree | 88730e1c21b736f8ff4eee6ac343503685da2317 | |
parent | ff72f0b789fe7f2e6689de8cc990bdc8fa00f9da (diff) |
www: warn unverified users
3 files changed, 14 insertions, 1 deletions
diff --git a/src/main/resources/templates/views/partial/navigation.html b/src/main/resources/templates/views/partial/navigation.html index dce2b83e..8a21a437 100644 --- a/src/main/resources/templates/views/partial/navigation.html +++ b/src/main/resources/templates/views/partial/navigation.html @@ -4,6 +4,9 @@ <div id="ctitle"> <a href="/{{ visitor.name }}"> <img src="{{ visitor.avatar }}" alt=""/>{{ visitor.name }} + {% if not visitor.verified %} + <span style="color:red;"><i data-icon="ei-exclamation" data-size="s"></i></span> + {% endif %} </a> </div> {% else %} diff --git a/src/main/resources/templates/views/partial/usercolumn.html b/src/main/resources/templates/views/partial/usercolumn.html index 0896bd4e..9ce42ab6 100644 --- a/src/main/resources/templates/views/partial/usercolumn.html +++ b/src/main/resources/templates/views/partial/usercolumn.html @@ -55,7 +55,14 @@ <li><a href="/?show=unanswered" rel="nofollow">Неотвеченные</a></li> {% endif %} {% if visitor is not empty and visitor.uid == user.uid %} - <li><a href="/settings" rel="nofollow"><i data-icon="ei-gear" data-size="s"></i>{{ i18n("messages","link.settings") }}</a></li> + <li> + <a href="/settings" rel="nofollow"> + <i data-icon="ei-gear" data-size="s"></i>{{ i18n("messages","link.settings") }} + {% if not visitor.verified %} + <span style="color:red;"><i data-icon="ei-exclamation" data-size="s"></i></span> + {% endif %} + </a> + </li> {% endif %} </ul> <hr/> diff --git a/src/main/resources/templates/views/settings_main.html b/src/main/resources/templates/views/settings_main.html index 65fbc984..8f9178d0 100644 --- a/src/main/resources/templates/views/settings_main.html +++ b/src/main/resources/templates/views/settings_main.html @@ -2,6 +2,9 @@ {% block content %} <article> <h1>Настройки</h1> + {%if not visitor.verified %} + <h2 style="color: red;">Verify your account by adding email or social account</h2> + {% endif %} <form action="/settings" method="POST" enctype="multipart/form-data"> <fieldset> <legend>Notification options</legend> |