Coverage for templates / _base.html: 100%
76 statements
« prev ^ index » next coverage.py v7.13.2, created at 2026-03-10 14:10 +0000
« prev ^ index » next coverage.py v7.13.2, created at 2026-03-10 14:10 +0000
2{% load static %}
3{% load i18n %}
5{# variables for page: #}
6{% trans "Healthy Meals: Diet Assistant" as the_app %}
7{% trans "Welcome" as welcome %}
9<!DOCTYPE html>
10<html>
11 <head>
12 <title>{{ the_app }} - {% block page_title %}{% endblock %}</title>
13 <meta name="description" content="Healthy Meals Diet Assistant" />
14 <meta name="keywords" content="nutrients, food nutrients, healthy foods, healthy meals, diet, diet assistant, healthy recipes, recipe assistant, open source nutrition" />
15 <meta name="viewport" content="width=device-width, initial-scale=1">
16 <meta charset="utf-8">
17 <link rel="stylesheet" href="{% static 'css/base.css' %}" media="screen" />
18 <script src="{% static 'js/base.js' %}"></script>
19 <script>
20 window.onload = pageOnLoad;
21 </script>
22 </head>
23 <body>
24 <main class="vert-full">
25 <header class="flexAround">
26 <section id="logo" class="flexCol">
27 <a href="./index.html" title="Healthy Meals Diet Assistant Home Page">
28 <span>
29 </span>
30 </a>
31 </section>
32 <section id="mainHeader" class="">
33 <header>
34 <h1>{{ the_app }}</h1>
35 <h2>{% block page_h2 %}{% endblock %}</h2>
36 </header>
37 </section>
38 <section id="fontSizer" class="">
39 <ul>
40 <li><a id="smallerFont" href="javascript:setFontSize('8px')" title="Set Site Font Size to the smallest size font"><span>A</span></a></li>
41 <li><a id="smallFont" href="javascript:setFontSize('11px')" title="Set Site Font Size to the smaller size font"><span>A</span></a></li>
42 <li><a id="medFont" href="javascript:setFontSize('14px')" title="Set Site Font Size to the medium size font"><span>A</span></a></li>
43 <li><a id="largeFont" href="javascript:setFontSize('18px')" title="Set Site Font Size to the larger size font"><span>A</span></a></li>
44 <li><a id="largerFont" href="javascript:setFontSize('22px')" title="Set Site Font Size to the largest size font"><span>A</span></a></li>
45 </ul>
46 </section>
47 <section id="topSysMenu" class="">
48 <ul>
49 <li>{{welcome}}:</li>
50 {% if user.is_authenticated %}
51 <li id="tsm_name_email">{{ user.name_or_email }}</li>
52 <li><a href="{% url 'account_change_password' %}">{% trans "Change password" %}</a></li>
53 <li><a href="{% url 'account_logout' %}">{% trans "Sign out" %}</a></li>
54 {% else %}
55 <li id="tsm_friend">{% trans "Friend" %}</li>
56 <li><a href="{% url 'account_login' %}" class="btn btn-outline-secondary">{% trans "Log in" %}</a></li>
57 <li><a href="{% url 'account_signup' %}" class="btn btn-primary ms-2">{% trans "Sign up" %}</a>
58 {% endif %}
59 </ul>
60 </section>
61 </header>
62 <nav id="topMenu">
63 <ul class="flexRow">
64 <li><span><a href="{% url 'home' %}">{% trans "Home" %}</a></span></li>
65 <li><span><a href="{% url 'about' %}">{% trans "About" %}</a></span></li>
66 <li><span><a href="https://tayloredwebsites.github.io/healthy-meals/index.html">{% trans "Tech Docs" %}</a></span></li>
67 </ul>
68 </nav>
69 <div id="errorMessage">
70 {% block page_errors %}{% endblock %}
71 </div>
72 <main class="vert-full">
73 {% block page_body %}(no page_body){% endblock %}
74 </main>
75 </main>
76 </body>
77 <footer>{% block page_footer %}{% endblock %}</footer>
78</html>