2024-02-07 17:31:12 +13:00
|
|
|
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
|
|
|
|
{% extends 'themes/' + theme() + '/base.html' %}
|
|
|
|
{% else %}
|
|
|
|
{% extends "base.html" %}
|
|
|
|
{% endif %}
|
2023-08-26 15:41:11 +12:00
|
|
|
{% from 'bootstrap5/form.html' import render_form %}
|
2024-02-19 15:56:56 +13:00
|
|
|
{% set active_child = type %}
|
2023-08-26 15:41:11 +12:00
|
|
|
|
|
|
|
{% block app_content %}
|
2023-12-17 00:12:49 +13:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-md-8 position-relative main_pane">
|
2024-01-03 20:14:39 +13:00
|
|
|
{% include "_home_nav.html" %}
|
2023-12-17 00:12:49 +13:00
|
|
|
<div class="post_list">
|
2024-02-06 17:40:03 +13:00
|
|
|
{% for post in posts.items %}
|
2023-12-17 00:12:49 +13:00
|
|
|
{% include 'post/_post_teaser.html' %}
|
|
|
|
{% else %}
|
2024-01-05 14:09:46 +13:00
|
|
|
<p>{{ _('No posts yet. Join some communities to see more.') }}</p>
|
2024-01-05 12:08:30 +13:00
|
|
|
<p><a class="btn btn-primary" href="/communities">{{ _('Explore communities') }}</a></p>
|
2023-12-17 00:12:49 +13:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
2024-01-23 19:17:05 +13:00
|
|
|
<nav aria-label="Pagination" class="mt-4" role="navigation">
|
2023-12-17 00:12:49 +13:00
|
|
|
{% if prev_url %}
|
2024-01-03 20:14:39 +13:00
|
|
|
<a href="{{ prev_url }}" class="btn btn-primary" rel="nofollow">
|
2023-12-17 00:12:49 +13:00
|
|
|
<span aria-hidden="true">←</span> {{ _('Previous page') }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if next_url %}
|
2024-01-03 20:14:39 +13:00
|
|
|
<a href="{{ next_url }}" class="btn btn-primary" rel="nofollow">
|
2023-12-17 00:12:49 +13:00
|
|
|
{{ _('Next page') }} <span aria-hidden="true">→</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
|
2024-02-05 08:39:08 +13:00
|
|
|
<aside id="side_pane" class="col-12 col-md-4 side_pane" role="complementary">
|
2024-01-13 22:09:02 +13:00
|
|
|
<!-- <div class="card">
|
2023-12-17 00:12:49 +13:00
|
|
|
<div class="card-body">
|
|
|
|
<form method="get">
|
|
|
|
<input type="search" name="search" class="form-control mt-2" placeholder="{{ _('Search') }}" />
|
|
|
|
</form>
|
|
|
|
</div>
|
2024-01-13 22:09:02 +13:00
|
|
|
</div> -->
|
2023-12-17 00:12:49 +13:00
|
|
|
|
|
|
|
<div class="card mt-3">
|
|
|
|
<div class="card-header">
|
|
|
|
<h2>{{ _('Active communities') }}</h2>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<ul class="list-group list-group-flush">
|
|
|
|
{% for community in active_communities %}
|
|
|
|
<li class="list-group-item">
|
2024-01-23 19:17:05 +13:00
|
|
|
<a href="/c/{{ community.link() }}"><img src="{{ community.icon_image() }}" class="community_icon rounded-circle" loading="lazy" alt="" />
|
2023-12-31 12:09:20 +13:00
|
|
|
{{ community.display_name() }}
|
|
|
|
</a>
|
2023-12-17 00:12:49 +13:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2024-01-05 12:08:30 +13:00
|
|
|
<p class="mt-4"><a class="btn btn-primary" href="/communities">{{ _('Explore communities') }}</a></p>
|
2023-12-17 00:12:49 +13:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card mt-3">
|
|
|
|
<div class="card-header">
|
|
|
|
<h2>{{ _('About %(site_name)s', site_name=g.site.name) }}</h2>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<p><strong>{{ g.site.description|safe }}</strong></p>
|
|
|
|
<p>{{ g.site.sidebar|safe }}</p>
|
|
|
|
<p class="mt-4">
|
|
|
|
<a class="no-underline" href="{{ rss_feed }}" rel="nofollow"><span class="fe fe-rss"></span> RSS feed</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-19 15:08:39 +13:00
|
|
|
|
|
|
|
{% include "_inoculation_links.html" %}
|
2024-01-28 21:38:04 +13:00
|
|
|
</aside>
|
2023-12-17 00:12:49 +13:00
|
|
|
</div>
|
2023-08-26 15:41:11 +12:00
|
|
|
{% endblock %}
|