toaster: rename 'run again' button
PATCH 1/2 toaster: rename 'run again' button
From: Belen Barros Pena <[email protected]>
I quite dislike the 'Run again' label we use in the button that rebuilds things. Changing it to 'Rebuild', which is shorter and more specific.
--- bitbake/lib/toaster/toastergui/templates/mrb_section.html | 2 +- bitbake/lib/toaster/toastergui/tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/templates/mrb_section.html +1 -1
@@ -113,7 +113,7 @@ {% url 'project' build.project.id as purl %}{{purl|json}}, {{build.target_set.all|get_tasks|json}})'> - Run again + Rebuild </button> {% endif %} </div>
bitbake/lib/toaster/toastergui/tests.py +1 -1
@@ -951,7 +951,7 @@ class AllBuildsPageTests(TestCase): def test_run_again(self): """ - "Run again" button should not be shown for command-line builds, + "Rebuild" button should not be shown for command-line builds, but should be shown for other builds """ build1 = Build.objects.create(**self.project1_build_success)
Signature · 1 line
2.5.4 (Apple Git-61)
PATCH 2/2 toaster: change 'delete layer' to 'remove layer'
From: Belen Barros Pena <[email protected]>
I have received quite a few complaints about the use of the word 'delete' for layer removal, so change it to 'remove'. That also matches the language we use for packages in image customisation.
[YOCTO #9165]
--- bitbake/lib/toaster/toastergui/static/js/layerBtn.js | 2 +- bitbake/lib/toaster/toastergui/static/js/layerdetails.js | 2 +- bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 2 +- bitbake/lib/toaster/toastergui/static/js/projectpage.js | 6 +++--- bitbake/lib/toaster/toastergui/tables.py | 4 ++-- bitbake/lib/toaster/toastergui/templates/layer_btn.html | 2 +- bitbake/lib/toaster/toastergui/templates/layerdetails.html | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-)
bitbake/lib/toaster/toastergui/static/js/layerBtn.js +1 -1
@@ -42,7 +42,7 @@ function layerBtnsInit() { }); }); } else { - notification.text("1 layer deleted"); + notification.text("1 layer removed"); /* Deleting a layer we only hanlde the one button */ thisBtn.fadeOut(function(){ notification.fadeIn().delay(500).fadeOut(function(){
bitbake/lib/toaster/toastergui/static/js/layerdetails.js +1 -1
@@ -243,7 +243,7 @@ function layerDetailsPageInit (ctx) { $(".select-machine-btn").removeAttr("disabled"); addRmLayerBtn.addClass("btn-danger"); addRmLayerBtn.data('directive', "remove"); - addRmLayerBtn.text(" Delete the "+ctx.layerVersion.name+" layer from your project"); + addRmLayerBtn.text(" Remove the "+ctx.layerVersion.name+" layer from your project"); addRmLayerBtn.prepend("<span class=\"icon-trash\"></span>"); } else {
bitbake/lib/toaster/toastergui/static/js/libtoaster.js +1 -1
@@ -316,7 +316,7 @@ var libtoaster = (function (){ } else if (layerDepsList.length === 0 && add === true) { alertMsg = $("<span>You have added <strong>1</strong> layer to your project: <a id=\"layer-affected-name\"></a></span></span>"); } else if (add === false) { - alertMsg = $("<span>You have deleted <strong>1</strong> layer from your project: <a id=\"layer-affected-name\"></a></span>"); + alertMsg = $("<span>You have removed <strong>1</strong> layer from your project: <a id=\"layer-affected-name\"></a></span>"); } alertMsg.children("#layer-affected-name").text(layer.name);
bitbake/lib/toaster/toastergui/static/js/projectpage.js +3 -3
@@ -1,4 +1,4 @@ -"use strict"; + function projectPageInit(ctx) {
@@ -145,7 +145,7 @@ function projectPageInit(ctx) { for (var i in layers){ var layerObj = layers[i]; - var projectLayer = $("<li><a></a><span class=\"icon-trash\" data-toggle=\"tooltip\" title=\"Delete\"></span></li>"); + var projectLayer = $("<li><a></a><span class=\"icon-trash\" data-toggle=\"tooltip\" title=\"Remove\"></span></li>"); projectLayer.data('layer', layerObj); projectLayer.children("span").tooltip();
@@ -393,7 +393,7 @@ function projectPageInit(ctx) { /* Layers removed */ if (layersToRm && layersToRm.length > 0){ if (layersToRm.length == 1) - li = '<li><strong>1</strong> layer deleted: '+layersToRm[0].name+'</li>'; + li = '<li><strong>1</strong> layer removed: '+layersToRm[0].name+'</li>'; else li = '<li><strong>'+layersToRm.length+'</strong> layers deleted: '+layersDelList+'</li>';
bitbake/lib/toaster/toastergui/tables.py +2 -2
@@ -183,8 +183,8 @@ class LayersTable(ToasterTable): static_data_name="dependencies", static_data_template=deps_template) - self.add_column(title="Add | Delete", - help_text="Add or delete layers to / from your project", + self.add_column(title="Add | Remove", + help_text="Add or remove layers to / from your project", hideable=False, filter_name="in_current_project", static_data_name="add-del-layers",
bitbake/lib/toaster/toastergui/templates/layer_btn.html +1 -1
@@ -4,7 +4,7 @@ {% endif %} > <i class="icon-trash"></i> - Delete layer + Remove layer </button> <button class="btn btn-block layer-add-{{data.pk}} layerbtn" data-layer='{ "id": {{data.pk}}, "name": "{{data.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.pk%}"}' data-directive="add" {% if data.pk in extra.current_layers %}
bitbake/lib/toaster/toastergui/templates/layerdetails.html +1 -1
@@ -106,7 +106,7 @@ {% else %} <button id="add-remove-layer-btn" data-directive="remove" class="btn btn-block btn-large btn-danger"> <span class="icon-trash"></span> - Delete the {{layerversion.layer.name}} layer from your project + Remove the {{layerversion.layer.name}} layer from your project </button> {% endif %} </span>
Signature · 1 line
2.5.4 (Apple Git-61)
Re: [PATCH 2/2] toaster: change 'delete layer' to 'remove layer'
Sent upstream and added to toaster-next.
Elliot
Quoted 159 lines · Belen Barros Pena
From: Belen Barros Pena <[email protected]>
I have received quite a few complaints about the use of the word 'delete' for layer removal, so change it to 'remove'. That also matches the language we use for packages in image customisation.
[YOCTO #9165]
Signed-off-by Belen Barros Pena <[email protected]>--- bitbake/lib/toaster/toastergui/static/js/layerBtn.js | 2 +- bitbake/lib/toaster/toastergui/static/js/layerdetails.js | 2 +- bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 2 +- bitbake/lib/toaster/toastergui/static/js/projectpage.js | 6 +++--- bitbake/lib/toaster/toastergui/tables.py | 4 ++-- bitbake/lib/toaster/toastergui/templates/layer_btn.html | 2 +- bitbake/lib/toaster/toastergui/templates/layerdetails.html | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-)bitbake/lib/toaster/toastergui/static/js/layerBtn.js +1
-1@@ -42,7 +42,7 @@ function layerBtnsInit() { }); }); } else { - notification.text("1 layer deleted"); + notification.text("1 layer removed"); /* Deleting a layer we only hanlde the one button */ thisBtn.fadeOut(function(){ notification.fadeIn().delay(500).fadeOut(function(){bitbake/lib/toaster/toastergui/static/js/layerdetails.js +1
-1@@ -243,7 +243,7 @@ function layerDetailsPageInit (ctx) { $(".select-machine-btn").removeAttr("disabled"); addRmLayerBtn.addClass("btn-danger"); addRmLayerBtn.data('directive', "remove"); - addRmLayerBtn.text(" Delete the "+ctx.layerVersion.name+" layer from your project"); + addRmLayerBtn.text(" Remove the "+ctx.layerVersion.name+" layer from your project"); addRmLayerBtn.prepend("<span class=\"icon-trash\"></span>");} else {bitbake/lib/toaster/toastergui/static/js/libtoaster.js +1
-1@@ -316,7 +316,7 @@ var libtoaster = (function (){ } else if (layerDepsList.length === 0 && add === true) { alertMsg = $("<span>You have added <strong>1</strong> layer to your project: <a id=\"layer-affected-name\"></a></span></span>"); } else if (add === false) { - alertMsg = $("<span>You have deleted <strong>1</strong> layer from your project: <a id=\"layer-affected-name\"></a></span>"); + alertMsg = $("<span>You have removed <strong>1</strong> layer from your project: <a id=\"layer-affected-name\"></a></span>");} alertMsg.children("#layer-affected-name").text(layer.name);bitbake/lib/toaster/toastergui/static/js/projectpage.js +2
-2@@ -1,4 +1,4 @@ -"use strict"; + function projectPageInit(ctx) {@@ -145,7 +145,7 @@ function projectPageInit(ctx) { for (var i in layers){ var layerObj = layers[i]; - var projectLayer = $("<li><a></a><span class=\"icon-trash\" data-toggle=\"tooltip\" title=\"Delete\"></span></li>"); + var projectLayer = $("<li><a></a><span class=\"icon-trash\" data-toggle=\"tooltip\" title=\"Remove\"></span></li>");projectLayer.data('layer', layerObj); projectLayer.children("span").tooltip();bitbake/lib/toaster/toastergui/static/js/projectpage.js +1
-1@@ -393,7 +393,7 @@ function projectPageInit(ctx) { /* Layers removed */ if (layersToRm && layersToRm.length > 0){ if (layersToRm.length == 1) - li = '<li><strong>1</strong> layer deleted: '+layersToRm[0].name+'</li>'; + li = '<li><strong>1</strong> layer removed: '+layersToRm[0].name+'</li>'; elseli = '<li><strong>'+layersToRm.length+'</strong> layers deleted:
'+layersDelList+'</li>';bitbake/lib/toaster/toastergui/tables.py +2
-2@@ -183,8 +183,8 @@ class LayersTable(ToasterTable): static_data_name="dependencies", static_data_template=deps_template) - self.add_column(title="Add | Delete", - help_text="Add or delete layers to / from your project", + self.add_column(title="Add | Remove", + help_text="Add or remove layers to / from your project", hideable=False,filter_name="in_current_project", static_data_name="add-del-layers",
bitbake/lib/toaster/toastergui/templates/layer_btn.html +1
-1@@ -4,7 +4,7 @@ {% endif %} > <i class="icon-trash"></i> - Delete layer + Remove layer </button> <button class="btn btn-block layer-add-{{data.pk}} layerbtn" data-layer='{ "id": {{data.pk}}, "name": "{{data.layer.name}}","layerdetailurl": "{%url 'layerdetails' extra.pid data.pk%}"}' data-directive="add"
{% if data.pk in extra.current_layers %}bitbake/lib/toaster/toastergui/templates/layerdetails.html +0
-0@@ -106,7 +106,7 @@ {% else %} <button id="add-remove-layer-btn" data-directive="remove"class="btn btn-block btn-large btn-danger">
<span class="icon-trash"></span>bitbake/lib/toaster/toastergui/templates/layerdetails.html +1
-2- Delete the {{layerversion.layer.name}} layer from your project + Remove the {{layerversion.layer.name}} layer from your project </button> {% endif %} </span> --2.5.4 (Apple Git-61)
--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster
Signature · 3 lines
Elliot Smith Software Engineer Intel Open Source Technology Centre
Sent upstream and added to toaster-next.
Elliot
Quoted 49 lines · Belen Barros Pena
From: Belen Barros Pena <[email protected]>
I quite dislike the 'Run again' label we use in the button that rebuilds things. Changing it to 'Rebuild', which is shorter and more specific.
Signed-off-by Belen Barros Pena <[email protected]>--- bitbake/lib/toaster/toastergui/templates/mrb_section.html | 2 +- bitbake/lib/toaster/toastergui/tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)bitbake/lib/toaster/toastergui/templates/mrb_section.html +1
-1@@ -113,7 +113,7 @@ {% url 'project' build.project.id as purl %}{{purl|json}}, {{build.target_set.all|get_tasks|json}})'> - Run again + Rebuild </button> {% endif %}</div>bitbake/lib/toaster/toastergui/tests.py +1
-2@@ -951,7 +951,7 @@ class AllBuildsPageTests(TestCase): def test_run_again(self): """ - "Run again" button should not be shown for command-line builds, + "Rebuild" button should not be shown for command-line builds, but should be shown for other builds """ build1 = Build.objects.create(**self.project1_build_success) --2.5.4 (Apple Git-61)
--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster
Signature · 3 lines
Elliot Smith Software Engineer Intel Open Source Technology Centre