Skip to content

Commit

Permalink
corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
bhpayne committed Sep 7, 2024
1 parent 2703d2f commit 168800a
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions flask/templates/_pg_base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!-- see https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-ii-templates -->
<!DOCTYPE html>
<HTML lang='en'>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
{% if title %}
<title>Physics Derivation Graph: {{ title }}</title>
{% else %}
<title>Welcome to the Physics Derivation Graph</title>
{% endif %}

{% include '_js_head.html' %}

<meta property="og:type" content="website" /> <!-- https://ogp.me/#types -->
<meta property="og:site_name" content="Physics Derivation Graph" /> <!-- https://ogp.me/#optional -->

<!-- defines the default zoom for mobile devices -->
<meta name="viewport" content="width=device-width, initial-scale=1" />

</head>
<body>

<!-- https://flask.palletsprojects.com/en/2.0.x/patterns/flashing/ -->
{% with messages = get_flashed_messages() %}
{% if messages %}
{% if messages|length > 1 %}
MESSAGES:
{% else %}
MESSAGE:
{% endif %}
<ul class=flashes>
{% for message in messages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}

{% block content %}

{% endblock %}

<P>timing of queries (in seconds):{% for what_is_being_timed,duration_in_seconds in query_time_dict.items() %}
<UL>
<LI>{{ what_is_being_timed }}, {{ duration_in_seconds }}</LI>
</UL>
{% endfor %}



{% include '_pg_footer.html' %}

</body>
</html>

0 comments on commit 168800a

Please sign in to comment.