templates/rrs/maintainers.html: Added links to recipe page.

rrs/static/css/rrs-additional.css: Added formating to the table footer.

Added links to recipe page using the update status filter in the header.
Changed the <th> tags in the footer to <td>.
Added color to the footer format instead of bold.

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
Mariano Lopez 2015-04-09 17:04:35 -05:00 committed by Aníbal Limón
parent 573d2deb71
commit 920564d556
2 changed files with 30 additions and 12 deletions

View File

@ -90,6 +90,10 @@ th > a, th.muted {
color: #c09853; color: #c09853;
} }
.totalRow {
background-color: #fcf8e3;
}
/* status styles */ /* status styles */
.well{ .well{

View File

@ -105,21 +105,36 @@
</tbody> </tbody>
<tfoot id="statistics-table-foot"> <tfoot id="statistics-table-foot">
<tr class="totalRow"> <tr class="totalRow">
<th id="totalCell">Total</th> <td id="totalCell">Total</td>
<th id="totalAssigned" class="totalCol"></th> <td>
<th id="totalUptoDate" class="totalCol"></th> <a id="totalAssigned" class="totalCol" href="{% url 'recipes' release_name milestone_name %}">
<th class="totalCol"></th> </a>
<th class="totalCol"></th> </td>
<th class="totalCol"></th> <td>
<th id="totalPercentage"></th> <a id="totalUptoDate" class="totalCol" href="{% url 'recipes' release_name milestone_name %}?upstream_status={{ "Up-to-date"|urlencode }}">
</a>
</td>
<td>
<a class="totalCol" href="{% url 'recipes' release_name milestone_name %}?upstream_status={{ "Not updated"|urlencode }}">
</a>
</td>
<td>
<a class="totalCol" href="{% url 'recipes' release_name milestone_name %}?upstream_status={{ "Can't be updated"|urlencode }}">
</a>
</td>
<td>
<a class="totalCol" href="{% url 'recipes' release_name milestone_name %}?upstream_status={{ "Unknown"|urlencode }}">
</a>
</td>
<td id="totalPercentage"></td>
{% for i in intervals %} {% for i in intervals %}
{% if current_interval == forloop.counter0 %} {% if current_interval == forloop.counter0 %}
<th class="current-wk"> <td class="current-wk">
{% else %} {% else %}
<th class="totalCol"> <td class="totalCol">
{% endif %} {% endif %}
{{ i }} {{ i }}
</th> </td>
{% endfor %} {% endfor %}
</tr> </tr>
</tfoot> </tfoot>
@ -160,7 +175,7 @@ $(document).ready(function() {
$('#statistics-table').show() $('#statistics-table').show()
$('#no_maintainers_alert').hide() $('#no_maintainers_alert').hide()
count = 0 count = -1
$('tr:visible').each(function() { $('tr:visible').each(function() {
count++ count++
}); });
@ -223,7 +238,6 @@ $(document).ready(function() {
tempInt2 = parseInt($("#totalAssigned").html()) tempInt2 = parseInt($("#totalAssigned").html())
tempInt1 = ((tempInt1/tempInt2).toFixed(2))*100 tempInt1 = ((tempInt1/tempInt2).toFixed(2))*100
$("#totalPercentage").html(tempInt1 +'%') $("#totalPercentage").html(tempInt1 +'%')
} }
{% if maintainer_count > 0 %} {% if maintainer_count > 0 %}