diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/layerdetails.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/layerdetails.html | 50 |
1 files changed, 23 insertions, 27 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html index 4d892d56f9..7b62b64893 100644 --- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html +++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html | |||
@@ -9,6 +9,23 @@ | |||
9 | </li> | 9 | </li> |
10 | {% endblock %} | 10 | {% endblock %} |
11 | {% block projectinfomain %} | 11 | {% block projectinfomain %} |
12 | {# If this is not an imported layer then hide the edit ui #} | ||
13 | {% if not layerversion.layer_source_id or layerversion.layer_source.sourcetype != layerversion.layer_source.TYPE_IMPORTED %} | ||
14 | <style scoped> | ||
15 | .icon-pencil { | ||
16 | display:none; | ||
17 | } | ||
18 | .delete-current-value{ | ||
19 | display: none; | ||
20 | } | ||
21 | li .icon-trash { | ||
22 | display:none; | ||
23 | } | ||
24 | .add-deps { | ||
25 | display:none; | ||
26 | } | ||
27 | </style> | ||
28 | {% endif %} | ||
12 | 29 | ||
13 | 30 | ||
14 | <script src="{% static 'js/layerdetails.js' %}"></script> | 31 | <script src="{% static 'js/layerdetails.js' %}"></script> |
@@ -27,7 +44,7 @@ | |||
27 | commit: "{{layerversion.get_vcs_reference}}", | 44 | commit: "{{layerversion.get_vcs_reference}}", |
28 | inCurrentPrj : {{layer_in_project}}, | 45 | inCurrentPrj : {{layer_in_project}}, |
29 | url : "{% url 'layerdetails' project.id layerversion.id %}", | 46 | url : "{% url 'layerdetails' project.id layerversion.id %}", |
30 | sourceId: {{layerversion.layer_source_id}}, | 47 | sourceId: {{layerversion.layer_source_id|json}}, |
31 | } | 48 | } |
32 | }; | 49 | }; |
33 | 50 | ||
@@ -40,24 +57,6 @@ | |||
40 | }); | 57 | }); |
41 | </script> | 58 | </script> |
42 | 59 | ||
43 | {# If this is not an imported layer then hide the edit ui #} | ||
44 | {% if layerversion.layer_source_id != 3 %} | ||
45 | <style> | ||
46 | .icon-pencil { | ||
47 | display:none; | ||
48 | } | ||
49 | .delete-current-value{ | ||
50 | display: none; | ||
51 | } | ||
52 | li .icon-trash { | ||
53 | display:none; | ||
54 | } | ||
55 | .add-deps { | ||
56 | display:none; | ||
57 | } | ||
58 | </style> | ||
59 | {% endif %} | ||
60 | |||
61 | <div class="row-fluid span11"> | 60 | <div class="row-fluid span11"> |
62 | <div class="page-header"> | 61 | <div class="page-header"> |
63 | <h1>{{layerversion.layer.name}} <small class="commit" | 62 | <h1>{{layerversion.layer.name}} <small class="commit" |
@@ -100,7 +99,7 @@ | |||
100 | </span> | 99 | </span> |
101 | 100 | ||
102 | <!-- layer details pane --> | 101 | <!-- layer details pane --> |
103 | <div name="information" id="information" class="tab-pane active"> | 102 | <div id="information" class="tab-pane active"> |
104 | <dl class="dl-horizontal"> | 103 | <dl class="dl-horizontal"> |
105 | <dt class=""> | 104 | <dt class=""> |
106 | <i class="icon-question-sign get-help" title="Fetch/clone URL of the repository"></i> | 105 | <i class="icon-question-sign get-help" title="Fetch/clone URL of the repository"></i> |
@@ -160,19 +159,17 @@ | |||
160 | Layer dependencies | 159 | Layer dependencies |
161 | </dt> | 160 | </dt> |
162 | <dd> | 161 | <dd> |
163 | <ul class="unstyled" id="layer-deps-list"> | 162 | <ul class="unstyled current-value" id="layer-deps-list"> |
164 | {% for ld in layerversion.dependencies.all %} | 163 | {% for ld in layerversion.dependencies.all %} |
165 | <span class="current-value"> | ||
166 | <li data-layer-id="{{ld.depends_on.id}}"> | 164 | <li data-layer-id="{{ld.depends_on.id}}"> |
167 | <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> | 165 | <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> |
168 | <span class="icon-trash " data-toggle="tooltip" title="Delete"></span> | 166 | <span class="icon-trash " data-toggle="tooltip" title="Delete"></span> |
169 | </li> | 167 | </li> |
170 | </span> | ||
171 | {% endfor %} | 168 | {% endfor %} |
172 | </ul> | 169 | </ul> |
173 | <div class="input-append add-deps"> | 170 | <div class="input-append add-deps"> |
174 | <input type="text" autocomplete="off" data-minLength="1" data-autocomplete="off" placeholder="Type a layer name" id="layer-dep-input"> | 171 | <input type="text" autocomplete="off" data-minLength="1" data-autocomplete="off" placeholder="Type a layer name" id="layer-dep-input"> |
175 | <a class="btn" type="button" id="add-layer-dependency-btn" disabled> | 172 | <a class="btn" id="add-layer-dependency-btn" > |
176 | Add layer | 173 | Add layer |
177 | </a> | 174 | </a> |
178 | </div> | 175 | </div> |
@@ -181,7 +178,7 @@ | |||
181 | </dl> | 178 | </dl> |
182 | </div> | 179 | </div> |
183 | <!-- targets tab --> | 180 | <!-- targets tab --> |
184 | <div name="targets" id="targets" class="tab-pane"> | 181 | <div id="targets" class="tab-pane"> |
185 | {% if total_targets == 0 %} | 182 | {% if total_targets == 0 %} |
186 | <div class="alert alert-info"> | 183 | <div class="alert alert-info"> |
187 | <p>Toaster does not have recipe information for the <strong> {{layerversion.layer.name}} </strong> layer.</p> | 184 | <p>Toaster does not have recipe information for the <strong> {{layerversion.layer.name}} </strong> layer.</p> |
@@ -316,7 +313,7 @@ | |||
316 | </div> | 313 | </div> |
317 | 314 | ||
318 | 315 | ||
319 | <div name="machines" id="machines" class="tab-pane"> | 316 | <div id="machines" class="tab-pane"> |
320 | {% if total_machines == 0 %} | 317 | {% if total_machines == 0 %} |
321 | <div class="alert alert-info"> | 318 | <div class="alert alert-info"> |
322 | <p>Toaster does not have machine information for the <strong> {{layerversion.layer.name}} </strong> layer.</p> | 319 | <p>Toaster does not have machine information for the <strong> {{layerversion.layer.name}} </strong> layer.</p> |
@@ -482,7 +479,6 @@ | |||
482 | <i class="icon-pencil"></i> | 479 | <i class="icon-pencil"></i> |
483 | <span class="icon-trash delete-current-value" data-toggle="tooltip" title="Delete"></span> | 480 | <span class="icon-trash delete-current-value" data-toggle="tooltip" title="Delete"></span> |
484 | </dd> | 481 | </dd> |
485 | </dd> | ||
486 | {% if layerversion.layer.up_id %} | 482 | {% if layerversion.layer.up_id %} |
487 | <dt>Layer index</dt> | 483 | <dt>Layer index</dt> |
488 | <dd> | 484 | <dd> |