NDOJ/templates/organization/home.html

59 lines
1.8 KiB
HTML
Raw Permalink 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;">
<h2><img src="{{logo_override_image}}" style="height: 3rem; vertical-align: middle">
{{title}}
</h2>
{% if is_member %}
<div>
2023-01-27 23:17:21 +00:00
<a href="{{organization_subdomain}}" target="_blank">
{{_('Subdomain')}}
</a>
2022-06-06 16:36:35 +00:00
</div>
2023-01-27 23:11:10 +00:00
{% endif %}
<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">
<h3>{{ _('About') }}<i class="fa fa-info-circle"></i></h3>
<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 %}