116 lines
4.6 KiB
Django/Jinja
116 lines
4.6 KiB
Django/Jinja
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="pyramid web application">
|
|
<link rel="shortcut icon" href="{{request.static_url('cao_blogr:static/pyramid-16x16.png')}}">
|
|
|
|
<title>{{page_title}}</title>
|
|
|
|
<!-- Bootstrap core CSS -->
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
|
|
<!-- Custom styles for this scaffold -->
|
|
<link href="{{request.static_url('cao_blogr:static/theme.css')}}" rel="stylesheet">
|
|
|
|
<!-- HTML5 shiv and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
<!--[if lt IE 9]>
|
|
<script src="//oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js" integrity="sha384-0s5Pv64cNZJieYFkXYOTId2HMA2Lfb6q2nAcx2n0RTLUnCAoTTsS0nKEO27XyKcY" crossorigin="anonymous"></script>
|
|
<script src="//oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js" integrity="sha384-ZoaMbDF+4LeFxg6WdScQ9nnR1QC2MIRxA1O9KWEXQwns1G8UNyIEZIQidzb0T1fo" crossorigin="anonymous"></script>
|
|
<![endif]-->
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<nav class="navbar navbar-default navbar-fixed-top">
|
|
<div class="container-fluid">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" class="text-center" href="{{ request.route_url('home') }}" alt="Accueil">
|
|
<img src="{{ request.static_url('cao_blogr:static/logo-msp.jpg') }}" class="logo" /></a>
|
|
</div>
|
|
<div class="collapse navbar-collapse" id="myNavbar">
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li><a href="{{ request.route_url('blog_search') }}"><span class="glyphicon glyphicon-search"></span></a></li>
|
|
<!-- si anonyme, lien pour se connecter -->
|
|
{% if request.authenticated_userid %}
|
|
<li><a href="{{request.route_url('logout')}}">
|
|
<span class="glyphicon glyphicon-log-out"></span> {{request.authenticated_userid}}</a></li>
|
|
{% else %}
|
|
<li><a href="{{request.route_url('login')}}"><span class="glyphicon glyphicon-log-in"></span></a></li>
|
|
{% endif %}
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<!-- display carousel -->
|
|
{% if request.path == '/' %}
|
|
{% block carousel %}
|
|
{% endblock carousel %}
|
|
{% endif %}
|
|
|
|
<!-- Container (Above content Section) -->
|
|
<div class="container">
|
|
<br />
|
|
<!-- Display Page Title -->
|
|
{% if page_title %}
|
|
<h1>{{ page_title }}</h1>
|
|
{% endif %}
|
|
<br />
|
|
<div id="messages">
|
|
{% for queue in ['', 'info', 'success', 'warning', 'danger'] %}
|
|
{% for message in request.session.pop_flash(queue) %}
|
|
<div class="alert alert-{{queue}}">
|
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
|
{{ message }}
|
|
</div>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<!-- display page content-->
|
|
{% block content %}
|
|
<p>No content</p>
|
|
{% endblock content %}
|
|
<br />
|
|
<br />
|
|
</div>
|
|
|
|
<!-- Footer -->
|
|
<footer class="text-center">
|
|
<div class="row">
|
|
<p class="text-center"><big>
|
|
| <a href="{{ request.route_url('topic', topic='FR1') }}">Enseignements</a>
|
|
| <a href="{{ request.route_url('topic', topic='FR2') }}">Pratique</a>
|
|
| <a href="{{ request.route_url('topic', topic='FR3') }}">Qi Gong</a>
|
|
| <a href="{{ request.route_url('topic', topic='FR4') }}">Sciences</a>
|
|
| <a href="{{ request.route_url('topic', topic='FR9') }}">Méditation Sunyata</a>
|
|
|</big>
|
|
</p>
|
|
<p class="text-center">
|
|
© 2022 - Méditation SUNYATA Paris
|
|
 | <a href="{{ request.route_url('blog', id=1, slug='mentions-l%25C3%25A9gales') }}">Mentions légales</a>
|
|
|
|
{% if request.authenticated_userid == 'admin' %}
|
|
 | <a href="{{request.route_url('users')}}">Utilisateurs</a>
|
|
{% endif %}
|
|
|
|
</p>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- Bootstrap core JavaScript
|
|
================================================== -->
|
|
<!-- Placed at the end of the document so the pages load faster -->
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
|
|
</body>
|
|
</html>
|