bitbake: toaster: importlayer Remove description input field
PATCH 1/1 bitbake: toaster: importlayer Remove description input field
This wasn't required or working due to a typo and adds ambiguity between the summary and description. The correct method for changing the description or summary is via the layerdetails page.
[YOCTO #7190]
--- bitbake/lib/toaster/toastergui/static/js/importlayer.js | 1 - bitbake/lib/toaster/toastergui/templates/importlayer.html | 6 ------ bitbake/lib/toaster/toastergui/views.py | 3 --- 3 files changed, 10 deletions(-)
bitbake/lib/toaster/toastergui/static/js/importlayer.js +0 -1
@@ -136,7 +136,6 @@ function importLayerPageInit (ctx) { name: layerNameInput.val(), vcs_url: vcsURLInput.val(), git_ref: gitRefInput.val(), - summary: $("#layer-summary").val(), dir_path: $("#layer-subdir").val(), project_id: ctx.projectId, layer_deps: layerDepsCsv,
bitbake/lib/toaster/toastergui/templates/importlayer.html +0 -6
@@ -84,12 +84,6 @@ </div> </div> - <label class="project-form" for="layer-description">Layer description - <span class="muted">(optional)</span> - <span class="icon-question-sign get-help" title="A short layer explanation" /> - </label> - <textarea id="layer-description" class="input-xxlarge"></textarea> - </fieldset> <fieldset class="air"> <legend>
bitbake/lib/toaster/toastergui/views.py +0 -3
@@ -2413,9 +2413,6 @@ if toastermain.settings.MANAGED: if layer_created: layer.layer_source = layer_source layer.vcs_url = post_data['vcs_url'] - if post_data.has_key('summary'): - layer.summary = layer.description = post_data['summary'] - layer.up_date = timezone.now() layer.save() else:
Signature · 1 line
2.1.0
Taken for submission,
Thank you,
Alex
Quoted 73 lines · Michael Wood
This wasn't required or working due to a typo and adds ambiguity between the summary and description. The correct method for changing the description
or summary is via the layerdetails page.[YOCTO #7190]
Signed-off-by Michael Wood <[email protected]>--- bitbake/lib/toaster/toastergui/static/js/importlayer.js | 1 - bitbake/lib/toaster/toastergui/templates/importlayer.html | 6 ------ bitbake/lib/toaster/toastergui/views.py | 3 --- 3 files changed, 10 deletions(-)bitbake/lib/toaster/toastergui/static/js/importlayer.js +0
-1@@ -136,7 +136,6 @@ function importLayerPageInit (ctx) { name: layerNameInput.val(), vcs_url: vcsURLInput.val(), git_ref: gitRefInput.val(), - summary: $("#layer-summary").val(), dir_path: $("#layer-subdir").val(), project_id: ctx.projectId, layer_deps: layerDepsCsv,bitbake/lib/toaster/toastergui/templates/importlayer.html +0
-1@@ -84,12 +84,6 @@ </div> </div> - <label class="project-form"for="layer-description">Layer description
bitbake/lib/toaster/toastergui/templates/importlayer.html +0
-2- <span class="muted">(optional)</span> - <span class="icon-question-sign get-help"title="A short layer explanation" />
bitbake/lib/toaster/toastergui/templates/importlayer.html +0
-2- </label> - <textarea id="layer-description"class="input-xxlarge"></textarea>
bitbake/lib/toaster/toastergui/templates/importlayer.html +0
-1- </fieldset> <fieldset class="air"> <legend>bitbake/lib/toaster/toastergui/views.py +0
-2@@ -2413,9 +2413,6 @@ if toastermain.settings.MANAGED: if layer_created: layer.layer_source = layer_source layer.vcs_url = post_data['vcs_url'] - if post_data.has_key('summary'): - layer.summary = layer.description =post_data['summary']
-
layer.up_date =timezone.now()
layer.save()
else:
--
2.1.0--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster
Signature · 3 lines
Alex Damian Yocto Project SSG / OTC
I know this was taken, but the revision label is missing the class project-form, which sets the correct spacing :/ I've pushed a patch to
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=bbarrosp/7
190&id=d6a7416c8e9efe4222fa54d8ff9d96076d56a00a
Any chance you can take it with Michael's patch?
Thanks!!
Belén
Quoted 96 lines · Alexandru
Taken for submission,
Thank you,
AlexOn Wed, Feb 18, 2015 at 3:18 PM, Michael Wood
<[email protected]> wrote:This wasn't required or working due to a typo and adds ambiguity between the summary and description. The correct method for changing the description
or summary is via the layerdetails page.[YOCTO #7190]
Signed-off-by Michael Wood <[email protected]>---
bitbake/lib/toaster/toastergui/static/js/importlayer.js | 1 - bitbake/lib/toaster/toastergui/templates/importlayer.html | 6 ------ bitbake/lib/toaster/toastergui/views.py | 3 --- 3 files changed, 10 deletions(-)bitbake/lib/toaster/toastergui/static/js/importlayer.js +0
-1@@ -136,7 +136,6 @@ function importLayerPageInit (ctx) { name: layerNameInput.val(), vcs_url: vcsURLInput.val(), git_ref: gitRefInput.val(), - summary: $("#layer-summary").val(), dir_path: $("#layer-subdir").val(), project_id: ctx.projectId, layer_deps: layerDepsCsv,bitbake/lib/toaster/toastergui/templates/importlayer.html +0
-1@@ -84,12 +84,6 @@ </div> </div> - <label class="project-form"for="layer-description">Layer description
bitbake/lib/toaster/toastergui/templates/importlayer.html +0
-2- <span class="muted">(optional)</span> - <span class="icon-question-sign get-help"title="A short layer explanation" />
bitbake/lib/toaster/toastergui/templates/importlayer.html +0
-2- </label> - <textarea id="layer-description"class="input-xxlarge"></textarea>
bitbake/lib/toaster/toastergui/templates/importlayer.html +0
-1- </fieldset> <fieldset class="air"> <legend>bitbake/lib/toaster/toastergui/views.py +0
-2@@ -2413,9 +2413,6 @@ if toastermain.settings.MANAGED: if layer_created: layer.layer_source = layer_source layer.vcs_url = post_data['vcs_url'] - if post_data.has_key('summary'): - layer.summary = layer.description =post_data['summary']
-
layer.up_date =timezone.now()
layer.save()
else:
--
2.1.0--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toasterSignature · 4 lines
Alex Damian Yocto Project SSG / OTC
Extra patch taken for submission.
Cheers,
Alex
Quoted 113 lines · Belen
I know this was taken, but the revision label is missing the class project-form, which sets the correct spacing :/ I've pushed a patch to
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=bbarrosp/7
190&id=d6a7416c8e9efe4222fa54d8ff9d96076d56a00aAny chance you can take it with Michael's patch?
Thanks!!
Belén
Quoted 96 lines · Alexandru
Taken for submission,
Thank you,
AlexOn Wed, Feb 18, 2015 at 3:18 PM, Michael Wood
<[email protected]> wrote:This wasn't required or working due to a typo and adds ambiguity between the summary and description. The correct method for changing the description
or summary is via the layerdetails page.[YOCTO #7190]
Signed-off-by Michael Wood <[email protected]>---
bitbake/lib/toaster/toastergui/static/js/importlayer.js | 1 - bitbake/lib/toaster/toastergui/templates/importlayer.html | 6 ------ bitbake/lib/toaster/toastergui/views.py | 3 --- 3 files changed, 10 deletions(-)bitbake/lib/toaster/toastergui/static/js/importlayer.js +0
-1@@ -136,7 +136,6 @@ function importLayerPageInit (ctx) { name: layerNameInput.val(), vcs_url: vcsURLInput.val(), git_ref: gitRefInput.val(), - summary: $("#layer-summary").val(), dir_path: $("#layer-subdir").val(), project_id: ctx.projectId, layer_deps: layerDepsCsv,bitbake/lib/toaster/toastergui/templates/importlayer.html +0
-1@@ -84,12 +84,6 @@ </div> </div> - <label class="project-form"for="layer-description">Layer description
bitbake/lib/toaster/toastergui/templates/importlayer.html +0
-2- <span class="muted">(optional)</span> - <span class="icon-question-sign get-help"title="A short layer explanation" />
bitbake/lib/toaster/toastergui/templates/importlayer.html +0
-2- </label> - <textarea id="layer-description"class="input-xxlarge"></textarea>
bitbake/lib/toaster/toastergui/templates/importlayer.html +0
-1- </fieldset> <fieldset class="air"> <legend>bitbake/lib/toaster/toastergui/views.py +0
-2@@ -2413,9 +2413,6 @@ if toastermain.settings.MANAGED: if layer_created: layer.layer_source = layer_source layer.vcs_url = post_data['vcs_url'] - if post_data.has_key('summary'): - layer.summary = layer.description =post_data['summary']
-
layer.up_date =timezone.now()
layer.save()
else:
--
2.1.0--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster--
Alex Damian
Yocto ProjectSSG / OTC
Signature · 3 lines
Alex Damian Yocto Project SSG / OTC