Skip to content
Snippets Groups Projects
Commit 4a4c3cd5 authored by Martin Mareš's avatar Martin Mareš
Browse files

Seznam uživatelů/orgů ukazuje červené hvězdičky u neaktivních účtů

parent 6f8250bb
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<title>Odevzdávací systém MO</title> <title>Odevzdávací systém MO</title>
<link rel=stylesheet href="{{ url_for('static', filename='bootstrap.min.css') }}" type='text/css' media=all> <link rel=stylesheet href="{{ url_for('static', filename='bootstrap.min.css') }}" type='text/css' media=all>
<link rel=stylesheet href="{{ url_for('static', filename='mo.css') }}?v=4" type='text/css' media=all> <link rel=stylesheet href="{{ url_for('static', filename='mo.css') }}?v=5" type='text/css' media=all>
{% block head %}{% endblock %} {% block head %}{% endblock %}
</head> </head>
<body> <body>
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
{% for user in users %} {% for user in users %}
<tr> <tr>
<td>{{ user.first_name }}</td><td>{{ user.last_name }}</td> <td>{{ user.first_name }}</td><td>{{ user.last_name }}</td>
<td><a href="mailto:{{ user.email }}">{{ user.email }}</a></td> <td><a href="mailto:{{ user.email }}">{{ user.email }}</a>{% if user.password_hash == None %}<span class="user-inactive" title='Účet dosud nebyl aktivován'> *</span>{% endif %}</td>
<td>{% if user.is_admin %}správce{% elif user.roles|count == 0 %}<i>žádná role</i>{% else %} <td>{% if user.is_admin %}správce{% elif user.roles|count == 0 %}<i>žádná role</i>{% else %}
<ul> <ul>
{% for role in user.roles %} {% for role in user.roles %}
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
{% for user in users %} {% for user in users %}
<tr> <tr>
<td>{{ user.first_name }}</td><td>{{ user.last_name }}</td> <td>{{ user.first_name }}</td><td>{{ user.last_name }}</td>
<td><a href="mailto:{{ user.email }}">{{ user.email }}</a></td> <td><a href="mailto:{{ user.email }}">{{ user.email }}</a>{% if user.password_hash == None %}<span class="user-inactive" title='Účet dosud nebyl aktivován'> *</span>{% endif %}</td>
<td><div class='btn-group'> <td><div class='btn-group'>
<a class="btn btn-xs btn-default" href="{{ url_for('org_user', id=user.user_id) }}">Detail</a> <a class="btn btn-xs btn-default" href="{{ url_for('org_user', id=user.user_id) }}">Detail</a>
{% if can_edit %} {% if can_edit %}
......
...@@ -186,3 +186,9 @@ table.data tbody tr.job-failed { ...@@ -186,3 +186,9 @@ table.data tbody tr.job-failed {
table.data tbody tr.job-failed:hover { table.data tbody tr.job-failed:hover {
background-color: #a66; background-color: #a66;
} }
/* Users */
.user-inactive {
color: red;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment