trentpalmerdotorg/tp/templates/base.html

58 lines
1.8 KiB
HTML
Raw Normal View History

2021-02-24 20:13:54 -08:00
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
2021-04-05 13:00:35 -07:00
<meta name="description" content="A Django Web App for hosting podcasts">
2021-02-24 20:13:54 -08:00
<title>
{% url 'audio:home' as home_url %}
{% url 'accounts:login' as login_url %}
{% url 'accounts:logout' as logout_url %}
{% url 'accounts:edit_profile' as edit_profile_url %}
{% url 'accounts:password_change' as password_change_url %}
{% url 'accounts:enable_totp' as enable_totp_url %}
{% url 'accounts:disable_totp' as disable_totp_url %}
{% url 'audio:new_feed' as new_feed_url %}
{% url 'audio:feeds' as feeds_url %}
2021-03-13 13:40:41 -08:00
{% url 'accounts:register' as register_url %}
2021-12-03 00:49:05 -08:00
{% url 'about:apps' as apps_url %}
2021-02-24 20:13:54 -08:00
{% if request.path == home_url %}
Home
{% elif request.path == login_url %}
Login?
{% elif request.path == logout_url %}
Logout?
{% elif request.path == edit_profile_url %}
Edit Profile?
{% elif request.path == password_change_url %}
Change Password?
{% elif request.path == enable_totp_url %}
Enable 2fa?
{% elif request.path == disable_totp_url %}
Disable 2fa?
{% elif request.path == new_feed_url %}
New Feed?
{% elif request.path == feeds_url %}
Feeds
2021-03-13 13:40:41 -08:00
{% elif request.path == register_url %}
Register
2021-12-03 00:49:05 -08:00
{% elif request.path == apps_url %}
Applications
2021-02-24 20:13:54 -08:00
{% endif %}
{{ title }}
</title>
2021-02-25 00:51:45 -08:00
{% block morehead %}{% endblock morehead %}
2021-02-24 20:13:54 -08:00
{% load bootstrap4 %}
{% bootstrap_css %}
{% bootstrap_messages %}
</head>
<body>
{% block content %}{% endblock content %}
{% bootstrap_javascript jquery='full' %}
</body>
</html>