summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/targets.html
blob: 3afdf0a5e9b8c10e6f45381d007f4e4aa07d8f44 (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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{% extends "baseprojectpage.html" %}
{% load projecttags %}
{% load humanize %}

{% block localbreadcrumb %}
<li>Targets</li>
{% endblock %}

{% block projectinfomain %}
                <div class="page-header">
                    <h1>
                        All targets
                        <i class="icon-question-sign get-help heading-help" title="This page lists all the targets compatible with Yocto Project 1.7 'Dxxxx' that Toaster knows about. They include community-created targets suitable for use on top of OpenEmbedded Core and any targets you have imported"></i>
                     </h1>
                </div>
                <!--div class="alert">
                    <div class="input-append" style="margin-bottom:0px;">
                        <input class="input-xxlarge" type="text" placeholder="Search targets" value="browser" />
                        <a class="add-on btn">
                            <i class="icon-remove"></i>
                        </a>
                        <button class="btn" type="button">Search</button>
                        <a class="btn btn-link" href="#">Show all targets</a>
                    </div>
                </div-->
                <div id="target-added" class="alert alert-info lead" style="display:none;"></div>
                <div id="target-removed" class="alert alert-info lead" style="display:none;">
                    <button type="button" class="close" data-dismiss="alert">&times;</button>
                    <strong>1</strong> target deleted from <a href="project-with-targets.html">your project</a>: <a href="#">meta-aarch64</a>
                </div>


{% include "basetable_top.html" %}
    {% for o in objects %}
    <tr class="data">
	<td class="target">
		{{o.name}} ({{o.id}}, {{o.up_id}})
		<a target="_blank" href="{{o.get_layersource_view_url}}"><i class="icon-share get-info"></i></a>
	</td>
	<td class="version">{{o.version}}</td>
	<td class="description">{{o.description}}</td>
	<td class="recipe-file">
		<code>{{o.file_path}}</code>
		<a href="{{o.get_vcs_link_url}}" target="_blank"><i class="icon-share get-info"></i></a>
	</td>
	<td class="target-section">{{o.section}}</td>
	<td class="license">{{o.license}}</td>
	<td class="layer"><a href="#">{{o.layer_version.layer.name}}</a></td>
	<td class="source">{{o.layer_source.name}}</td>
	<td class="branch">{{o.layer_version.commit}}</td>
	<td class="build">
		<a id="build-target" href="project-with-targets.html?target=3g-router-image" class="btn btn-block" style="display:none;">
			Build target
		</a>
		<a id="add-layer" href="#" class="btn btn-block nopop" title="1 layer added">
			<i class="icon-plus"></i>
			Add layer
			<i class="icon-question-sign get-help" title="To build this target, you must first add the meta-embeddedgeeks layer to your project"></i>
		</a>
	</td>
    </tr>
    {% endfor %}
{% include "basetable_bottom.html" %}

    <!-- Modals -->

    <!-- 'Layer dependencies modal' -->
    <div id="dependencies-message" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
            <h3>meta-acer dependencies</h3>
        </div>
        <div class="modal-body">
            <p><strong>meta-acer</strong> depends on some targets that are not added to your project. Select the ones you want to add:</p>
            <ul class="unstyled">
                <li>
                    <label class="checkbox">
                        <input type="checkbox" checked="checked">
                        meta-android
                    </label>
                </li>
                <li>
                    <label class="checkbox">
                        <input type="checkbox" checked="checked">
                        meta-oe
                    </label>
                </li>
            </ul>
        </div>
        <div class="modal-footer">
            <button id="add-target-dependencies" type="submit" class="btn btn-primary" data-dismiss="modal" >Add targets</button>
            <button class="btn" data-dismiss="modal">Cancel</button>
        </div>
    </div>

    <script src="assets/js/jquery-1.9.1.min.js" type='text/javascript'></script>
    <script src="assets/js/jquery.tablesorter.min.js" type='text/javascript'></script>
    <script src="assets/js/jquery-ui-1.10.3.custom.min.js"></script>
    <script src="assets/js/bootstrap.min.js" type='text/javascript'></script>
    <script src="assets/js/prettify.js" type='text/javascript'></script>
    <script src="assets/js/jit.js" type='text/javascript'></script>
    <script src="assets/js/main.js" type='text/javascript'></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();
            }
        });

        // enable add target button
        $('#add-target-with-deps').removeAttr('disabled');

        //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 tooltip with applied filter
        $('#filtered').tooltip({container:'table', placement:'bottom', delay:{hide:1500}, html:true});

        $('#filtered').click(function() {
            $(this).tooltip('hide');
        });

        //show target added tooltip
        $("#remove-target, #add-target, #add-target-with-deps2").tooltip({ trigger: 'manual' });

        // add target without dependencies
        $("#add-target").click(function(){
            $('#target-removed').hide();
            $('#target-added').html('<button type="button" class="close" data-dismiss="alert">&times;</button><strong>1</strong> target added to <a href="project-with-targets.html">your project</a>: <a href="#">meta-aarch64</a>').fadeIn();
            $('#add-target').tooltip('show');
            $("#add-target").hide();
            $(".add-targets .tooltip").delay(2000).fadeOut(function(){
                $("#remove-target").delay(300).fadeIn();
            });
        });

        // add target with dependencies
        $(document).on("click", "#add-target-dependencies", function() {
            $('#target-removed').hide();
            $('#target-added').html('<button type="button" class="close" data-dismiss="alert">&times;</button><strong>3</strong> targets added to <a href="project-with-targets.html">your project</a>: <a href="#">meta-acer</a> and its dependencies <a href="#">meta-android</a> and <a href="#">meta-oe</a>').delay(400).fadeIn(function(){
                $('#add-target-with-deps').tooltip('show');
                $("#add-target-with-deps, #add-target-with-deps").hide();
                $(".add-targets .tooltip").delay(2000).fadeOut(function(){
                    $("#remove-target-with-deps").delay(300).fadeIn();
                });
            });
        });

        // delete target
        $("#remove-target").click(function(){
            $('#target-added').hide();
            $('#target-removed').show();
            $('#remove-target').tooltip('show');
            $("#remove-target").hide();
            $(".add-targets .tooltip").delay(2000).fadeOut(function(){
                $("#add-target").delay(300).fadeIn();
            });
        });

     });

</script>

{% endblock %}