mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-02-25 01:21:20 +00:00
Font Awesome 4 adds 106kB of dependencies on each page and require to query multiple assets. It also sometimes causes icons to appear after page loading. Font Awesome 4 is deprecated and replaced by version 5 which is not packaged in every GNU/Linux distributions. This commit replaces icons with inline SVG which does not require external assets, does not require an additionnal dependency and is widely supported by modern browsers. It makes the page loading faster and enables us to no longer require fonts-font-awesome Debian package.
60 lines
2.5 KiB
HTML
60 lines
2.5 KiB
HTML
{% extends "member/base.html" %}
|
|
{% comment %}
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
{% endcomment %}
|
|
{% load render_table from django_tables2 %}
|
|
{% load i18n perms %}
|
|
|
|
{% block profile_content %}
|
|
{% if managers.data %}
|
|
<div class="card">
|
|
<div class="card-header position-relative" id="clubListHeading">
|
|
<a class="font-weight-bold">
|
|
<svg class="bi bi-users" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
<path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
|
|
</svg>
|
|
{% trans "Club managers" %}
|
|
</a>
|
|
</div>
|
|
{% render_table managers %}
|
|
</div>
|
|
|
|
<hr>
|
|
{% endif %}
|
|
|
|
{% if member_list.data %}
|
|
<div class="card">
|
|
<div class="card-header position-relative" id="clubListHeading">
|
|
<a class="stretched-link font-weight-bold" href="{% url 'member:club_members' pk=club.pk %}">
|
|
<svg class="bi bi-users" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
<path d="M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H7zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
|
|
<path fill-rule="evenodd" d="M5.216 14A2.238 2.238 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.325 6.325 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1h4.216z"/>
|
|
<path d="M4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z"/>
|
|
</svg>
|
|
{% trans "Club members" %}
|
|
</a>
|
|
</div>
|
|
{% render_table member_list %}
|
|
</div>
|
|
|
|
<hr>
|
|
{% endif %}
|
|
|
|
{% if history_list.data %}
|
|
<div class="card">
|
|
<div class="card-header position-relative" id="historyListHeading">
|
|
<a class="stretched-link font-weight-bold" {% if "note.view_note"|has_perm:club.note %}
|
|
href="{% url 'note:transactions' pk=club.note.pk %}" {% endif %}>
|
|
<svg class="bi bi-euro" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
<path d="M4 9.42h1.063C5.4 12.323 7.317 14 10.34 14c.622 0 1.167-.068 1.659-.185v-1.3c-.484.119-1.045.17-1.659.17-2.1 0-3.455-1.198-3.775-3.264h4.017v-.928H6.497v-.936c0-.11 0-.219.008-.329h4.078v-.927H6.618c.388-1.898 1.719-2.985 3.723-2.985.614 0 1.175.05 1.659.177V2.194A6.617 6.617 0 0 0 10.341 2c-2.928 0-4.82 1.569-5.244 4.3H4v.928h1.01v1.265H4v.928z"/>
|
|
</svg>
|
|
{% trans "Transaction history" %}
|
|
</a>
|
|
</div>
|
|
<div id="history_list">
|
|
{% render_table history_list %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|