Skip to contentSkip to conversation

toaster: change 'revision' to 'Git revision'

PATCH In review Belen Barros Pena 2 participants 4 messages Mar 2, 2016 – Mar 7, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 toaster: change 'revision' to 'Git revision'

I've received some feedback on the 'Revision' label we use in the import layer page. It is not quite communicating that what's required is a Git revision. Changing it to 'Git revision' to make it a bit more specific.

The change applies not only to the import layer page, but to all pages showing revision information in the project configuration section.

For more on the feedback received, check

https://bugzilla.yoctoproject.org/show_bug.cgi?id=8429#c3

---
 bitbake/lib/toaster/toastergui/tables.py                   | 6 +++---
 bitbake/lib/toaster/toastergui/templates/base.html         | 2 +-
 bitbake/lib/toaster/toastergui/templates/importlayer.html  | 2 +-
 bitbake/lib/toaster/toastergui/templates/layerdetails.html | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)
bitbake/lib/toaster/toastergui/tables.py +3 -3
index 71892e2..67a6592 100644
@@ -158,7 +158,7 @@ class LayersTable(ToasterTable):
         {% endwith %}
         '''
 
-        self.add_column(title="Revision",
+        self.add_column(title="Git revision",
                         help_text="The Git branch, tag or commit. For the layers from the OpenEmbedded layer source, the revision is always the branch compatible with the Yocto Project version you selected for this project",
                         static_data_name="revision",
                         static_data_template=revision_template)
@@ -269,7 +269,7 @@ class MachinesTable(ToasterTable):
                         static_data_template=layer_link_template,
                         orderable=True)
 
-        self.add_column(title="Revision",
+        self.add_column(title="Git revision",
                         help_text="The Git branch, tag or commit. For the layers from the OpenEmbedded layer source, the revision is always the branch compatible with the Yocto Project version you selected for this project",
                         hidden=True,
                         field_name="layer_version__get_vcs_reference")
@@ -428,7 +428,7 @@ class RecipesTable(ToasterTable):
                         orderable=True,
                         field_name="license")
 
-        self.add_column(title="Revision",
+        self.add_column(title="Git revision",
                         hidden=True,
                         field_name="layer_version__get_vcs_reference")
 
bitbake/lib/toaster/toastergui/templates/base.html +1 -1
index 6994bcc..121a75c 100644
@@ -77,7 +77,7 @@
           <span class="brand">
             <a href="/">Toaster</a>
             {% if DEBUG %}
-            <i class="icon-info-sign" title="<strong>Toaster version information</strong>" data-content="<dl><dt>Branch</dt><dd>{{TOASTER_BRANCH}}</dd><dt>Revision</dt><dd>{{TOASTER_REVISION}}</dd></dl>"></i>
+            <i class="icon-info-sign" title="<strong>Toaster version information</strong>" data-content="<dl><dt>Git branch</dt><dd>{{TOASTER_BRANCH}}</dd><dt>Git revision</dt><dd>{{TOASTER_REVISION}}</dd></dl>"></i>
             {% endif %}
           </span>
           {% if request.resolver_match.url_name != 'landing' and request.resolver_match.url_name != 'newproject' %}
bitbake/lib/toaster/toastergui/templates/importlayer.html +1 -1
index 033f0ae..1848f41 100644
@@ -89,7 +89,7 @@
                         <input type="text"  id="layer-subdir">
 
                           <div class="control-group" id="layer-revision-ctrl">
-                            <label class="control-label project-form" for="layer-git-ref">Revision
+                            <label class="control-label project-form" for="layer-git-ref">Git revision
                               <span class="icon-question-sign get-help" title="You can provide a Git branch, a tag or a commit SHA as the revision"></span>
                             </label>
                             <div class="controls">
bitbake/lib/toaster/toastergui/templates/layerdetails.html +1 -1
index f960061..82be370 100644
@@ -154,7 +154,7 @@
             </dd>
             <dt>
               <i class="icon-question-sign get-help" title="The Git branch, tag or commit"></i>
-              Revision
+              Git revision
             </dt>
             <dd>
               <span class="current-value">{{layerversion.get_vcs_reference}}</span>
Signature · 1 line
2.5.4 (Apple Git-61)
#1 lore raw

PATCH 2/2 toaster: bring back the strict directive

This patch e0fd96442a20e3fe7953bf38fc02520cd0dd4d6a removed the "use strict" directive from the projectpage.js file by mistake.

This patch makes amendments.

---
 bitbake/lib/toaster/toastergui/static/js/projectpage.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/static/js/projectpage.js +1 -1
index 292ceb7..6655a18 100644
@@ -1,4 +1,4 @@
-
+"use strict";
 
 function projectPageInit(ctx) {
 
Signature · 1 line
2.5.4 (Apple Git-61)
#2 lore raw

Re: [PATCH 2/2] toaster: bring back the strict directive

Sent upstream, added to toaster-next.

Elliot

Quoted 30 lines · Belen Barros Pena

This patch e0fd96442a20e3fe7953bf38fc02520cd0dd4d6a removed the "use strict" directive from the projectpage.js file by mistake.

This patch makes amendments.

---
 bitbake/lib/toaster/toastergui/static/js/projectpage.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/static/js/projectpage.js +1 -2
index 292ceb7..6655a18 100644
@@ -1,4 +1,4 @@
-
+"use strict";
 
 function projectPageInit(ctx) {
 
--

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
#3 lore raw
In reply to Belen Barros Pena

Sent upstream, added to toaster-next.

Elliot

Quoted 121 lines · Belen Barros Pena

I've received some feedback on the 'Revision' label we use in the import layer page. It is not quite communicating that what's required is a Git revision. Changing it to 'Git revision' to make it a bit more specific.

The change applies not only to the import layer page, but to all pages showing revision information in the project configuration section.

For more on the feedback received, check

https://bugzilla.yoctoproject.org/show_bug.cgi?id=8429#c3

---
 bitbake/lib/toaster/toastergui/tables.py                   | 6 +++---
 bitbake/lib/toaster/toastergui/templates/base.html         | 2 +-
 bitbake/lib/toaster/toastergui/templates/importlayer.html  | 2 +-
 bitbake/lib/toaster/toastergui/templates/layerdetails.html | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)
bitbake/lib/toaster/toastergui/tables.py +1 -1
index 71892e2..67a6592 100644
@@ -158,7 +158,7 @@ class LayersTable(ToasterTable):
         {% endwith %}
         '''
 
-        self.add_column(title="Revision",
+        self.add_column(title="Git revision",
                         help_text="The Git branch, tag or commit. For the

layers from the OpenEmbedded layer source, the revision is always the branch compatible with the Yocto Project version you selected for this project",
static_data_name="revision", static_data_template=revision_template)

bitbake/lib/toaster/toastergui/tables.py +1 -1
@@ -269,7 +269,7 @@ class MachinesTable(ToasterTable):
                         static_data_template=layer_link_template,
                         orderable=True)
 
-        self.add_column(title="Revision",
+        self.add_column(title="Git revision",
                         help_text="The Git branch, tag or commit. For the

layers from the OpenEmbedded layer source, the revision is always the branch compatible with the Yocto Project version you selected for this project",
hidden=True, field_name="layer_version__get_vcs_reference")

bitbake/lib/toaster/toastergui/tables.py +1 -1
@@ -428,7 +428,7 @@ class RecipesTable(ToasterTable):
                         orderable=True,
                         field_name="license")
 
-        self.add_column(title="Revision",
+        self.add_column(title="Git revision",
                         hidden=True,
                         field_name="layer_version__get_vcs_reference")
 
bitbake/lib/toaster/toastergui/templates/base.html +0 -1
index 6994bcc..121a75c 100644
@@ -77,7 +77,7 @@
           <span class="brand">
             <a href="/">Toaster</a>
             {% if DEBUG %}
-            <i class="icon-info-sign" title="<strong>Toaster version

information</strong>" data-content="<dl><dt>Branch</dt><dd>{{TOASTER_BRANCH}}</dd><dt>Revision</dt><dd>{{TOASTER_REVISION}}</dd></dl>"></i>
+ <i class="icon-info-sign" title="<strong>Toaster version
information</strong>" data-content="<dl><dt>Git
branch</dt><dd>{{TOASTER_BRANCH}}</dd><dt>Git revision</dt><dd>{{TOASTER_REVISION}}</dd></dl>"></i>

             {% endif %}
           </span>
           {% if request.resolver_match.url_name != 'landing' and

request.resolver_match.url_name != 'newproject' %}

bitbake/lib/toaster/toastergui/templates/importlayer.html +0 -0
index 033f0ae..1848f41 100644
@@ -89,7 +89,7 @@
                         <input type="text"  id="layer-subdir">
 
                           <div class="control-group"

id="layer-revision-ctrl">
- <label class="control-label project-form"
for="layer-git-ref">Revision
+ <label class="control-label project-form"
for="layer-git-ref">Git revision
<span class="icon-question-sign get-help"
title="You can provide a Git branch, a tag or a commit SHA as the revision"></span>

                             </label>
                             <div class="controls">
bitbake/lib/toaster/toastergui/templates/layerdetails.html +0 -0
index f960061..82be370 100644
@@ -154,7 +154,7 @@
             </dd>
             <dt>
               <i class="icon-question-sign get-help" title="The Git

branch, tag or commit"></i>

bitbake/lib/toaster/toastergui/templates/layerdetails.html +1 -1
-              Revision
+              Git revision
             </dt>
             <dd>
               <span

class="current-value">{{layerversion.get_vcs_reference}}</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