Skip to contentSkip to conversation

bitbake: toaster: <Add class id to a few columns>

PATCH In review Mihail Stanciu 2 participants 2 messages May 4, 2015 – May 7, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake: toaster: <Add class id to a few columns>

Added class ids to columns that were missing them in the Packages and Recipes pages. This is required for Toaster UI automation efforts.

[YOCTO #7377]

---
 bitbake/lib/toaster/toastergui/templates/bpackage.html | 4 ++--
 bitbake/lib/toaster/toastergui/templates/recipes.html  | 8 ++++++--
 2 files changed, 8 insertions(+), 4 deletions(-)
bitbake/lib/toaster/toastergui/templates/bpackage.html +2 -2
index 80229f9..6fbdc7b 100644
@@ -60,9 +60,9 @@
     <tr class="data">
 
         <!-- Package -->
-        <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}}</a></td>
+        <td class="package_name"><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}}</a></td>
         <!-- Package Version -->
-        <td>{%if package.version%}<a href="{% url "package_built_detail" build.pk package.pk %}">{{package.version}}-{{package.revision}}</a>{%endif%}</td>
+        <td class="package_version">{%if package.version%}<a href="{% url "package_built_detail" build.pk package.pk %}">{{package.version}}-{{package.revision}}</a>{%endif%}</td>
         <!-- Package Size -->
         <td class="size sizecol">{{package.size|filtered_filesizeformat}}</td>
         <!-- License -->
bitbake/lib/toaster/toastergui/templates/recipes.html +6 -2
index 889e676..a083a29 100644
@@ -41,8 +41,12 @@
     {% for recipe in objects %}
 
     <tr class="data">
-        <td><a href="{% url "recipe" build.pk recipe.pk %}">{{recipe.name}}</a></td>
-        <td><a href="{% url "recipe" build.pk recipe.pk %}">{{recipe.version}}</a></td>
+        <td class="recipe__name">
+            <a href="{% url "recipe" build.pk recipe.pk %}">{{recipe.name}}</a>
+        </td>
+        <td class="recipe__version">
+            <a href="{% url "recipe" build.pk recipe.pk %}">{{recipe.version}}</a>
+        </td>
         <!-- Depends -->
         <td class="depends_on">
             {% with deps=recipe_deps|get_dict_value:recipe.pk %}
Signature · 1 line
2.1.0
#1 lore raw

Taken for submission,

Thank you,
Alex

Quoted 66 lines · Mihail Stanciu

Added class ids to columns that were missing them in the Packages and Recipes pages. This is required for Toaster UI automation efforts.

[YOCTO #7377]

---
 bitbake/lib/toaster/toastergui/templates/bpackage.html | 4 ++--
 bitbake/lib/toaster/toastergui/templates/recipes.html  | 8 ++++++--
 2 files changed, 8 insertions(+), 4 deletions(-)
bitbake/lib/toaster/toastergui/templates/bpackage.html +0 -1
index 80229f9..6fbdc7b 100644
@@ -60,9 +60,9 @@
     <tr class="data">
 
         <!-- Package -->
-        <td><a href="{% url "package_built_detail" build.pk package.pk

%}">{{package.name}}</a></td>
+ <td class="package_name"><a href="{% url "package_built_detail"
build.pk package.pk %}">{{package.name}}</a></td>

         <!-- Package Version -->

- <td>{%if package.version%}<a href="{% url "package_built_detail"
build.pk package.pk %}">{{package.version}}-{{package.revision}}</a>{%endif%}</td>
+ <td class="package_version">{%if package.version%}<a href="{% url
"package_built_detail" build.pk package.pk %}">{{package.version}}-{{package.revision}}</a>{%endif%}</td>

         <!-- Package Size -->
         <td class="size
sizecol">{{package.size|filtered_filesizeformat}}</td>
         <!-- License -->
bitbake/lib/toaster/toastergui/templates/recipes.html +0 -2
index 889e676..a083a29 100644
@@ -41,8 +41,12 @@
     {% for recipe in objects %}
 
     <tr class="data">
-        <td><a href="{% url "recipe" build.pk recipe.pk %}">{{recipe.name
 }}</a></td>
-        <td><a href="{% url "recipe" build.pk recipe.pk

%}">{{recipe.version}}</a></td>

bitbake/lib/toaster/toastergui/templates/recipes.html +2 -0
+        <td class="recipe__name">
+            <a href="{% url "recipe" build.pk recipe.pk %}">{{recipe.name

}}</a>

bitbake/lib/toaster/toastergui/templates/recipes.html +3 -0
+        </td>
+        <td class="recipe__version">
+            <a href="{% url "recipe" build.pk recipe.pk

%}">{{recipe.version}}</a>
+ </td>

         <!-- Depends -->
         <td class="depends_on">
             {% with deps=recipe_deps|get_dict_value:recipe.pk %}

--
2.1.0

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Signature · 3 lines
Alex Damian
Yocto Project
SSG / OTC