Template
Extract always-on public/portal/UTM plus optional email_sms, directmail, blog, payments, social, and social_ai so new client sites can be bootstrapped from this seed. Refs #1 Refs #2 Co-authored-by: Cursor <cursoragent@cursor.com>
72 lines
2.5 KiB
HTML
72 lines
2.5 KiB
HTML
{% load static %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{% block title %}Portal · {{ SITE_NAME }}{% endblock %}</title>
|
|
<meta name="robots" content="noindex, nofollow">
|
|
<link rel="icon" href="{% static 'brand/favicon-32.png' %}" type="image/png">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Work+Sans:300,400,500,700%7CPoppins:400,600,700">
|
|
<link rel="stylesheet" href="{% static 'css/portal.css' %}">
|
|
{% block extra_head %}{% endblock %}
|
|
</head>
|
|
<body class="portal {% block body_class %}{% endblock %}">
|
|
{% if tianji_enabled %}
|
|
<div id="tianji-config"
|
|
data-tracker-url="{{ tianji_tracker_url }}"
|
|
data-website-id="{{ tianji_website_id }}"
|
|
data-page-name="{{ page_name }}"
|
|
{% if user.is_authenticated %}data-user-id="{{ user.pk }}"{% endif %}
|
|
hidden></div>
|
|
{% endif %}
|
|
{% block body %}
|
|
<div class="portal-shell">
|
|
<aside class="portal-sidebar">
|
|
<a class="portal-brand" href="{% url 'dashboard:home' %}">
|
|
<img src="{% static 'brand/logo.png' %}" alt="{{ SITE_NAME }}">
|
|
<span>{{ SITE_NAME }}</span>
|
|
</a>
|
|
<nav class="portal-nav">
|
|
{% regroup portal_nav by group as nav_groups %}
|
|
{% for group in nav_groups %}
|
|
<div class="nav-section">{{ group.grouper }}</div>
|
|
{% for item in group.list %}
|
|
<a class="{% if nav_section == item.section %}active{% endif %}" href="{% url item.url_name %}">{{ item.label }}</a>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</nav>
|
|
</aside>
|
|
<div class="portal-main">
|
|
<div class="portal-topbar">
|
|
<h1>{% block topbar_title %}Portal{% endblock %}</h1>
|
|
<div class="portal-user">
|
|
Signed in as <strong>{{ user.get_username }}</strong>
|
|
·
|
|
<form method="post" action="{% url 'accounts:logout' %}">
|
|
{% csrf_token %}
|
|
<button type="submit" class="linkish">Sign out</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="portal-content">
|
|
{% if messages %}
|
|
<ul class="portal-flash">
|
|
{% for message in messages %}
|
|
<li class="{{ message.tags }}">{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% block portal_content %}{% endblock %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
{% if tianji_enabled %}
|
|
<script src="{% static 'js/tianji-consent.js' %}"></script>
|
|
{% endif %}
|
|
{% block tracking_events %}{% endblock %}
|
|
{% block extra_js %}{% endblock %}
|
|
</body>
|
|
</html>
|