Skip to content
Snippets Groups Projects
Commit 31c7e7cb authored by Jiří Setnička's avatar Jiří Setnička
Browse files

Odlišení testuserů v různých tabulkách

Část #46.
parent da7b66af
No related branches found
No related tags found
1 merge request!16Zadávání bodů a zobrazení výsledků
This commit is part of merge request !16. Comments created here will be created in the context of that merge request.
......@@ -398,6 +398,7 @@ def make_contestant_table(query: Query, add_checkbox: bool = False, add_contest_
for pion, pant, ct in ctants:
u = pion.user
rows.append({
'_html_tr': '<tr class="testuser" title="Testovací uživatel">' if u.is_test else '',
'sort_key': u.sort_key(),
'first_name': cell_user_link(u, u.first_name),
'last_name': cell_user_link(u, u.last_name),
......
......@@ -37,8 +37,8 @@ konkrétní úlohu. Symbol <b>+</b> značí, že existuje více verzí dostupný
</tr>
</thead>
{% for pion in pions %}
<tr>
{% set u = pion.user %}
<tr{% if u.is_test %} class="testuser" title="Testovací uživatel"{% endif %}>
<th><a href="{{ url_for('org_user', id=u.user_id) }}">{{ u.full_name() }}</a></th>
{% set sum_points = [] %}
{% for task in tasks %}
......
......@@ -47,8 +47,8 @@ naleznete v detailu řešení.
</thead>
{% for pion, sol in rows %}
{% set u = pion.user %}
<tr>
<td><a href="{{ url_for('org_user', id=u.user_id) }}">{{ u.full_name() }}</a>
<tr {% if u.is_test %}class="testuser" title="Testovací uživatel"{% endif %}>
<td>{{ u|user_link }}</a>
{% if sol %}
<td>{% if sol.final_submit_obj %}
{% set p = sol.final_submit_obj %}
......
......@@ -33,7 +33,7 @@
</tr>
</thead>
{% for sol in solutions %}
<tr>
<tr {% if sol.user.is_test %}class="testuser" title="Testovací uživatel"{% endif %}>
<td>{{ sol.user|user_link }}
<td><a class="btn btn-xs btn-primary" href="{{ url_for('org_submit_list', contest_id=ct_id, user_id=sol.user_id, task_id=task.task_id) }}">Detail řešení</a>
<td><input type="number" class="form-control" name="points_{{sol.user_id}}" value="{{ sol.points }}" size="4">
......
......@@ -70,7 +70,7 @@
</tr>
</thead>
{% for user in users %}
<tr>
<tr{% if user.is_test %} class="testuser" title="Testovací uživatel"{% endif %}>
<td>{{ user.first_name }}</td><td>{{ user.last_name }}</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'>
......
......@@ -105,6 +105,10 @@ table.data td.sol-late {
background-color: #ffaaaa;
}
table tr.testuser {
opacity: 0.5;
}
nav#main-menu {
display: flex;
flex-wrap: wrap;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment