pfidp: use static templatetag

This commit is contained in:
Thomas NOËL 2014-01-07 14:06:27 +01:00
parent 45a822e546
commit 38017c4df5
6 changed files with 19 additions and 24 deletions

View File

@ -9,30 +9,26 @@
<!-- Le styles -->
<link href="{{ MEDIA_URL }}bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="{% static "bootstrap/css/bootstrap.css" %}" rel="stylesheet">
<style type="text/css">
body { padding-top: 60px; padding-bottom: 40px; }
.sidebar-nav { padding: 9px 0; }
</style>
<link href="{{ MEDIA_URL }}bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="{% static "bootstrap/css/bootstrap-responsive.css" %}" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="{{ MEDIA_URL }}bootstrap/html5.js"></script>
<script src="{% static "html5shiv/js/html5shiv.js" %}"></script>
<![endif]-->
{% block head %}{% endblock %}
<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ MEDIA_URL }}univnautes/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ MEDIA_URL }}univnautes/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ MEDIA_URL }}univnautes/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="{{ MEDIA_URL }}univnautes/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="{{ MEDIA_URL }}univnautes/ico/favicon.png">
<link rel="shortcut icon" href="{% static "univnautes/img/favicon.ico" %}">
<!-- local CSS -->
<link rel="stylesheet" href="{{ MEDIA_URL }}univnautes/css/univnautes.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="{{ MEDIA_URL }}univnautes/css/univnautes.ie.css" /><![endif]-->
<link rel="stylesheet" href="{% static "univnautes/css/univnautes.css" %}"/>
<!--[if lte IE 8]><link rel="stylesheet" href="{% static "univnautes/css/univnautes.ie.css" %}"/><![endif]-->
</head>
@ -72,7 +68,7 @@
<hr>
<footer>
<p>&copy; UNPIdF 2013<!-- — <a href="licences">licences</a> --></p>
<p>&copy; UNPIdF 2014
{% block footer %}{% endblock %}
</footer>
@ -81,8 +77,8 @@
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="{{ MEDIA_URL }}jquery/js/jquery-1.8.3.min.js"></script>
<script src="{{ MEDIA_URL }}bootstrap/js/bootstrap.min.js"></script>
<script src="{% static "jquery/js/jquery-1.10.2.min.js" %}"></script>
<script src="{% static "bootstrap/js/bootstrap.min.js" %}"></script>
{% block end %}{% endblock %}
</body>

View File

@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="{{ MEDIA_URL }}css/style.css" />
<link rel="stylesheet" href="{% static "css/style.css" %}" />
<title>{% block title %}User test{% endblock %}</title>
{% block extra_scripts %}
{% endblock %}

View File

@ -7,7 +7,7 @@
<meta name="description" content="">
<meta name="author" content="">
<link href="{{ MEDIA_URL }}bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="{% static "bootstrap/css/bootstrap.css" %}" rel="stylesheet">
<style>
body { padding-top: 60px; }
th { text-align: right; padding-right: 20px; }
@ -16,15 +16,15 @@
ul.errorlist li { color: #f00; }
.helptext { font-size: 0.8em; font-style: italic; }
</style>
<link href="{{ MEDIA_URL }}bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="{{ MEDIA_URL }}bootstrap/css/datepicker.css" rel="stylesheet">
<link href="{% static "bootstrap/css/bootstrap-responsive.css" %}" rel="stylesheet">
<link href="{% static "bootstrap/css/datepicker.css" %}" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="{{ MEDIA_URL }}js/html5.js"></script>
<script src="{% static "html5shiv/js/html5shiv.js" %}></script>
<![endif]-->
<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="{% static "jquery/js/jquery-1.10.2.min.js" %}"></script>
</head>
@ -34,7 +34,7 @@
<div class="navbar-inner">
<div class="container">
<a class="brand" href="/users-admin/">UnivNautes IdP</a>
<div class="btn-group pull-right"><a href="/logout" class="btn"><i class="icon-off"></i> Déconnexion</a></div>
<div class="btn-group pull-right"><a href="/logout" class="btn"><i class="icon-off"></i> Déconnexion</a></div>
<div class="nav">
<ul class="nav">{% block nav %}{% endblock %}</ul>
</div>
@ -55,7 +55,6 @@
{{ message }}
</div>
{% endfor %}
<script src="{{ MEDIA_URL }}bootstrap/js/bootstrap-alert.js"></script>
<script>$(".alert").alert();</script>
{% endif %}
{% endblock %}

View File

@ -20,7 +20,7 @@
</div>
</form>
<script src="{{ MEDIA_URL }}bootstrap/js/bootstrap-datepicker-fr.js"></script>
<script src="{% static "bootstrap/js/bootstrap-datepicker.js" %}"></script>
<script>
$(function(){ $('input.datepicker').datepicker({ format: 'dd/mm/yyyy', weekStart: 1 }); });
</script>

View File

@ -68,7 +68,7 @@
{% csrf_token %}
</form>
<script src="{{ MEDIA_URL }}js/stupidtable.min.js"></script>
<script src="{% static "jquery/js/stupidtable.js" %}"></script>
<script>
$(function(){ $("#usersTable").stupidtable(); });
</script>

View File

@ -26,7 +26,7 @@
</div>
</form>
<script src="{{ MEDIA_URL }}bootstrap/js/bootstrap-datepicker-fr.js"></script>
<script src="{% static "bootstrap/js/bootstrap-datepicker.js" %}"></script>
<script>
$(function(){ $('input.datepicker').datepicker({ format: 'dd/mm/yyyy', weekStart: 1 }); });
</script>