105 lines
4.1 KiB
Django/Jinja
105 lines
4.1 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="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
|
|
|
<!-- 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" href="{{ request.route_url('home') }}">CTP Blog</a>
|
|
</div>
|
|
<div class="collapse navbar-collapse" id="myNavbar">
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li><a href="#band">TAGS</a></li>
|
|
<li><a href="{{ request.route_url('apropos')}}">A PROPOS</a></li>
|
|
<li><a href="{{ request.route_url('page_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>
|
|
|
|
|
|
<!-- Container (The Page Template Section) -->
|
|
<div class="container">
|
|
<div class="row">
|
|
<!-- 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>
|
|
</div>
|
|
|
|
<!-- Footer -->
|
|
<footer class="text-center">
|
|
<div class="row">
|
|
<p class="text-center">© 2017 - Phuoc Cao
|
|
|
|
{% if request.authenticated_userid == 'admin' %}
|
|
 | <a href="{{request.route_url('users')}}" alt = "Utilisateurs">
|
|
<span class="glyphicon glyphicon-user"></span></a>
|
|
{% endif %}
|
|
|
|
</p>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- Bootstrap core JavaScript
|
|
================================================== -->
|
|
<!-- Placed at the end of the document so the pages load faster -->
|
|
<script src="//code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
|
|
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
|
</body>
|
|
</html>
|