Fix organization contest bug and add Bookmarks on dropdown list (#113)
This commit is contained in:
parent
c6acfa5e05
commit
796a670cd7
6 changed files with 212 additions and 187 deletions
|
@ -1,4 +1,4 @@
|
|||
{% macro contest_head(contest) %}
|
||||
{% macro contest_head(contest, organization=None) %}
|
||||
<a href="{{ url('contest_view', contest.key) }}" class="contest-list-title" style="margin-right: 5px;">
|
||||
{{contest.name}}
|
||||
</a>
|
||||
|
@ -8,7 +8,7 @@
|
|||
<i class="fa fa-eye-slash"></i> {{ _('hidden') }}
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if contest.is_editable %}
|
||||
{% if organization and contest.is_editable %}
|
||||
<span class="contest-tag contest-tag-edit">
|
||||
<a href="{{ url('organization_contest_edit', organization.id, organization.slug, contest.key) }}" class="white">
|
||||
<i class="fa fa-edit"></i> {{ _('Edit') }}
|
||||
|
@ -20,7 +20,7 @@
|
|||
<i class="fa fa-lock"></i> {{ _('private') }}
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if not hide_contest_orgs %}
|
||||
{% if not organization %}
|
||||
{% if contest.is_organization_private %}
|
||||
{% for org in contest.organizations.all() %}
|
||||
{% include "organization/tag.html" %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue