NDOJ/templates/organization/home.html

52 lines
1.7 KiB
HTML
Raw Normal View History

2022-05-30 06:59:53 +00:00
{% extends "organization/home-base.html" %}
2022-05-28 04:28:22 +00:00
{% block title_ruler %}{% endblock %}
2022-05-30 06:59:53 +00:00
2022-11-17 19:10:19 +00:00
{% block org_js %}
2023-01-27 23:11:10 +00:00
{% include "actionbar/media-js.html" %}
{% include "feed/feed_js.html" %}
2022-11-17 19:10:19 +00:00
{% endblock %}
2022-05-30 06:59:53 +00:00
{% block middle_title %}
2023-01-27 23:11:10 +00:00
<div class="page-title">
<div class="tabs" style="border: none;">
2024-02-19 23:00:44 +00:00
<h2><img src="{{logo_override_image}}" style="height: 3rem; vertical-align: middle; border-radius: 5px;">
2023-01-27 23:11:10 +00:00
{{title}}
</h2>
<span class="spacer"></span>
{% if request.user.is_authenticated %}
{% if is_member %}
{% elif organization.is_open or can_edit %}
<form method="post" action="{{ url('join_organization', organization.id, organization.slug) }}">
{% csrf_token %}
<input type="submit" class="unselectable button" value="{{ _('Join') }}">
</form>
{% else %}
<a href="{{ url('request_organization', organization.id, organization.slug) }}"
class="unselectable button">{{ _('Request membership') }}</a>
{% endif %}
{% endif %}
2021-10-10 22:37:15 +00:00
</div>
2023-01-27 23:11:10 +00:00
</div>
2022-05-30 06:59:53 +00:00
{% endblock %}
{% block middle_content %}
2023-01-27 23:11:10 +00:00
{% block before_posts %}{% endblock %}
{% if is_member or can_edit %}
{% include "blog/content.html" %}
2023-01-27 23:11:10 +00:00
{% else %}
<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;">
{% cache 3600 'organization_html' organization.id MATH_ENGINE %}
{{ organization.about|markdown|reference|str|safe }}
{% endcache %}
</div>
</div>
</div>
{% endif %}
{% block after_posts %}{% endblock %}
2022-05-28 04:28:22 +00:00
{% endblock %}