summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2014-03-17 04:53:08 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-05 14:55:28 +0100
commit6831b7ad16e11ed0f3bf24a0cef5ba7612a9bae0 (patch)
treea6915c0b98353b456e9e6ac2e9d6d64327cd9555 /bitbake/lib/toaster
parent53b781f41e71c359b66603a9786cf30cbaf73a65 (diff)
downloadpoky-6831b7ad16e11ed0f3bf24a0cef5ba7612a9bae0.tar.gz
bitbake: toaster: Remove html validation errors in tasks.html
Remove the duplicated class attribute and the name attribute. Also, make sure that the row blue highlight works without the name attribute when you land on the tasks table after clicking the order link in a task details page. The commit also fixes a typo in default.css. [YOCTO #6033] (Bitbake rev: 471234f1ab1dbcd736a892720e99a305363db5ff) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r--bitbake/lib/toaster/toastergui/static/css/default.css2
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/main.js2
-rw-r--r--bitbake/lib/toaster/toastergui/templates/tasks.html15
3 files changed, 16 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css
index 0b53718a39..b4345da3d7 100644
--- a/bitbake/lib/toaster/toastergui/static/css/default.css
+++ b/bitbake/lib/toaster/toastergui/static/css/default.css
@@ -103,7 +103,7 @@ select { width: auto; }
103.well > .lead, .alert .lead { margin-bottom: 0px; } 103.well > .lead, .alert .lead { margin-bottom: 0px; }
104.no-results { margin: 10px 0; } 104.no-results { margin: 10px 0; }
105.task-name { margin-left: 7px; } 105.task-name { margin-left: 7px; }
106.icon-hand-right {color: #ccccc; } 106.icon-hand-right {color: #CCCCCC; }
107.help-inline { margin: 5px; } 107.help-inline { margin: 5px; }
108.hero-unit { margin: 20px 0 30px; } 108.hero-unit { margin: 20px 0 30px; }
109.hero-unit > .close { font-size:40px; } 109.hero-unit > .close { font-size:40px; }
diff --git a/bitbake/lib/toaster/toastergui/static/js/main.js b/bitbake/lib/toaster/toastergui/static/js/main.js
index 7f897d2a90..eef6b468f4 100644
--- a/bitbake/lib/toaster/toastergui/static/js/main.js
+++ b/bitbake/lib/toaster/toastergui/static/js/main.js
@@ -107,5 +107,5 @@ $(document).ready(function() {
107 if (location.href.search('#warnings') > -1) { 107 if (location.href.search('#warnings') > -1) {
108 $('#collapse-warnings').addClass('in'); 108 $('#collapse-warnings').addClass('in');
109 } 109 }
110 110
111}); 111});
diff --git a/bitbake/lib/toaster/toastergui/templates/tasks.html b/bitbake/lib/toaster/toastergui/templates/tasks.html
index d68a31a24d..77d38b00de 100644
--- a/bitbake/lib/toaster/toastergui/templates/tasks.html
+++ b/bitbake/lib/toaster/toastergui/templates/tasks.html
@@ -75,7 +75,7 @@
75 {% include "basetable_top.html" %} 75 {% include "basetable_top.html" %}
76 76
77 {% for task in objects %} 77 {% for task in objects %}
78 <tr {{ task|task_color }} class="flash" id="{{task.order}}" name="{{task.order}}"> 78 <tr {{ task|task_color }} id="{{task.order}}">
79 <td class="order"> 79 <td class="order">
80 <a href="{%url "task" build.pk task.pk%}">{{task.order}}</a> 80 <a href="{%url "task" build.pk task.pk%}">{{task.order}}</a>
81 </td> 81 </td>
@@ -117,4 +117,17 @@
117 {% endif %} {# objects.paginator.count #} 117 {% endif %} {# objects.paginator.count #}
118{% endif %} {# empty #} 118{% endif %} {# empty #}
119</div> 119</div>
120
121<script type="text/javascript">
122
123 $(document).ready(function() {
124 // enable blue hightlight animation for the order link
125 if (location.href.search('#') > -1) {
126 var task_order = location.href.split('#')[1];
127 $("#" + task_order).addClass("highlight");
128 }
129 });
130
131</script>
132
120{% endblock %} 133{% endblock %}