summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/base.html
blob: 96f093f62776a566b9e48830420d5f0ad681138c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
{% load static %}
<html>
    <head>
        <title>{% if objectname %} {{objectname|title}} - {% endif %}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/jquery.cookie.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;
    splitlist = uri.split("?");
    url = splitlist[0], parameters=splitlist[1];
    // deserialize the call parameters
    if(parameters){
        cparams = parameters.split("&");
    }else{
        cparams = []
    }
    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>

<script>
    $(document).ready(function() {
        //show or hide selected columns on load
        $("input:checkbox").each(function(){
            var selectedType = $(this).val();
            if($(this).is(":checked")){
                $("."+selectedType).show();
            }
            else{
                $("."+selectedType).hide();
            }
        });
        //edit columns functionality (show / hide table columns)
        $("input:checkbox").change();
            $("input:checkbox").change(function(){
                var selectedType = $(this).val();
                    if($(this).is(":checked")){
                        $("."+selectedType).show();
                    }
                    else{
                        $("."+selectedType).hide();
                    }
            });
        //turn edit columns dropdown into a multi-select menu
        $('.dropdown-menu input, .dropdown-menu label').click(function(e) {
            e.stopPropagation();
        });
        //show help information inside modal dialogs
        $("#filter-variables i").tooltip({ html: true, delay: {show: 500} });
        //show applied filter tooltip
        $('.filtered').tooltip({container:'body', placement:'bottom', delay:{hide:1500}, html:true});
        //hide the applied filter tooltip when you click the filter button
        $('.btn-primary').on('click', function () {
             $('.tooltip').hide();
        });

        $('.full-variable, .full-variable-hide').hide();
        $('.full-variable-show').click(function(){
            $('.full-variable').slideDown(function(){
                $('.full-variable-hide').show();
            });
            $(this).hide();
        });
        $('.full-variable-hide').click(function(){
            $(this).hide();
            $('.full-variable').slideUp(function(){
                $('.full-variable-show').show();
            });
        });
     });
</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>