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

Odkazy na historii v logu

parent d12fd8de
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,9 @@
{% if can_manage %}
<a class="btn btn-default" href='{{ url_for('org_contest_import', id=contest.contest_id) }}'>Importovat data</a>
{% endif %}
{% if g.user.is_admin %}
<a class="btn btn-default" href="{{ log_url('contest', contest.contest_id) }}">Historie</a>
{% endif %}
{% endif %}
</div>
......
......@@ -18,6 +18,9 @@
{% if can_edit %}
<div class="btn-group" role="group">
<a class="btn btn-primary" href="{{ url_for('org_org_edit', id=user.user_id) }}">Editovat</a>
{% if g.user.is_admin %}
<a class="btn btn-default" href="{{ log_url('user', user.user_id) }}">Historie</a>
{% endif %}
</div>
{% endif %}
......@@ -66,8 +69,9 @@
<td>{{ role.seq or '*' }}
<td>{% if role.assigned_by_user %}{{ role.assigned_by_user|user_link }}{% else %}systém{% endif %}
<td>
<div class='btn-group'>
{% if can_assign_rights %}
<form action="" method="POST"{% if user == g.user -%}
<form class='btn-group' action="" method="POST"{% if user == g.user -%}
onsubmit="return confirm('Pozor, mažete svoji roli. Po jejím odebrání nemusíte mít práva k jejímu opětovnému přidělení. Opravdu to chcete udělat?')"
{%- endif %}>
{{ form_remove_role.csrf_token() }}
......@@ -75,6 +79,10 @@
<button type="submit" class="btn btn-xs btn-danger">Odebrat</button>
</form>
{% endif %}
{% if g.user.is_admin %}
<a class="btn btn-xs btn-default" href="{{ log_url('user_role', role.user_role_id) }}">Historie</a>
{% endif %}
</div>
</tr>
{% endfor %}
</table>
......
......@@ -28,6 +28,9 @@
<a class="btn btn-default" href="{{ url_for('org_place_move', id=place.place_id) }}">Přesunout</a>
{% endif %}
<a class="btn btn-default" href='{{ url_for('org_place_rights', id=place.place_id) }}'>Přístupová práva</a>
{% if g.user.is_admin %}
<a class="btn btn-default" href="{{ log_url('place', place.place_id) }}">Historie</a>
{% endif %}
</div>
{% if place.can_have_child() %}
......
......@@ -43,6 +43,9 @@
{% if can_manage_round %}
<a class="btn btn-default" href='{{ url_for('org_round_edit', id=round.round_id) }}'>Editovat nastavení kola</a>
{% endif %}
{% if g.user.is_admin %}
<a class="btn btn-default" href='{{ log_url('round', round.round_id) }}'>Historie</a>
{% endif %}
</div>
<h3>Soutěže</h3>
......@@ -109,6 +112,9 @@
{% if can_upload %}
<a class="btn btn-xs btn-primary" href="{{ url_for('org_round_task_upload', round_id=round.round_id, task_id=task.task_id) }}">Nahrát</a>
{% endif %}
{% if g.user.is_admin %}
<a class="btn btn-xs btn-default" href="{{ log_url('task', task.task_id) }}">Historie</a>
{% endif %}
</div>
</tr>
{% endfor %}
......
......@@ -18,6 +18,9 @@
{% if can_edit %}
<div class="btn-group" role="group">
<a class="btn btn-primary" href="{{ url_for('org_user_edit', id=user.user_id) }}">Editovat</a>
{% if g.user.is_admin %}
<a class="btn btn-default" href="{{ log_url('user', user.user_id) }}">Historie</a>
{% endif %}
</div>
{% endif %}
......@@ -70,6 +73,9 @@
<a class="btn btn-xs btn-primary" href="{{ url_for('org_contest_user', contest_id=round.contest.contest_id, user_id=user.user_id) }}">Odevzdané úlohy</a>
<a class="btn btn-xs btn-default" href="{{ url_for('org_contest', id=round.contest.contest_id) }}">Stránka soutěže</a>
<a class="btn btn-xs btn-default" href="{{ url_for('org_round', id=round.contest.round.round_id) }}">Stránka kola</a>
{% if g.user.is_admin %}
<a class="btn btn-xs btn-default" href="{{ log_url('participant', user.user_id) }}">Historie</a>
{% endif %}
</div>
</tr>
{% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment