membersystem/src/project/templates/base.html

74 lines
2.5 KiB
HTML
Raw Normal View History

2021-02-28 11:41:10 +00:00
{% load utils %}
{% load i18n %}
{% load static %}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<title>{% block head_title %}{% endblock %} {{ site.name }}</title>
2023-10-04 10:26:20 +00:00
<link rel="stylesheet" href="{% static "/fonts/inter.css" %}">
<link rel="stylesheet" href="{% static "/css/style.css" %}">
</head>
<body>
<header>
<h1> data.coop membersystem </h1>
2023-10-04 10:30:42 +00:00
<a class="logout" href="{% url "account_logout" %}">Log out</a>
</header
<main>
<aside>
<div>
<figure></figure>
<h2>{{ user }}</h2>
<dl>
<dt>Membership</dt>
<dd>{% if current_membership %} Active {% endif %}</dd>
<dt>Period</dt>
<dd>{% if current_membership %} Until {{ current_period.upper }} <span class="time_remaining">({{ current_period.upper|timeuntil }})</span>{% endif %}</dd>
<dt>Membership type</dt>
<dd>Normal member</dd>
</dl>
</div>
</aside>
<nav>
<ol>
2023-10-20 21:10:53 +00:00
<li>
<a href="/" class="{% active_path "index" "current" %}">
Dashboard
</a>
</li>
<li>
<a href="/services" class="{% active_path "services" "current" %}">
Services
</a>
</li>
<li>
<a href="{% url "account_email" %}" class="{% active_path "account_email" "current" %}">
Email
</a>
</li>
{% if perms.membership.administrate_memberships %}
<li>
<a href="{% url "admin-members" %}" class="{% active_path "admin-members" "current" %}">
Admin
</a>
</li>
{% endif %}
</ol>
</nav>
<article>
{% block content %}{% endblock %}
</article>
</main>
<footer>
data.coop membersystem version 0.0.1
</footer>
</body>
</html>