NDOJ/templates/organization/org-right-sidebar.html

94 lines
3.2 KiB
HTML
Raw Normal View History

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 %}
<li>
<div>
<a href="{{ url('edit_organization', organization.id, organization.slug) }}">{{ _('Edit group') }}</a>
</div>
</li>
{% endif %}
{% if can_edit and not organization.is_open %}
<li>
<div>
<a href="{{ url('organization_requests_pending', organization.id, organization.slug) }}">{{ _('View requests') }}</a>
{% if pending_count > 0 %}
<span id="pending-count-box">
{{pending_count}}
</span>
{% endif %}
</div>
</li>
{% endif %}
{% if can_edit %}
<li>
<div>
<a href="{{ url('add_organization_member', organization.id, organization.slug) }}">{{ _('Add members') }}</a>
</div>
</li>
{% endif %}
{% if is_member %}
<li>
<div>
<a href="{{ url('add_organization_blog', organization.id, organization.slug) }}">{{ _('Add blog') }}</a>
</div>
</li>
{% endif %}
<li>
<div>
<a href="{{ url('organization_pending_blogs', organization.id, organization.slug) }}">{{ _('Pending blogs') }}</a>
{% if pending_blog_count > 0 %}
<span id="pending-count-box">
{{pending_blog_count}}
</span>
{% endif %}
</div>
</li>
{% if can_edit %}
<li>
<div>
<a href="{{ url('organization_contest_add', organization.id, organization.slug) }}">{{ _('Add contest') }}</a>
</div>
</li>
{% endif %}
2024-02-19 23:00:44 +00:00
{% if is_member %}
<li>
<div>
<a href="{{ organization_subdomain }}" target="_blank">
{{_('Subdomain')}}
</a>
</div>
</li>
{% endif %}
{% if is_member and not is_admin %}
2023-01-27 23:11:10 +00:00
<li>
<form method="post" action="{{ url('leave_organization', organization.id, organization.slug) }}">
{% csrf_token %}
<a href="#" class="leave-organization">{{ _('Leave group') }}</a>
</form>
</li>
{% 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>