diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/layerdetails.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/layerdetails.html | 59 |
1 files changed, 27 insertions, 32 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html index 3e1375617d..08e41ce75c 100644 --- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html +++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html | |||
@@ -103,7 +103,6 @@ | |||
103 | <span id="alert-msg"></span> | 103 | <span id="alert-msg"></span> |
104 | </div> | 104 | </div> |
105 | 105 | ||
106 | <span class="button-place"> | ||
107 | {% if layerversion.id not in projectlayers %} | 106 | {% if layerversion.id not in projectlayers %} |
108 | <button id="add-remove-layer-btn" data-directive="add" class="btn btn-default btn-lg btn-block"> | 107 | <button id="add-remove-layer-btn" data-directive="add" class="btn btn-default btn-lg btn-block"> |
109 | <span class="glyphicon glyphicon-plus"></span> | 108 | <span class="glyphicon glyphicon-plus"></span> |
@@ -115,7 +114,6 @@ | |||
115 | Remove the {{layerversion.layer.name}} layer from your project | 114 | Remove the {{layerversion.layer.name}} layer from your project |
116 | </button> | 115 | </button> |
117 | {% endif %} | 116 | {% endif %} |
118 | </span> | ||
119 | 117 | ||
120 | <ul class="nav nav-tabs"> | 118 | <ul class="nav nav-tabs"> |
121 | <li class="active"> | 119 | <li class="active"> |
@@ -159,7 +157,7 @@ | |||
159 | </div> | 157 | </div> |
160 | </form> | 158 | </form> |
161 | </dd> | 159 | </dd> |
162 | {% if layerversion.dirpath %} | 160 | {% if layerversion.dirpath %} |
163 | <dt> | 161 | <dt> |
164 | <span class="glyphicon glyphicon-question-sign get-help" title="Subdirectory within the repository where the layer is located, if not in the root (usually only used if the repository contains more than one layer)"></span> | 162 | <span class="glyphicon glyphicon-question-sign get-help" title="Subdirectory within the repository where the layer is located, if not in the root (usually only used if the repository contains more than one layer)"></span> |
165 | Repository subdirectory | 163 | Repository subdirectory |
@@ -176,7 +174,7 @@ | |||
176 | </div> | 174 | </div> |
177 | </form> | 175 | </form> |
178 | </dd> | 176 | </dd> |
179 | {% endif %} | 177 | {% endif %} |
180 | <dt> | 178 | <dt> |
181 | <span class="glyphicon glyphicon-question-sign get-help" title="The Git branch, tag or commit"></span> | 179 | <span class="glyphicon glyphicon-question-sign get-help" title="The Git branch, tag or commit"></span> |
182 | Git revision | 180 | Git revision |
@@ -221,7 +219,7 @@ | |||
221 | Git repository URL | 219 | Git repository URL |
222 | <span class="glyphicon glyphicon-question-sign get-help" title="Fetch/clone URL of the repository. Currently, Toaster only supports Git repositories." ></span> | 220 | <span class="glyphicon glyphicon-question-sign get-help" title="Fetch/clone URL of the repository. Currently, Toaster only supports Git repositories." ></span> |
223 | </label> | 221 | </label> |
224 | <input type="text" id="layer-git-repo-url" class="form-control"> | 222 | <input type="text" id="layer-git-repo-url" class="form-control" value="{{layerversion.layer.vcs_url|default_if_none:''}}"> |
225 | </div> | 223 | </div> |
226 | <div class="form-group"> | 224 | <div class="form-group"> |
227 | <label for="layer-subdir"> | 225 | <label for="layer-subdir"> |
@@ -229,13 +227,13 @@ | |||
229 | <span class="text-muted">(optional)</span> | 227 | <span class="text-muted">(optional)</span> |
230 | <span class="glyphicon glyphicon-question-sign get-help" title="Subdirectory within the repository where the layer is located, if not in the root (usually only used if the repository contains more than one layer)"></span> | 228 | <span class="glyphicon glyphicon-question-sign get-help" title="Subdirectory within the repository where the layer is located, if not in the root (usually only used if the repository contains more than one layer)"></span> |
231 | </label> | 229 | </label> |
232 | <input type="text" class="form-control" id="layer-subdir"> | 230 | <input type="text" class="form-control" id="layer-subdir" value="{{layerversion.dirpath|default_if_none:''}}"> |
233 | </div> | 231 | </div> |
234 | <div class="form-group" id="layer-revision-ctrl"> | 232 | <div class="form-group" id="layer-revision-ctrl"> |
235 | <label for="layer-git-ref">Git revision | 233 | <label for="layer-git-ref">Git revision |
236 | <span class="glyphicon glyphicon-question-sign get-help" title="You can provide a Git branch, a tag or a commit SHA as the revision"></span> | 234 | <span class="glyphicon glyphicon-question-sign get-help" title="You can provide a Git branch, a tag or a commit SHA as the revision"></span> |
237 | </label> | 235 | </label> |
238 | <input type="text" class="form-control" id="layer-git-ref"> | 236 | <input type="text" class="form-control" id="layer-git-ref" value="{{layerversion.get_vcs_reference|default_if_none:''}}"> |
239 | <span class="help-inline" style="display:none;" id="invalid-layer-revision-hint"></span> | 237 | <span class="help-inline" style="display:none;" id="invalid-layer-revision-hint"></span> |
240 | </div> | 238 | </div> |
241 | </fieldset> | 239 | </fieldset> |
@@ -256,31 +254,28 @@ | |||
256 | </div> | 254 | </div> |
257 | </form> | 255 | </form> |
258 | 256 | ||
259 | <dt> | 257 | <h3 class="top-air">Layer dependencies |
260 | <span class="glyphicon glyphicon-question-sign get-help" title="Other layers this layer depends upon"></span> | 258 | <span class="glyphicon glyphicon-question-sign get-help" title="Other layers this layer depends upon"></span> |
261 | Layer dependencies | 259 | </h3> |
262 | </dt> | 260 | |
263 | <dd> | 261 | <ul class="list-unstyled current-value" id="layer-deps-list"> |
264 | <ul class="list-unstyled current-value" id="layer-deps-list"> | 262 | {% for ld in layerversion.dependencies.all %} |
265 | {% for ld in layerversion.dependencies.all %} | 263 | <li data-layer-id="{{ld.depends_on.id}}"> |
266 | <li data-layer-id="{{ld.depends_on.id}}"> | 264 | <a data-toggle="tooltip" title="{{ld.depends_on.layer.vcs_url}} | {{ld.depends_on.get_vcs_reference}}" href="{% url 'layerdetails' project.id ld.depends_on.id %}">{{ld.depends_on.layer.name}}</a> |
267 | <a data-toggle="tooltip" title="{{ld.depends_on.layer.vcs_url}} | {{ld.depends_on.get_vcs_reference}}" href="{% url 'layerdetails' project.id ld.depends_on.id %}">{{ld.depends_on.layer.name}}</a> | 265 | <span class="glyphicon glyphicon-trash " data-toggle="tooltip" title="Delete"></span> |
268 | <span class="glyphicon glyphicon-trash " data-toggle="tooltip" title="Delete"></span> | 266 | </li> |
269 | </li> | 267 | {% endfor %} |
270 | {% endfor %} | 268 | </ul> |
271 | </ul> | 269 | <form class="form-inline add-deps"> |
272 | <form class="form-inline add-deps"> | 270 | <div class="form-group"> |
273 | <div class="form-group"> | 271 | <input class="form-control" type="text" autocomplete="off" data-minLength="1" data-autocomplete="off" placeholder="Type a layer name" id="layer-dep-input"> |
274 | <input class="form-control" type="text" autocomplete="off" data-minLength="1" data-autocomplete="off" placeholder="Type a layer name" id="layer-dep-input"> | 272 | </div> |
275 | </div> | 273 | <a class="btn btn-default" id="add-layer-dependency-btn" disabled="disabled"> |
276 | <a class="btn btn-default" id="add-layer-dependency-btn" disabled="disabled"> | 274 | Add layer |
277 | Add layer | 275 | </a> |
278 | </a> | 276 | <span class="help-block add-deps">You can only add layers Toaster knows about</span> |
279 | <span class="help-block add-deps">You can only add layers Toaster knows about</span> | 277 | </form> |
280 | </form> | 278 | </div> |
281 | </dd> | ||
282 | </dl> | ||
283 | </div> | ||
284 | <!-- end layerdetails tab --> | 279 | <!-- end layerdetails tab --> |
285 | <!-- targets tab --> | 280 | <!-- targets tab --> |
286 | <div id="recipes" class="tab-pane"> | 281 | <div id="recipes" class="tab-pane"> |