mirror of
https://git.yoctoproject.org/poky
synced 2026-05-05 07:39:49 +02:00
Updating the general container pages to use the graphical design and features from the design phase. In the process of adapting the Simple UI to the designed interface, we create all the pages and the navigation structure for the Toaster GUI. Views for each page have been added, and the url mapping has been updated to reflect newly added pages. The table page has been refactored to be component-oriented instead of class-oriented in order to facilitate reusage. Changes are made in different layers of the template (base, basetable) in order to maximize code reuse among different pages in the build. (Bitbake rev: d31f039ae31b77023722c06e66542751536a1362) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
65 lines
2.0 KiB
HTML
65 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
{% load static %}
|
|
<html>
|
|
<head>
|
|
<title>Toaster</title>
|
|
<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' %}">
|
|
</script>
|
|
<script src="{% static 'js/bootstrap.min.js' %}">
|
|
</script>
|
|
<script src="{% static 'js/prettify.js' %}">
|
|
</script>
|
|
<script src="{% static 'js/main.js' %}">
|
|
</script>
|
|
<script>
|
|
function reload_params(params) {
|
|
uri = window.location.href;
|
|
[url, parameters] = uri.split("?");
|
|
// deserialize the call parameters
|
|
cparams = parameters.split("&");
|
|
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>
|
|
|
|
<body style="height: 100%">
|
|
<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>
|
|
</div>
|
|
|
|
<div class="container-fluid">
|
|
{% block pagecontent %}
|
|
{% endblock %}
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|