2021-09-25 01:10:06 +00:00
|
|
|
{% load i18n %}
|
|
|
|
{% load markdown %}
|
|
|
|
{% load interaction %}
|
|
|
|
|
|
|
|
<div class="columns is-multiline">
|
2021-10-09 05:11:11 +00:00
|
|
|
{% for group in groups %}
|
2021-09-25 01:10:06 +00:00
|
|
|
<div class="column is-one-quarter">
|
|
|
|
<div class="card is-stretchable">
|
|
|
|
<header class="card-header">
|
|
|
|
<h4 class="card-header-title">
|
2021-10-03 01:03:37 +00:00
|
|
|
<a href="{{ group.local_path }}">{{ group.name }}</a> <span class="subtitle">{% include 'snippets/privacy-icons.html' with item=group %}</span>
|
2021-09-25 01:10:06 +00:00
|
|
|
</h4>
|
2021-09-27 07:50:38 +00:00
|
|
|
{% if group.user == user %}
|
2021-09-25 01:10:06 +00:00
|
|
|
<div class="card-header-icon">
|
2021-09-27 07:50:38 +00:00
|
|
|
{% trans "Manager" as text %}
|
|
|
|
<span class="icon icon-star-full has-text-grey" title="{{ text }}">
|
2021-09-25 01:10:06 +00:00
|
|
|
<span class="is-sr-only">{{ text }}</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="card-content is-flex-grow-0">
|
|
|
|
<div class="is-clipped" {% if group.description %}title="{{ group.description }}"{% endif %}>
|
|
|
|
{% if group.description %}
|
|
|
|
{{ group.description|to_markdown|safe|truncatechars_html:30 }}
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|