Skip to content
Snippets Groups Projects

Místa: hledání a další drobná vylepšení

Merged Martin Mareš requested to merge mj/places into devel
2 unresolved threads
3 files
+ 51
32
Compare changes
  • Side-by-side
  • Inline

Files

+ 1
24
@@ -28,6 +28,7 @@
</form>
<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_contests', id=place.place_id) }}'>Soutěže</a>
<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>
@@ -57,28 +58,4 @@
{% endif %}
{% endif %}
<h3>Soutěže</h3>
{% if not contests %}
<p>K tomuto místu nejsou přidružené žádné soutěže.
{% else %}
<table class=data>
<thead><tr>
<th>ID
<th>Ročník
<th>Kat.
<th>Název
<th>Stav
</thead>
{% for c in contests %}
<tr>
{% set r = c.round %}
<td><a href='{{ url_for('org_contest', ct_id=c.contest_id) }}'>{{ r.round_code() }}</a>
<td>{{ r.year }}
<td>{{ r.category }}
<td>{{ r.name }}
<td class='rstate-{{c.state.name}}'>{{ c.state.friendly_name() }}
{% endfor %}
</table>
{% endif %}
{% endblock %}
Loading