pcards/templates/base.html

84 lines
2.2 KiB
HTML

{% load inclusion_tags %}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="{{ STATIC_URL }}css/bootstrap.css" media="screen" />
<link rel="stylesheet" href="{{ STATIC_URL }}css/custom.css" media="screen" />
<script src="{{ STATIC_URL }}js/jquery-1.8.2.min.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap.min.js"></script>
<title>{% block page_title %}Collec' de cart'{% endblock %}</title>
<script>
$(function() {
// When DOM is ready, select the container element and call the jQCloud method, passing the array of words as the first argument.
$("a.thumbnail, a.randomized").click(function(e) {
e.preventDefault();
$('#modalDisplay').modal();
var request = $.ajax({
url: $(this).attr('href'),
type: 'GET',
dataType: 'html'
});
request.done(function(result) {
$('#modalDisplay').html(result);
});
request.fail(function(jqxhr, textStatus) {
$('#modalDisplay').html('La requête a foiré: ' + textStatus);
});
});
$('legend').click(function(){
$(this).parent().find('.content').slideToggle("slow");
});
});
</script>
</head>
<body>
<div id="modalDisplay" class="modal large hide fade">
</div>
<div class="container">
<header>
<div style="padding-bottom: 1em;">
{% random_pics %}
</div>
<div>
<ul class="nav nav-pills menu">
<li class="active">
<a id="navlink_main" href="{% url index %}">Télécartes</a>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Pays<b class="caret"></b></a>
<ul class="dropdown-menu">
{% nav_menu %}
</ul>
</li>
<li><a id="navlink_tags" href="{% url tags %}">Tags</a>
<li><a id="navlink_charts" href="{% url charts %}">Graphiques</a></li>
<li><a id="navlink_about" href="{% url about %}">A propos</a></li>
<li><a href="/admin">Admin</a></li>
<li class="pull-right">
<form action="/query/" method="POST">
{% csrf_token %}
<input id="q" name="q" type="text" class="search-query" placeholder="Recherche">
</form>
</li>
</ul>
</div>
</header>
{% block main_container %}{% endblock %}
</div>
</body>
</html>