47 lines
1.4 KiB
HTML
47 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% load static %}
|
|
{% load i18n %}
|
|
|
|
{% block navigation %}
|
|
{% include "kaehmy_navigation.html" %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div>
|
|
<div>
|
|
<h2>{% trans "All kaehmys" %}</h2>
|
|
</div>
|
|
|
|
<div>
|
|
<h6>{% trans "Total kaehmys:" %} {{ application_count }}</h6>
|
|
</div>
|
|
|
|
{% for application in applications %}
|
|
<div class="card">
|
|
<div class="card-block">
|
|
<h4 class="card-title">{{ application.name }}</h4>
|
|
<h5 class=class="card-subtitle mb-2 text-muted">{% trans "Roles" %}:</h5>
|
|
{% for role in application.custom_roles.all %}
|
|
<h6>{{ role.name }}</h6>
|
|
{% endfor %}
|
|
{% for role in application.preset_roles.all %}
|
|
<h6>{{ role.name }}</h6>
|
|
{% endfor %}
|
|
|
|
<p>{{ application.text }}</p>
|
|
|
|
<a type="button" style="cursor: pointer" data-toggle="collapse" data-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
|
|
{% trans "Show comments" %} ({{ application.comment_count }})
|
|
</a>
|
|
<div class="collapse" id="collapseExample">
|
|
{% for message in application.messages.all %}
|
|
{% include "kaehmy_message.html" with messages=message.messages.all %}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endblock content %}
|