summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/customrecipe.html
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/customrecipe.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/customrecipe.html199
1 files changed, 104 insertions, 95 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/customrecipe.html b/bitbake/lib/toaster/toastergui/templates/customrecipe.html
index 4b1ef6617f..d9049614ab 100644
--- a/bitbake/lib/toaster/toastergui/templates/customrecipe.html
+++ b/bitbake/lib/toaster/toastergui/templates/customrecipe.html
@@ -5,7 +5,6 @@
5{% block pagecontent %} 5{% block pagecontent %}
6 6
7{% with recipe.get_base_recipe_file as base_recipe_file %} 7{% with recipe.get_base_recipe_file as base_recipe_file %}
8<div class="section">
9 <ul class="breadcrumb"> 8 <ul class="breadcrumb">
10 <li> 9 <li>
11 <a href="{% url 'project' project.id %}">{{project.name}}</a> 10 <a href="{% url 'project' project.id %}">{{project.name}}</a>
@@ -18,7 +17,6 @@
18 {{recipe.name}} ({{recipe.layer_version.layer.name}}) 17 {{recipe.name}} ({{recipe.layer_version.layer.name}})
19 </li> 18 </li>
20 </ul> 19 </ul>
21</div>
22 20
23<script src="{% static 'js/customrecipe.js' %}"></script> 21<script src="{% static 'js/customrecipe.js' %}"></script>
24<script> 22<script>
@@ -42,101 +40,110 @@
42 }); 40 });
43</script> 41</script>
44<!-- package dependencies modal --> 42<!-- package dependencies modal -->
45<div style="display:none" id="package-deps-modal" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false"> 43<div id="package-deps-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false">
46 <div class="modal-header"> 44 <div class="modal-dialog">
47 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> 45 <div class="modal-content">
48 <h3><span class="package-to-add-name"></span> dependencies</h3> 46 <div class="modal-header">
49 </div> 47 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
50 <div class="modal-body"> 48 <h3><span class="package-to-add-name"></span> dependencies</h3>
51 <p>Based on information from a previous build it is likely that adding <strong class="package-to-add-name"></strong> will also add the following packages to your custom image:</p> 49 </div>
52 <ul id="package-add-dep-list"> 50 <div class="modal-body">
53 </ul> 51 <p>Based on information from a previous build it is likely that adding <strong class="package-to-add-name"></strong> will also add the following packages to your custom image:
54 </div> 52 </p>
55 <div class="modal-footer"> 53 <ul id="package-add-dep-list">
56 <p class="help-block text-left">Total package size: <strong id="package-deps-total-size"></strong></p> 54 </ul>
57 <button id="add-package-deps-modal-btn" type="submit" class="btn btn-primary" data-dismiss="modal">Add package</button> 55 </div>
58 <button class="btn" data-dismiss="modal">Cancel</button> 56 <div class="modal-footer">
59 </div> 57 <p class="help-block text-left">Total package size: <strong id="package-deps-total-size"></strong></p>
60</div> 58 <button id="add-package-deps-modal-btn" type="submit" class="btn btn-primary" data-dismiss="modal">Add packages</button>
59 <button class="btn btn-link" data-dismiss="modal">Cancel</button>
60 </div>
61 </div><!-- /.modal-content -->
62 </div><!-- /.modal-dialog -->
63</div><!-- /.modal -->
61<!-- end package dependencies modal --> 64<!-- end package dependencies modal -->
62 65
63<!-- package reverse dependencies modal --> 66<!-- package reverse dependencies modal -->
64<div style="display:none" id="package-reverse-deps-modal" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false"> 67<div style="display:none" id="package-reverse-deps-modal" class="modal fade in" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false">
65 <div class="modal-header"> 68 <div class="modal-dialog">
66 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> 69 <div class="modal-content">
67 <h3><span class="package-to-rm-name"></span> reverse dependencies</h3> 70 <div class="modal-header">
68 </div> 71 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
69 <div class="modal-body"> 72 <h3><span class="package-to-rm-name"></span> reverse dependencies</h3>
70 <p> <strong class="reverse-deps-count"></strong> <span class="reverse-deps-package"></span> in your image <span class="reverse-deps-depends"></span> on <strong class="package-to-rm-name"></strong>:</p> 73 </div>
71 <ul id="package-reverse-dep-list"> 74 <div class="modal-body">
72 </ul> 75 <p> <strong class="reverse-deps-count"></strong> <span class="reverse-deps-package"></span> in your image <span class="reverse-deps-depends"></span> on <strong class="package-to-rm-name"></strong>:</p>
73 <p>In order to remove <strong class="package-to-rm-name"></strong>, you must remove <span class="reverse-deps-this"></span> <strong class="reverse-deps-count"></strong> <span class="reverse-deps-package"></span> as well.</p> 76 <ul id="package-reverse-dep-list">
74 </div> 77 </ul>
75 <div class="modal-footer"> 78 <p>In order to remove <strong class="package-to-rm-name"></strong>, you must remove <span class="reverse-deps-this"></span> <strong class="reverse-deps-count"></strong> <span class="reverse-deps-package"></span> as well.</p>
76 <p class="help-block text-left">Total package size: <strong id="package-reverse-deps-total-size"></strong></p> 79 </div>
77 <button id="rm-package-reverse-deps-modal-btn" type="submit" class="btn btn-primary" data-dismiss="modal">Remove all <span class="reverse-deps-count-plus1"></button> 80 <div class="modal-footer">
78 <button class="btn" data-dismiss="modal">Cancel</button> 81 <p class="help-block text-left">Total package size: <strong id="package-reverse-deps-total-size"></strong></p>
79 </div> 82 <button id="rm-package-reverse-deps-modal-btn" type="submit" class="btn btn-primary" data-dismiss="modal">Remove all <span class="reverse-deps-count-plus1"></button>
80</div> 83 <button class="btn btn-link" data-dismiss="modal">Cancel</button>
84 </div>
85 </div><!-- /.modal-content -->
86 </div><!-- /.modal-dialog -->
87</div><!-- /.modal -->
81<!-- end package dependencies modal --> 88<!-- end package dependencies modal -->
82 89
83 90<div class="alert alert-success alert-dismissible change-notification" id="image-created-notification" style="display: none">
84<div class="row-fluid span11"> 91 <button type="button" data-dismiss="alert" class="close">&times;</button>
85 <div class="alert alert-success lead" id="image-created-notification" style="margin-top: 15px; display: none"> 92 <p>Your custom image <strong>{{recipe.name}}</strong> has been created. You can now add or remove packages as needed.</p>
86 <button type="button" data-dismiss="alert" class="close">x</button> 93</div>
87 Your custom image <strong>{{recipe.name}}</strong> has been created. You can now add or remove packages as needed. 94<div class="page-header">
88 </div> 95 <h1>
89 <div class="page-header air"> 96 {{recipe.name}}
90 <h1> 97 <small>({{recipe.layer_version.layer.name}})</small>
91 {{recipe.name}} 98 </h1>
92 <small>({{recipe.layer_version.layer.name}})</small>
93 </h1>
94 </div>
95</div> 99</div>
96 100
97<div class="row-fluid span11"> 101<div class="row">
98 <div class="span8"> 102 <div class="col-md-8">
99 <div class="button-place btn-group" style="width: 100%"> 103 <div class="button-place btn-group" style="width: 100%">
100 <a class="btn btn-large span6 build-custom-image" href="#" style="width: 50%"> 104 <a class="btn btn-default btn-lg build-custom-image" href="#" style="width: 50%">
101 Build {{recipe.name}} 105 Build {{recipe.name}}
102 </a> 106 </a>
103 <a href="{% url 'customrecipedownload' project.id recipe.id %}" class="btn btn-large span6" style="width: 50%" 107 <a href="{% url 'customrecipedownload' project.id recipe.id %}" class="btn btn-default btn-lg" style="width: 50%"
104 {% if not base_recipe_file %} 108 {% if not base_recipe_file %}
105 disabled="disabled" 109 disabled="disabled"
106 {% endif %}> 110 {% endif %}>
107 Download recipe file 111 Download recipe file
108 {% if not base_recipe_file %} 112 {% if not base_recipe_file %}
109 <i class="icon-question-sign get-help" 113 <i class="icon-question-sign get-help"
110 data-original-title="The recipe file doesn't exist yet, so you cannot download it. You need to build your custom image first"></i> 114 data-original-title="The recipe file doesn't exist yet, so you cannot download it. You need to build your custom image first"></i>
111 {% endif %} 115 {% endif %}
112 </a> 116 </a>
113 </div> 117 </div>
114 <div id="no-results-special-{{table_name}}" class="air" style="display:none;"> 118 <div id="no-results-special-{{table_name}}" class="top-air" style="display:none;">
115 <div class="alert"> 119 <div class="alert alert-warning">
116 <h3>No packages found</h3> 120 <h3>No packages found</h3>
117 <p>You might consider <a href={% url 'projectsoftwarerecipes' project.id %}>searching the list of recipes</a> instead. If you find a recipe that matches the name of the package you want:</p> 121 <p>You might consider <a href={% url 'projectsoftwarerecipes' project.id %}>searching the list of recipes</a> instead.</p>
122 <p>If you find a recipe that matches the name of the package you want:</p>
118 <ol> 123 <ol>
119 <li>Add the layer providing the recipe to your project</li> 124 <li>Add the layer providing the recipe to your project</li>
120 <li>Build the recipe</li> 125 <li>Build the recipe</li>
121 <li>Once the build completes, come back to this page and search for the package</li> 126 <li>Once the build completes, come back to this page and search for the package</li>
122 </ol> 127 </ol>
123 <form class="input-append no-results"> 128 <form class="form-inline no-results">
124 <input type="text" class="input-xlarge no-results-search-input" id="no-results-search-input-{{table_name}}" name="search" placeholder="Search {{title|lower}}" /> 129 <div class="form-group">
125 <a href="#" class="add-on btn" id="no-results-remove-search-btn" tabindex="-1"> 130 <div class="btn-group">
126 <i class="icon-remove"></i> 131 <input type="text" class="form-control no-results-search-input" id="no-results-search-input-{{table_name}}" name="search" placeholder="Search {{title|lower}}" />
127 </a> 132 <span class="remove-search-btn-{{table_name}} glyphicon glyphicon-remove-circle" id="no-results-remove-search-btn" tabindex="-1"></span>
128 <button class="btn search-submit-{{table_name}}">Search</button> 133 </div>
134 </div>
135 <button class="btn btn-default search-submit-{{table_name}}">Search</button>
129 <button class="btn btn-link" id="no-results-show-all-packages">Show all packages</button> 136 <button class="btn btn-link" id="no-results-show-all-packages">Show all packages</button>
130 </form> 137 </form>
131 </div> 138 </div>
132 </div> 139 </div>
133 <div id="results-found-{{table_name}}"> 140 <div id="results-found-{{table_name}}">
134 <div id="packages-table"> 141 <div id="packages-table">
135 {% if recipe.get_all_packages.count == 0 and last_build == None %} 142 {% if recipe.get_all_packages.count == 0 and last_build == None %}
136 <h2> Add | Remove packages </h2> 143 <h2> Add | Remove packages </h2>
137 <div class="alert alert-info air"> 144 <div class="alert alert-info">
138 <p class="lead">Toaster has no package information for {{recipe.name}}. To generate package information, build {{recipe.name}}</p> 145 <p class="lead">Toaster has no package information for {{recipe.name}}. To generate package information, build {{recipe.name}}</p>
139 <button class="btn btn-info btn-large build-custom-image" style="margin:20px 0 10px 0;">Build {{recipe.name}}</button> 146 <button class="btn btn-info btn-lg build-custom-image" style="margin:20px 0 10px 0;">Build {{recipe.name}}</button>
140 </div> 147 </div>
141 {% else %} 148 {% else %}
142 {# ToasterTable for Adding remove packages #} 149 {# ToasterTable for Adding remove packages #}
@@ -145,27 +152,28 @@
145 {% include "toastertable.html" %} 152 {% include "toastertable.html" %}
146 {% endif %} 153 {% endif %}
147 </div> 154 </div>
148 </div>
149 </div> 155 </div>
150 <div class="span4 well"> 156 </div>
151 <h2 style="margin-bottom:20px;">About {{recipe.name}}</h2> 157 <div class="col-md-4">
158 <div class="well">
159 <h2>About {{recipe.name}}</h2>
152 160
153 <dl> 161 <dl>
154 <dt> 162 <dt>
155 Approx. packages included 163 Approx. packages included
156 <i class="icon-question-sign get-help" title="" data-original-title="The number of packages included is based on information from previous builds and from parsing layers, so we can never be sure it is 100% accurate"></i> 164 <span class="glyphicon glyphicon-question-sign get-help" title="" data-original-title="The number of packages included is based on information from previous builds and from parsing layers, so we can never be sure it is 100% accurate"></span>
157 </dt> 165 </dt>
158 <dd id="total-num-packages">{{recipe.get_all_packages.count}}</dd> 166 <dd id="total-num-packages">{{recipe.get_all_packages.count}}</dd>
159 <dt> 167 <dt>
160 Approx. package size 168 Approx. package size
161 <i class="icon-question-sign get-help" title="" data-original-title="Package size is based on information from previous builds, so we can never be sure it is 100% accurate"></i> 169 <span class="glyphicon glyphicon-question-sign get-help" title="Package size is based on information from previous builds, so we can never be sure it is 100% accurate"></span>
162 </dt> 170 </dt>
163 <dd id="total-size-packages">{{approx_pkg_size.size__sum|filtered_filesizeformat}}</dd> 171 <dd id="total-size-packages">{{approx_pkg_size.size__sum|filtered_filesizeformat}}</dd>
164 {% if last_build %} 172 {% if last_build %}
165 <dt>Last build</dt> 173 <dt>Last build</dt>
166 <dd> 174 <dd>
167 <i class="icon-ok-sign success"></i> 175 <span class="glyphicon glyphicon-ok-circle"></span>
168 <a href="{% url 'projectbuilds' project.id%}">{{last_build.completed_on|date:"d/m/y H:i"}}</a> 176 <a href="{% url 'projectbuilds' project.id%}">{{last_build.completed_on|date:"d/m/y H:i"}}</a>
169 </dd> 177 </dd>
170 {% endif %} 178 {% endif %}
171 <dt>Layer</dt> 179 <dt>Layer</dt>
@@ -176,59 +184,60 @@
176 {% with recipe.get_last_successful_built_target as last_build_target %} 184 {% with recipe.get_last_successful_built_target as last_build_target %}
177 <dt>Last build</dt> 185 <dt>Last build</dt>
178 <dd> 186 <dd>
179 <i class="icon-ok-sign success"></i> 187 <span class="glyphicon glyphicon-ok-circle"></span>
180 <a href="{% url 'builddashboard' last_build_target.build.pk %}"> 188 <a href="{% url 'builddashboard' last_build_target.build.pk %}">
181 {{last_build_target.build.completed_on|date:"d/m/y H:i"}}</a> 189 {{last_build_target.build.completed_on|date:"d/m/y H:i"}}</a>
182 </dd> 190 </dd>
183 {% endwith %} 191 {% endwith %}
184 {% endif %} 192 {% endif %}
185 {% if base_recipe_file %} 193 {% if base_recipe_file %}
186 <dt>Recipe file</dt> 194 <dt>Recipe file</dt>
187 <dd> 195 <dd>
188 <code>{{recipe.name}}_{{recipe.version}}.bb</code> 196 <code>{{recipe.name}}_{{recipe.version}}.bb</code>
189 <a href="{% url 'customrecipedownload' project.pk recipe.pk %}"><i class="icon-download-alt" title="Download recipe file"></i></a> 197 <a href="{% url 'customrecipedownload' project.pk recipe.pk %}"><span class="glyphicon glyphicon-download-alt" data-toggle="tooltip" title="Download recipe file"></span></a>
190 </dd> 198 </dd>
191 {% endif %} 199 {% endif %}
192 <dt>Layer</dt> 200 <dt>Layer</dt>
193 <dd><a href="{% url 'layerdetails' project.id recipe.layer_version.pk %}">{{recipe.layer_version.layer.name}}</a></dd> 201 <dd><a href="{% url 'layerdetails' project.id recipe.layer_version.pk %}">{{recipe.layer_version.layer.name}}</a></dd>
194 {% if recipe.summary %} 202 {% if recipe.summary %}
195 <dt> 203 <dt>
196 Summary 204 Summary
197 </dt> 205 </dt>
198 <dd> 206 <dd>
199 {{recipe.summary}} 207 {{recipe.summary}}
200 </dd> 208 </dd>
201 {% endif %} 209 {% endif %}
202 {% if recipe.description %} 210 {% if recipe.description %}
203 <dt> 211 <dt>
204 Description 212 Description
205 </dt> 213 </dt>
206 <dd> 214 <dd>
207 {{recipe.description}} 215 {{recipe.description}}
208 </dd> 216 </dd>
209 {% endif %} 217 {% endif %}
210 <dt>Version</dt> 218 <dt>Version</dt>
211 <dd> 219 <dd>
212 {{recipe.version}} 220 {{recipe.version}}
213 </dd> 221 </dd>
214 {% if recipe.section %} 222 {% if recipe.section %}
215 <dt>Section</dt> 223 <dt>Section</dt>
216 <dd> 224 <dd>
217 {{recipe.section}} 225 {{recipe.section}}
218 </dd> 226 </dd>
219 {% endif %} 227 {% endif %}
220 <dt>License</dt> 228 <dt>License</dt>
221 <dd> 229 <dd>
222 {{recipe.license}} 230 {{recipe.license}}
223 <i class="icon-question-sign get-help" title="" data-original-title="All custom images have their license set to MIT. This is because the license applies only to the recipe (.bb) file, and not to the image itself. To see which licenses apply to the image you must check the license manifest generated with each build"></i> 231 <span class="glyphicon glyphicon-question-sign get-help" title="All custom images have their license set to MIT. This is because the license applies only to the recipe (.bb) file, and not to the image itself. To see which licenses apply to the image you must check the license manifest generated with each build"></i>
224 </dd> 232 </dd>
225 </dl> 233 </dl>
226 <!-- 234 <!--
227 <i class="icon-trash no-tooltip"></i> 235 <i class="icon-trash no-tooltip"></i>
228 <a href="#" class="error" id="delete">Delete custom image</a> 236 <a href="#" class="error" id="delete">Delete custom image</a>
229 --> 237 -->
230 </div> 238 </div>
231 </div> 239 </div>
240</div>
232 241
233{% endwith %}{# end base_recipe_file #} 242{% endwith %}{# end base_recipe_file #}
234 {% endblock %} 243{% endblock %}