2023-01-27 23:11:10 +00:00
|
|
|
<div class="right-sidebar">
|
|
|
|
{% if can_edit or is_member %}
|
|
|
|
<div id="control-panel" class="blog-sidebox sidebox no-dot-blog-sidebox">
|
2023-03-03 00:43:15 +00:00
|
|
|
<h3><i class="fa fa-cog"></i>{{ _('Controls') }}</h3>
|
|
|
|
<ul id="control-list" class="sidebox-content" style="margin: 0;">
|
2023-01-27 23:11:10 +00:00
|
|
|
{% if can_edit %}
|
2024-06-10 20:13:53 +00:00
|
|
|
<div class="link-row">
|
|
|
|
<a href="{{ url('edit_organization', organization.id, organization.slug) }}">
|
|
|
|
<i class="fa fa-edit"></i>{{ _('Edit group') }}</a>
|
|
|
|
</div>
|
2023-01-27 23:11:10 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if can_edit and not organization.is_open %}
|
2024-06-10 20:13:53 +00:00
|
|
|
<div class="link-row">
|
|
|
|
<a href="{{ url('organization_requests_pending', organization.id, organization.slug) }}">
|
|
|
|
<i class="fa fa-inbox"></i>{{ _('View requests') }}</a>
|
|
|
|
{% if pending_count > 0 %}
|
|
|
|
<span id="pending-count-box">
|
|
|
|
{{pending_count}}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2023-01-27 23:11:10 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if can_edit %}
|
2024-06-10 20:13:53 +00:00
|
|
|
<div class="link-row">
|
|
|
|
<a href="{{ url('add_organization_member', organization.id, organization.slug) }}">
|
|
|
|
<i class="fa fa-user-plus"></i>{{ _('Add members') }}</a>
|
|
|
|
</div>
|
2023-01-27 23:11:10 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if is_member %}
|
2024-06-10 20:13:53 +00:00
|
|
|
<div class="link-row">
|
|
|
|
<a href="{{ url('add_organization_blog', organization.id, organization.slug) }}">
|
|
|
|
<i class="fa fa-pencil"></i>{{ _('Add blog') }}</a>
|
2023-01-27 23:11:10 +00:00
|
|
|
</div>
|
2024-06-10 20:13:53 +00:00
|
|
|
{% endif %}
|
|
|
|
<div class="link-row">
|
|
|
|
<a href="{{ url('organization_pending_blogs', organization.id, organization.slug) }}">
|
|
|
|
<i class="fa fa-clipboard-list"></i>{{ _('Pending blogs') }}</a>
|
|
|
|
{% if pending_blog_count > 0 %}
|
|
|
|
<span id="pending-count-box">
|
|
|
|
{{pending_blog_count}}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2023-01-27 23:11:10 +00:00
|
|
|
{% if can_edit %}
|
2024-06-10 20:13:53 +00:00
|
|
|
<div class="link-row">
|
|
|
|
<a href="{{ url('organization_contest_add', organization.id, organization.slug) }}">
|
|
|
|
<i class="fa fa-calendar-plus"></i>{{ _('Add contest') }}</a>
|
|
|
|
</div>
|
2023-01-27 23:11:10 +00:00
|
|
|
{% endif %}
|
2024-02-19 23:00:44 +00:00
|
|
|
{% if is_member %}
|
2024-06-10 20:13:53 +00:00
|
|
|
<div class="link-row">
|
|
|
|
<a href="{{ organization_subdomain }}" target="_blank">
|
|
|
|
<i class="fa fa-globe"></i>{{_('Subdomain')}}
|
|
|
|
</a>
|
|
|
|
</div>
|
2024-02-19 23:00:44 +00:00
|
|
|
{% endif %}
|
2023-02-02 01:52:43 +00:00
|
|
|
{% if is_member and not is_admin %}
|
2024-06-10 20:13:53 +00:00
|
|
|
<div class="link-row" style="color: red;">
|
2023-01-27 23:11:10 +00:00
|
|
|
<form method="post" action="{{ url('leave_organization', organization.id, organization.slug) }}">
|
|
|
|
{% csrf_token %}
|
2024-06-10 20:13:53 +00:00
|
|
|
<a href="#" class="leave-organization">
|
|
|
|
<i class="fa fa-sign-out-alt"></i>{{ _('Leave group') }}</a>
|
2023-01-27 23:11:10 +00:00
|
|
|
</form>
|
2024-06-10 20:13:53 +00:00
|
|
|
</div>
|
2023-01-27 23:11:10 +00:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2023-09-17 05:18:30 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if (is_member or can_edit) %}
|
|
|
|
{% include 'contests-countdown.html' %}
|
|
|
|
{% endif %}
|
|
|
|
{% if can_edit or is_member %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<div class="blog-sidebox sidebox">
|
2023-03-03 00:43:15 +00:00
|
|
|
<h3><i class="fa fa-info-circle"></i>{{ _('About') }}</h3>
|
2023-01-27 23:11:10 +00:00
|
|
|
<div class="sidebox-content">
|
|
|
|
<div style="margin: 0.3em;">
|
2024-02-26 20:49:52 +00:00
|
|
|
{% cache 3600 'organization_html' organization.id %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{{ organization.about|markdown|reference|str|safe }}
|
|
|
|
{% endcache %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if is_member or can_edit or organization.is_open %}
|
|
|
|
{% include 'top-users.html' %}
|
|
|
|
{% endif %}
|
2022-05-30 06:59:53 +00:00
|
|
|
</div>
|