Commit 69e40044 authored by David Seaward's avatar David Seaward

move templates into "purist" app

* add (empty) jslicense link
* add site provider to templates
parent d843b54f
......@@ -60,7 +60,9 @@ SPDX-License-Identifier: AGPL-3.0
<p>
<em>Purist services</em> provided by <a href="https://puri.sm">Purism SPC</a><br/>
<em>Services middleware</em> copyright 2017 Purism SPC and contributors; shared under AGPL-3.0+
(<a href="https://plan.puri.st">project</a>, <a href="{% url 'download-zip' %}">source</a>, <a href="">javascript</a>)
(<a href="https://plan.puri.st/module/middleware">project</a>,
<a href="{% url 'download-zip' %}">source</a>,
<a href="{% url 'jslicense' %}" rel="jslicense">javascript</a>)
</p>
</div>
......
from django.conf import settings
from django.shortcuts import render
# from django.contrib.auth import views as auth_views
def home(request):
render_data = {
"username": request.user.get_username(),
"site_title": settings.SITE_TITLE,
"site_byline": settings.SITE_BYLINE,
}
return render(request, 'ldapregister/home.html', render_data)
......@@ -109,9 +109,11 @@ SPDX-License-Identifier: AGPL-3.0
<div id="footer_block">
<p>
<em>Purist services</em> provided by <a href="https://puri.sm">Purism SPC</a><br/>
<em>{{ site_title }}</em> provided by <a href="{{ site_provider_link }}">{{ site_provider }}</a><br/>
<em>Services middleware</em> copyright 2017 Purism SPC and contributors; shared under AGPL-3.0+
(<a href="https://plan.puri.st">project</a>, <a href="{% url 'download-zip' %}">source</a>, <a href="">javascript</a>)
(<a href="https://plan.puri.st/module/middleware">project</a>,
<a href="{% url 'download-zip' %}">source</a>,
<a href="{% url 'jslicense' %}" rel="jslicense">javascript</a>)
</p>
</div>
......
......@@ -27,6 +27,8 @@ def userlimit(request):
"username": username,
"site_title": settings.SITE_TITLE,
"site_byline": settings.SITE_BYLINE,
"site_provider": settings.SITE_PROVIDER,
"site_provider_link": settings.SITE_PROVIDER_LINK,
"limits": limits,
"has_limit": has_limit,
"link_subscription": settings.LINK_SUBSCRIPTION,
......
......@@ -60,9 +60,11 @@ SPDX-License-Identifier: AGPL-3.0
<div id="footer_block">
<p>
<em>Purist services</em> provided by <a href="https://puri.sm">Purism SPC</a><br/>
<em>{{ site_title }}</em> provided by <a href="{{ site_provider_link }}">{{ site_provider }}</a><br/>
<em>Services middleware</em> copyright 2017 Purism SPC and contributors; shared under AGPL-3.0+
(<a href="https://plan.puri.st">project</a>, <a href="{% url 'download-zip' %}">source</a>, <a href="">javascript</a>)
(<a href="https://plan.puri.st/module/middleware">project</a>,
<a href="{% url 'download-zip' %}">source</a>,
<a href="{% url 'jslicense' %}" rel="jslicense">javascript</a>)
</p>
</div>
......@@ -70,4 +72,3 @@ SPDX-License-Identifier: AGPL-3.0
</body>
</html>
<!DOCTYPE html>
<!--
Copyright 2017 Purism SPC and contributors
https://plan.puri.st/module/middleware
SPDX-License-Identifier: AGPL-3.0
-->
<html lang="en">
<head>
<title>JavaScript license information</title>
<link rel="icon" sizes="960x960" href="{% static 'favicon.png' %}"/>
<meta name="application-name" content="{{ site_title }}"/>
<meta charset="UTF-8"/>
</head>
<body>
<h1>
JavaScript license information
</h1>
<p>
No licenses. <em>Services middleware</em> does not require JavaScript, minified or otherwise, at this time.
</p>
<table id="jslicense-labels1">
</table>
<p>
Return to <a href="{% url 'home' %}">{{ site_title }}</a>
</p>
</body>
</html>
from django.conf import settings
from django.shortcuts import render
# Create your views here.
def home(request):
render_data = {
"username": request.user.get_username(),
"site_title": settings.SITE_TITLE,
"site_byline": settings.SITE_BYLINE,
"site_provider": settings.SITE_PROVIDER,
"site_provider_link": settings.SITE_PROVIDER_LINK,
}
return render(request, 'purist/home.html', render_data)
def jslicense(request):
render_data = {
"site_title": settings.SITE_TITLE,
}
return render(request, 'purist/jslicense.html', render_data)
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