blob: e8354fd6783d7ccaed46b7da646388e74221922e [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001{% extends "baseprojectpage.html" %}
2
3{% load projecttags %}
4{% load humanize %}
5{% load static %}
6
7{% block projectinfomain %}
8
9<script src="{% static 'js/layerDepsModal.js' %}"></script>
10<script src="{% static 'js/projectpage.js' %}"></script>
11<script>
12 $(document).ready(function (){
13 var ctx = {
14 testReleaseChangeUrl: "{% url 'xhr_testreleasechange' project.id %}",
15 };
16
17 try {
18 projectPageInit(ctx);
19 } catch (e) {
20 document.write("Sorry, An error has occurred loading this page");
21 console.warn(e);
22 }
23 });
24</script>
25
26<div id="change-release-modal" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="change-release-modal" aria-hidden="false">
27 <div class="modal-header">
28 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
29 <h3>Changing Yocto Project release to <span class="proposed-release-change-name"></span></h3>
30 </div>
31 <div class="modal-body">
32 <p>The following added layers do not exist for <span class="proposed-release-change-name"></span>: </p>
33 <ul id="layers-to-remove-list">
34 </ul>
35 <p>If you change the Yocto Project release to <span class="proposed-release-change-name"></span>, the above layers will be deleted from your added layers.</p>
36 </div>
37 <div class="modal-footer">
38 <button id="change-release-and-rm-layers" data-dismiss="modal" type="submit" class="btn btn-primary">Change release and delete layers</button>
39 <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
40 </div>
41</div>
42
43
44<div class="row-fluid" id="project-page" style="display:none">
45 <div class="span6">
46 <div class="well well-transparent" id="machine-section">
47 <h3>Machine</h3>
48
49 <p class="lead"><span id="project-machine-name"></span> <i title="" data-original-title="" id="change-machine-toggle" class="icon-pencil"></i></p>
50
51 <form id="select-machine-form" style="display:none;">
52 <div class="alert alert-info">
53 <strong>Machine changes have a big impact on build outcome.</strong> You cannot really compare the builds for the new machine with the previous ones.
54 </div>
55
56 <div class="input-append">
57 <input id="machine-change-input" autocomplete="off" value="" data-provide="typeahead" data-minlength="1" data-autocomplete="off" type="text">
58 <button id="machine-change-btn" class="btn" type="button">Save</button> <a href="#" id="cancel-machine-change" class="btn btn-link">Cancel</a>
59 </div>
60
61 <p><a href="{% url 'projectmachines' project.id %}" class="link">View compatible machines</a></p>
62 </form>
63 </div>
64
65 <div class="well well-transparent">
66 <h3>Most built recipes</h3>
67
68 <div class="alert alert-info" style="display:none" id="no-most-built">
69 <span class="lead">You haven't built any recipes yet</span>
70 <p style="margin-top: 10px;"><a href="{% url 'projecttargets' project.id %}">Choose a recipe to build</a></p>
71 </div>
72
73 <ul class="unstyled configuration-list" id="freq-build-list">
74 </ul>
75 <button class="btn btn-primary" id="freq-build-btn" disabled="disabled">Build selected recipes</button>
76 </div>
77
78 <div class="well well-transparent">
79 <h3>Project release</h3>
80
81 <p class="lead"><span id="project-release-title"></span> <i title="" data-original-title="" id="release-change-toggle" class="icon-pencil"></i></p>
82
83 <form class="form-inline" id="change-release-form" style="display:none;">
84 <select></select>
85 <button class="btn" style="margin-left:5px;" id="change-release-btn">Change</button> <a href="#" id="cancel-release-change" class="btn btn-link">Cancel</a>
86 </form>
87 </div>
88 </div>
89
90 <div class="span6">
91 <div class="well well-transparent" id="layer-container">
92 <h3>Layers <span class="muted counter">(<span id="project-layers-count"></span>)</span>
93 <i data-original-title="OpenEmbedded organises metadata into modules called 'layers'. Layers allow you to isolate different types of customizations from each other. <a href='http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#understanding-and-creating-layers' target='_blank'>More on layers</a>" class="icon-question-sign get-help heading-help" title=""></i>
94 </h3>
95
96 <div class="alert lead" id="no-layers-in-project" style="display:none">
97 You need to add some layers. For that you can:
98 <ul>
99 <li><a href="{% url 'projectlayers' project.id %}">View all layers compatible with this project</a></li>
100 <li><a href="{% url 'importlayer' project.id %}">Import a layer</a></li>
101 <li><a href="http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#understanding-and-creating-layers" target="_blank">Read about layers in the documentation</a></li>
102 </ul>
103 <p>Or type a layer name below.</p>
104 </div>
105
106 <form style="margin-top:20px">
107 <!--div class="control-group error"-->
108
109 <div class="input-append">
110 <input id="layer-add-input" autocomplete="off" placeholder="Type a layer name" data-minlength="1" data-autocomplete="off" data-provide="typeahead" data-source="" type="text">
111 <button id="add-layer-btn" class="btn" disabled>Add</button>
112 </div>
113
114 <div id="import-alert" class="alert alert-info" style="display:none;">
115 Toaster does not know about this layer. Please <a href="#">import it</a>
116 </div>
117
118 <p>
119 <a href="{% url 'projectlayers' project.id %}" id="view-compatible-layers">View compatible layers</a>
120 <i data-original-title="View all the layers you can build with the release selected for this project, which is Yocto Project master" class="icon-question-sign get-help" title=""></i>
121 | <a href="{% url 'importlayer' project.id %}">Import layer</a>
122 </p>
123 </form>
124
125 <ul class="unstyled configuration-list" id="layers-in-project-list">
126 </ul>
127 </div>
128 </div>
129</div>
130{% endblock %}