diff options
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/build.html | 6 | ||||
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/builddashboard.html | 9 |
2 files changed, 12 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/build.html b/bitbake/lib/toaster/toastergui/templates/build.html index afa390fc17..faabd22f8b 100644 --- a/bitbake/lib/toaster/toastergui/templates/build.html +++ b/bitbake/lib/toaster/toastergui/templates/build.html | |||
@@ -48,16 +48,16 @@ | |||
48 | {%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %} | 48 | {%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %} |
49 | <div class="span2 lead"> | 49 | <div class="span2 lead"> |
50 | {% if build.errors_no %} | 50 | {% if build.errors_no %} |
51 | <i class="icon-minus-sign red"></i> <a href="{%url 'builddashboard' build.pk%}" class="error">{{build.errors_no}} error{{build.errors_no|pluralize}}</a> | 51 | <i class="icon-minus-sign red"></i> <a href="{%url 'builddashboard' build.pk%}#errors" class="error">{{build.errors_no}} error{{build.errors_no|pluralize}}</a> |
52 | {% endif %} | 52 | {% endif %} |
53 | </div> | 53 | </div> |
54 | <div class="span2 lead"> | 54 | <div class="span2 lead"> |
55 | {% if build.warnings_no %} | 55 | {% if build.warnings_no %} |
56 | <i class="icon-warning-sign yellow"></i> <a href="{%url 'builddashboard' build.pk%}" class="warning">{{build.warnings_no}} warning{{build.warnings_no|pluralize}}</a> | 56 | <i class="icon-warning-sign yellow"></i> <a href="{%url 'builddashboard' build.pk%}#warnings" class="warning">{{build.warnings_no}} warning{{build.warnings_no|pluralize}}</a> |
57 | {% endif %} | 57 | {% endif %} |
58 | </div> | 58 | </div> |
59 | <div class="lead pull-right"> | 59 | <div class="lead pull-right"> |
60 | Build time: <a href="build-time.html">{{ build.timespent|sectohms }}</a> | 60 | Build time: <a href="{% url 'buildtime' build.pk %}">{{ build.timespent|sectohms }}</a> |
61 | </div> | 61 | </div> |
62 | {%endif%}{%if build.outcome == build.IN_PROGRESS %} | 62 | {%endif%}{%if build.outcome == build.IN_PROGRESS %} |
63 | <div class="span4"> | 63 | <div class="span4"> |
diff --git a/bitbake/lib/toaster/toastergui/templates/builddashboard.html b/bitbake/lib/toaster/toastergui/templates/builddashboard.html index 6cce7883ba..cc92af5c5a 100644 --- a/bitbake/lib/toaster/toastergui/templates/builddashboard.html +++ b/bitbake/lib/toaster/toastergui/templates/builddashboard.html | |||
@@ -186,4 +186,13 @@ | |||
186 | </div> | 186 | </div> |
187 | {% endif %} | 187 | {% endif %} |
188 | 188 | ||
189 | <script type="text/javascript"> | ||
190 | $(document).ready(function() { | ||
191 | //show warnings section when requested from the previous page | ||
192 | if (location.href.search('#warnings') > -1) { | ||
193 | $('#collapse-warnings').addClass('in'); | ||
194 | } | ||
195 | }); | ||
196 | </script> | ||
197 | |||
189 | {% endblock %} | 198 | {% endblock %} |