Skip to contentSkip to conversation

toastergui: Remove project name from latest project builds

PATCH In review Belen Barros Pena 2 participants 2 messages Sep 30, 2015 – Oct 2, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toastergui: Remove project name from latest project builds

From: Belen Barros Pena <[email protected]>

The 'latest builds' list in the project builds page does not need to show the project name, since it lists only builds for the selected project.

This patch removes the redundant project name.

---
 bitbake/lib/toaster/toastergui/templates/mrb_section.html | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/templates/mrb_section.html +4 -2
index 2fefe4b..111c7eb 100644
@@ -18,13 +18,15 @@
   {% endif %}
   <div id="latest-builds">
   {% for build in mru %}
-    <div class="alert {%if build.outcome == build.SUCCEEDED%}alert-success{%elif build.outcome == build.FAILED%}alert-error{%else%}alert-info{%endif%} project-name ">
+  <div class="alert {%if build.outcome == build.SUCCEEDED%}alert-success{%elif build.outcome == build.FAILED%}alert-error{%else%}alert-info{%endif%} 
+    {% if mrb_type != 'project' %} 
+    project-name">
        <span class="label {%if build.outcome == build.SUCCEEDED%}label-success{%elif build.outcome == build.FAILED%}label-important{%else%}label-info{%endif%}">
          <a href={% url 'project' build.project.pk %}>
            {{build.project.name}}
          </a>
        </span>
-
+    {% endif %}
         <div class="row-fluid">
             <div class="span3 lead">
     {%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %}
Signature · 1 line
2.3.8 (Apple Git-58)
#1 lore raw

Looks good to me, submitting to bitbake-devel.

Elliot

Quoted 52 lines · Belen Barros Pena

From: Belen Barros Pena <[email protected]>

The 'latest builds' list in the project builds page does not need to show the project name, since it lists only builds for the selected project.

This patch removes the redundant project name.

---
 bitbake/lib/toaster/toastergui/templates/mrb_section.html | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/templates/mrb_section.html +0 -1
index 2fefe4b..111c7eb 100644
@@ -18,13 +18,15 @@
   {% endif %}
   <div id="latest-builds">
   {% for build in mru %}
-    <div class="alert {%if build.outcome ==

build.SUCCEEDED%}alert-success{%elif build.outcome == build.FAILED%}alert-error{%else%}alert-info{%endif%} project-name ">
+ <div class="alert {%if build.outcome == build.SUCCEEDED%}alert-success{%elif build.outcome == build.FAILED%}alert-error{%else%}alert-info{%endif%}

bitbake/lib/toaster/toastergui/templates/mrb_section.html +2 -0
+    {% if mrb_type != 'project' %}
+    project-name">
        <span class="label {%if build.outcome ==

build.SUCCEEDED%}label-success{%elif build.outcome == build.FAILED%}label-important{%else%}label-info{%endif%}">

          <a href={% url 'project' build.project.pk %}>
            {{build.project.name}}
          </a>
        </span>
bitbake/lib/toaster/toastergui/templates/mrb_section.html +1 -1
-
+    {% endif %}
         <div class="row-fluid">
             <div class="span3 lead">
     {%if build.outcome == build.SUCCEEDED or build.outcome ==

build.FAILED %}
--
2.3.8 (Apple Git-58)

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

Signature · 3 lines
Elliot Smith
Software Engineer
Intel Open Source Technology Centre