111 lines
4.2 KiB
Django/Jinja
111 lines
4.2 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">
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
|
|
|
|
<!-- Custom styles for this scaffold -->
|
|
<link href="{{request.static_url('cao_blogr:static/theme.css')}}" rel="stylesheet">
|
|
|
|
</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" href="{{ request.route_url('home') }}">CAO Blogr</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>
|
|
{% if request.authenticated_userid %}
|
|
<li class="dropdown">
|
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{request.authenticated_userid}}
|
|
<span class="caret"></span>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
{% if request.authenticated_userid == 'admin' %}
|
|
<li><a href="{{request.route_url('users')}}"><span class="glyphicon glyphicon-user"></span> Utilisateurs</a></li>
|
|
{% endif %}
|
|
<li><a href="{{ request.route_url('portfolio') }}"><span class="glyphicon glyphicon-briefcase"></span> Portfolio</a></li>
|
|
<li><a href="{{ request.route_url('tags') }}"><span class="glyphicon glyphicon-tag"></span> Tags</a></li>
|
|
<li><a href="{{ request.route_url('logout') }}"><span class="glyphicon glyphicon-off"></span> Se déconnecter</a></li>
|
|
</ul>
|
|
</li>
|
|
{% else %}
|
|
<!-- si anonyme, lien pour se connecter -->
|
|
<li><a href="{{ request.route_url('login') }}">
|
|
<span class="glyphicon glyphicon-user"></span></a></li>
|
|
{% endif %}
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
{% if request.path == '/' %}
|
|
{# -- display carousel -- #}
|
|
{% block carousel %}
|
|
{% endblock carousel %}
|
|
{% endif %}
|
|
|
|
<!-- Container (The Page Template Section) -->
|
|
<div class="container">
|
|
<!-- 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">
|
|
© 2017 - Phuoc Cao
|
|
 | <a href="{{ request.route_url('apropos')}}">A propos</a>
|
|
</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.5.1/jquery.min.js"></script>
|
|
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
|
</body>
|
|
</html>
|