summaryrefslogtreecommitdiffstats
path: root/virtualenv
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2014-01-07 13:06:27 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2014-01-07 13:06:27 (GMT)
commit38017c4df5ecd6ff217f7fb399067aeb0330e955 (patch)
treedf2fb84f3267058e05c3c50c929dd4cc11ba3686 /virtualenv
parent45a822e546a4a70fd581bd28fa563d4b26f3aaea (diff)
downloadunivnautes-old-38017c4df5ecd6ff217f7fb399067aeb0330e955.zip
univnautes-old-38017c4df5ecd6ff217f7fb399067aeb0330e955.tar.gz
univnautes-old-38017c4df5ecd6ff217f7fb399067aeb0330e955.tar.bz2
pfidp: use static templatetag
Diffstat (limited to 'virtualenv')
-rw-r--r--virtualenv/pfidp/templates/base0.html22
-rw-r--r--virtualenv/pfidp/templates/iframe.html2
-rw-r--r--virtualenv/pfidp/templates/users_admin/base.html13
-rw-r--r--virtualenv/pfidp/templates/users_admin/create.html2
-rw-r--r--virtualenv/pfidp/templates/users_admin/index.html2
-rw-r--r--virtualenv/pfidp/templates/users_admin/update.html2
6 files changed, 19 insertions, 24 deletions
diff --git a/virtualenv/pfidp/templates/base0.html b/virtualenv/pfidp/templates/base0.html
index 7f64cc1..7a17b88 100644
--- a/virtualenv/pfidp/templates/base0.html
+++ b/virtualenv/pfidp/templates/base0.html
@@ -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>
diff --git a/virtualenv/pfidp/templates/iframe.html b/virtualenv/pfidp/templates/iframe.html
index d3e77be..e4e0b95 100644
--- a/virtualenv/pfidp/templates/iframe.html
+++ b/virtualenv/pfidp/templates/iframe.html
@@ -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 %}
diff --git a/virtualenv/pfidp/templates/users_admin/base.html b/virtualenv/pfidp/templates/users_admin/base.html
index 6f08f15..ef51395 100644
--- a/virtualenv/pfidp/templates/users_admin/base.html
+++ b/virtualenv/pfidp/templates/users_admin/base.html
@@ -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 %}
diff --git a/virtualenv/pfidp/templates/users_admin/create.html b/virtualenv/pfidp/templates/users_admin/create.html
index 5e4de22..0a310b4 100644
--- a/virtualenv/pfidp/templates/users_admin/create.html
+++ b/virtualenv/pfidp/templates/users_admin/create.html
@@ -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>
diff --git a/virtualenv/pfidp/templates/users_admin/index.html b/virtualenv/pfidp/templates/users_admin/index.html
index 6ed3461..07eec29 100644
--- a/virtualenv/pfidp/templates/users_admin/index.html
+++ b/virtualenv/pfidp/templates/users_admin/index.html
@@ -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>
diff --git a/virtualenv/pfidp/templates/users_admin/update.html b/virtualenv/pfidp/templates/users_admin/update.html
index 5dcce75..d394579 100644
--- a/virtualenv/pfidp/templates/users_admin/update.html
+++ b/virtualenv/pfidp/templates/users_admin/update.html
@@ -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>