2013-10-11 12:46:23 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
{% load static %}
|
|
|
|
<html>
|
2013-12-11 16:42:34 +00:00
|
|
|
<head>
|
2014-01-15 19:55:06 +00:00
|
|
|
<title>{% if objectname %} {{objectname|title}} - {% endif %}Toaster</title>
|
2013-12-11 16:42:34 +00:00
|
|
|
<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}" type="text/css">
|
|
|
|
<link rel="stylesheet" href="{% static 'css/bootstrap-responsive.min.css' %}" type='text/css'>
|
|
|
|
<link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}" type='text/css'>
|
|
|
|
<link rel="stylesheet" href="{% static 'css/prettify.css' %}" type='text/css'>
|
|
|
|
<link rel="stylesheet" href="{% static 'css/default.css' %}" type='text/css'>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<script src="{% static 'js/jquery-2.0.3.min.js' %}">
|
2013-10-11 12:46:23 +00:00
|
|
|
</script>
|
2014-01-16 13:07:02 +00:00
|
|
|
<script src="{% static 'js/jquery.cookie.js' %}">
|
|
|
|
</script>
|
2013-12-11 16:42:34 +00:00
|
|
|
<script src="{% static 'js/bootstrap.min.js' %}">
|
2013-10-11 12:46:23 +00:00
|
|
|
</script>
|
2013-12-11 16:42:34 +00:00
|
|
|
<script src="{% static 'js/prettify.js' %}">
|
|
|
|
</script>
|
|
|
|
<script src="{% static 'js/main.js' %}">
|
|
|
|
</script>
|
|
|
|
<script>
|
|
|
|
function reload_params(params) {
|
|
|
|
uri = window.location.href;
|
2014-02-10 14:24:48 +00:00
|
|
|
splitlist = uri.split("?");
|
|
|
|
url = splitlist[0], parameters=splitlist[1];
|
2013-12-11 16:42:34 +00:00
|
|
|
// deserialize the call parameters
|
2014-02-18 04:26:10 +00:00
|
|
|
if(parameters){
|
|
|
|
cparams = parameters.split("&");
|
|
|
|
}else{
|
|
|
|
cparams = []
|
|
|
|
}
|
2013-12-11 16:42:34 +00:00
|
|
|
nparams = {}
|
|
|
|
for (i = 0; i < cparams.length; i++) {
|
|
|
|
temp = cparams[i].split("=");
|
|
|
|
nparams[temp[0]] = temp[1];
|
|
|
|
}
|
|
|
|
// update parameter values
|
|
|
|
for (i in params) {
|
|
|
|
nparams[encodeURIComponent(i)] = encodeURIComponent(params[i]);
|
|
|
|
}
|
|
|
|
// serialize the structure
|
|
|
|
callparams = []
|
|
|
|
for (i in nparams) {
|
|
|
|
callparams.push(i+"="+nparams[i]);
|
|
|
|
}
|
|
|
|
window.location.href = url+"?"+callparams.join('&');
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
2013-10-11 12:46:23 +00:00
|
|
|
|
|
|
|
<body style="height: 100%">
|
2013-12-11 16:42:34 +00:00
|
|
|
<div class="navbar navbar-static-top">
|
|
|
|
<div class="navbar-inner">
|
|
|
|
<a class="brand logo" href="#"><img src="{% static 'img/logo.png' %}" class="" alt="Yocto logo project"/></a>
|
|
|
|
<a class="brand" href="/">Toaster</a>
|
|
|
|
<a class="pull-right manual" href="#">
|
|
|
|
<i class="icon-book"></i>
|
|
|
|
Toaster manual
|
|
|
|
</a>
|
|
|
|
</div>
|
2013-10-11 12:46:23 +00:00
|
|
|
</div>
|
|
|
|
|
2013-12-11 16:42:34 +00:00
|
|
|
<div class="container-fluid">
|
2013-10-11 12:46:23 +00:00
|
|
|
{% block pagecontent %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|