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>
This commit is contained in:
Belen Barros Pena
2014-03-17 04:53:08 +00:00
committed by Richard Purdie
parent 53b781f41e
commit 6831b7ad16
3 changed files with 16 additions and 3 deletions

View File

@@ -103,7 +103,7 @@ select { width: auto; }
.well > .lead, .alert .lead { margin-bottom: 0px; }
.no-results { margin: 10px 0; }
.task-name { margin-left: 7px; }
.icon-hand-right {color: #ccccc; }
.icon-hand-right {color: #CCCCCC; }
.help-inline { margin: 5px; }
.hero-unit { margin: 20px 0 30px; }
.hero-unit > .close { font-size:40px; }

View File

@@ -107,5 +107,5 @@ $(document).ready(function() {
if (location.href.search('#warnings') > -1) {
$('#collapse-warnings').addClass('in');
}
});

View File

@@ -75,7 +75,7 @@
{% include "basetable_top.html" %}
{% for task in objects %}
<tr {{ task|task_color }} class="flash" id="{{task.order}}" name="{{task.order}}">
<tr {{ task|task_color }} id="{{task.order}}">
<td class="order">
<a href="{%url "task" build.pk task.pk%}">{{task.order}}</a>
</td>
@@ -117,4 +117,17 @@
{% endif %} {# objects.paginator.count #}
{% endif %} {# empty #}
</div>
<script type="text/javascript">
$(document).ready(function() {
// enable blue hightlight animation for the order link
if (location.href.search('#') > -1) {
var task_order = location.href.split('#')[1];
$("#" + task_order).addClass("highlight");
}
});
</script>
{% endblock %}