0001-templates-create-a-base-public-template-65381.patch
lingo/manager/templates/lingo/manager_base.html | ||
---|---|---|
1 |
{% extends "lingo/base.html" %} |
|
2 |
{% load i18n static %} |
|
1 |
{% extends "gadjo/base.html" %} |
|
2 |
{% load i18n static gadjo %} |
|
3 |
{% block page-title %}Lingo{% endblock %} |
|
4 |
{% block site-title %}Lingo{% endblock %} |
|
5 | ||
6 |
{% block logout-url %}{% url "auth_logout" %}{% endblock %} |
|
3 | 7 | |
4 | 8 |
{% block extrascripts %} |
5 | 9 |
{{ block.super }} |
... | ... | |
10 | 14 |
{{ block.super }} |
11 | 15 |
<a href="{% url 'lingo-manager-homepage' %}">{% trans "Payments" %}</a> |
12 | 16 |
{% endblock %} |
17 | ||
18 |
{% block content %} |
|
19 |
{% endblock %} |
lingo/manager/templates/lingo/manager_homepage.html | ||
---|---|---|
1 |
{% extends "lingo/base.html" %} |
|
1 |
{% extends "lingo/manager_base.html" %}
|
|
2 | 2 |
{% load i18n %} |
3 | 3 | |
4 | 4 |
{% block appbar %} |
lingo/templates/lingo/base.html | ||
---|---|---|
1 |
{% extends "gadjo/base.html" %} |
|
2 |
{% load i18n static gadjo %} |
|
3 |
{% block page-title %}Lingo{% endblock %} |
|
4 |
{% block site-title %}Lingo{% endblock %} |
|
5 | ||
6 |
{% block logout-url %}{% url "auth_logout" %}{% endblock %} |
|
7 | ||
8 |
{% block content %} |
|
9 |
{% endblock %} |
lingo/templates/lingo/homepage.html | ||
---|---|---|
1 |
{% extends "lingo/base.html" %} |
|
1 |
{% load static gadjo i18n %}<!DOCTYPE html> |
|
2 |
<html> |
|
3 |
<head> |
|
4 |
<meta charset="utf-8"/> |
|
5 |
<title>Lingo - {% trans "Payments" %}</title> |
|
6 |
</head> |
|
7 |
<body> |
|
8 |
<div id="title"><h1>{% trans "Payments" %}</h1></div> |
|
9 |
<div id="content"> |
|
10 | ||
11 |
{% block messages %} |
|
12 |
{% if messages %} |
|
13 |
<div id="messages"> |
|
14 |
<ul class="messages"> |
|
15 |
{% for message in messages %} |
|
16 |
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li> |
|
17 |
{% endfor %} |
|
18 |
</ul> |
|
19 |
</div> |
|
20 |
{% endif %} |
|
21 |
{% endblock %} |
|
22 | ||
23 |
{% block lingo-content %} |
|
24 |
{% endblock %} |
|
25 |
</div> |
|
26 |
<div id="footer"> |
|
27 |
{% block footer %} |
|
28 |
<span style="display: none">{% now "Y-m-d H:i:s" %}</span> {# generation time #} |
|
29 |
{% endblock %} |
|
30 |
</div> |
|
31 |
</body> |
|
32 |
</html> |
lingo/templates/lingo/mellon_base_template.html | ||
---|---|---|
1 |
{% extends "lingo/homepage.html" %} |
|
2 | ||
3 |
{% block lingo-content %} |
|
4 |
{% block mellon_content %} |
|
5 |
{% endblock %} |
|
6 |
{% endblock %} |
lingo/templates/registration/login.html | ||
---|---|---|
1 |
{% extends "lingo/base.html" %} |
|
1 |
{% extends "lingo/manager_base.html" %}
|
|
2 | 2 |
{% load i18n %} |
3 | 3 | |
4 | 4 |
{% block content %} |
lingo/urls.py | ||
---|---|---|
40 | 40 |
r'^accounts/mellon/', |
41 | 41 |
include('mellon.urls'), |
42 | 42 |
kwargs={ |
43 |
'template_base': 'lingo/base.html',
|
|
43 |
'template_base': 'lingo/mellon_base_template.html',
|
|
44 | 44 |
}, |
45 | 45 |
) |
46 | 46 |
) |
47 |
- |