Commit 6db92d19 authored by David Seaward's avatar David Seaward Committed by Gogs

Merge branch 'admin_link_17' of david.seaward/account_web into master

parents 3305c960 24eee4e4
......@@ -4,15 +4,20 @@
<link rel="stylesheet" href="{% static 'PuristFlex.css' %}"/>
<title>{{ site_title }} - {{ site_byline }}</title>
<link rel="icon" sizes="960x960" href="{% static 'favicon.png' %}">
<meta name="application-name" content="Purist">
<meta name="application-name" content="{{ site_title }}">
</head>
<body style="text-align: center">
<p style="text-align: right">
{% if username %}
{% if request.user.is_authenticated %}
{% trans "Your are logged in as" %} {{ username }}<br/>
<a href="{% url 'auth_password_change' %}">{% trans "Change password" %}</a><br/>
<a href="{% url 'auth_password_change' %}">{% trans "Change password" %}</a> |
{% if request.user.is_superuser %}
<a href="{% url 'admin:index' %}">{% trans "Admin" %}</a> |
{% endif %}
<a href="{% url 'auth_logout' %}">{% trans "Log out" %}</a>
{% else %}
{% trans "You are not logged in." %}<br/>
......@@ -27,7 +32,7 @@
<p>
<a href="https://plan.puri.st">plan</a> | <a href="https://code.puri.sm/purist">code</a> |
<a href="https://dev.comms.puri.st">test</a> | <a href="/admin/">admin</a>
<a href="https://dev.comms.puri.st">test</a> | deliver
</p>
<p style="font-size: small">
......
......@@ -29,7 +29,10 @@
<div id="log_state">
{% if user.is_authenticated %}
{% trans "Logged in as" %} {{ user.username }}<br/>
<a href="{% url 'auth_password_change' %}">{% trans "Change password" %}</a><br/>
<a href="{% url 'auth_password_change' %}">{% trans "Change password" %}</a> |
{% if user.is_superuser %}
<a href="{% url 'admin:index' %}">{% trans "Admin" %}</a> |
{% endif %}
<a href="{% url 'auth_logout' %}">{% trans "Log out" %}</a>
{% else %}
{% trans "You are not logged in." %}<br/>
......
from django.shortcuts import render
# from registration.backends.simple.views import
from purist_account import settings
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment