30 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% from 'common/macros.html' import infobox with context %}
 | 
						|
<!DOCTYPE HTML>
 | 
						|
<html lang="en">
 | 
						|
<head>
 | 
						|
  <meta charset="UTF-8">
 | 
						|
  {% if self.title() %}
 | 
						|
    <title>{{config.SITE_NAME}} - {% block title %}{% endblock %}</title>
 | 
						|
  {% else %}
 | 
						|
    <title>{{config.SITE_NAME}}</title>
 | 
						|
  {% endif %}
 | 
						|
  <link rel="stylesheet" href="{{ ("/static/css/%s.css" % get_prefers_theme()) | cachebust }}">
 | 
						|
  <link rel="icon" type="image/png" href="/static/favicon.png">
 | 
						|
</head>
 | 
						|
<body>
 | 
						|
  {% include 'common/topnav.html' %}
 | 
						|
  {% with messages = get_flashed_messages(with_categories=true) %}
 | 
						|
    {% if messages %}
 | 
						|
      {% for category, message in messages %}
 | 
						|
        {{ infobox(message, category) }}
 | 
						|
      {% endfor %}
 | 
						|
    {% endif %}
 | 
						|
  {% endwith %}
 | 
						|
  {% block content %}{% endblock %}
 | 
						|
  <footer class="darkbg">
 | 
						|
    <span>Pyrom commit <a href="{{ "https://git.poto.cafe/yagich/pyrom/commit/" + __commit }}">{{ __commit[:8] }}</a></span>
 | 
						|
  </footer>
 | 
						|
  <script src="{{ "/static/js/ui.js" | cachebust }}"></script>
 | 
						|
  <script src="{{ "/static/js/date-fmt.js" | cachebust }}"></script>
 | 
						|
</body>
 |