Commit 352dc010 authored by Tom Tryfonidis's avatar Tom Tryfonidis Committed by Gil Forcada

Fix for the statistics table

This patch fixes the stats table in language and user settings
page.There is also a minor change to the 'module images' page.

https://bugzilla.gnome.org/show_bug.cgi?id=681167
parent 742ba1a8
......@@ -378,6 +378,8 @@ table.stats thead th {
padding-top: 5px;
padding-bottom: 5px;
background: -moz-linear-gradient(top, #f9f9f9, #ececec);
background: -webkit-linear-gradient(top, #f9f9f9, #ececec);
background: linear-gradient(top, #f9f9f9, #ececec);
white-space: nowrap;
}
table.stats th,
......@@ -403,11 +405,6 @@ table.stats tfoot {
/* Compact text stats */
.stats_numb a {
text-decoration: none;
border-bottom: 1px dotted rgba(0, 0, 0, 0.5);
}
pre.stats {
color: #333;
display: inline;
......@@ -455,20 +452,26 @@ pre.stats .zero {
.graph .translated {
background: #73d216;
background: -moz-linear-gradient(top, #73d216, #66bb14);
background: -webkit-linear-gradient(top, #73d216, #66bb14);
background: -linear-gradient(top, #73d216, #66bb14);
}
.graph .fuzzy {
background: #5688c9;
background: -moz-linear-gradient(top, #ff840d, #e37000);
background: -webkit-linear-gradient(top, #ff840d, #e37000);
background: linear-gradient(top, #ff840d, #e37000);
}
.graph .untranslated {
background: #ff1b1b;
background: -moz-linear-gradient(top, #ff1b1b, #cc0000);
background: -webkit-linear-gradient(top, #ff1b1b, #cc0000);
background: linear-gradient(top, #ff1b1b, #cc0000);
}
/* Download button */
.download_button {
background: red; /* FIXME */
text-decoration: underline;
}
/* Multi column lists */
......@@ -573,6 +576,29 @@ pre.stats .zero {
margin: 0;
font-size: 12px;
}
table.stats thead tr .header {
background: #eeeeee url(../img/bg.gif) no-repeat center right;
background: url(../img/bg.gif) no-repeat center right, -moz-linear-gradient(top, #f9f9f9, #ececec);
background: url(../img/bg.gif) no-repeat center right, -webkit-linear-gradient(top, #f9f9f9, #ececec);
background: url(../img/bg.gif) no-repeat center right, linear-gradient(top, #f9f9f9, #ececec);
cursor: pointer;
padding-right: 1.2em;
}
table.stats thead tr .headerSortUp {
background: #eeeeee url(../img/asc.gif) no-repeat center right;
background: url(../img/asc.gif) no-repeat center right, -moz-linear-gradient(top, #f9f9f9, #ececec);
background: url(../img/asc.gif) no-repeat center right, -webkit-linear-gradient(top, #f9f9f9, #ececec);
background: url(../img/asc.gif) no-repeat center right, linear-gradient(top, #f9f9f9, #ececec);
}
table.stats thead tr .headerSortDown {
background: #eeeeee url(../img/desc.gif) no-repeat center right;
background: url(../img/desc.gif) no-repeat center right, -moz-linear-gradient(top, #f9f9f9, #ececec);
background: url(../img/desc.gif) no-repeat center right, -webkit-linear-gradient(top, #f9f9f9, #ececec);
background: url(../img/desc.gif) no-repeat center right, linear-gradient(top, #f9f9f9, #ececec);
}
table.stats th.headerNoSort {
background-color: #eeeeee;
}
/* Vertimus detail */
/* ========================================================================== */
......
......@@ -5,7 +5,7 @@
<table>
<tr>
<td class="leftcell" colspan="3" title="{% trans "Translated/Fuzzy/Untranslated" %}">{{ modstats.totaltransperc }}% ({{ modstats.totaltrans }}/{{ modstats.totalfuzzy }}/{{ modstats.totaluntrans }})</td>
<td class="leftcell" colspan="3" title="{% trans "Translated/Fuzzy/Untranslated" %}"><span style="margin-right: 10px;">{{ modstats.totaltransperc }}% ({{ modstats.totaltrans }}/{{ modstats.totalfuzzy }}/{{ modstats.totaluntrans }})</span></td>
<td style="width: 108px; text-align: center;"><div class="graph">
<div class="translated" style="width: {{ modstats.totaltransperc }}px;"></div>
<div class="fuzzy" style="{{ LANGUAGE_BIDI|yesno:"right,left" }}:{{ modstats.totaltransperc }}px; width:{{ modstats.totalfuzzyperc }}px;"></div>
......@@ -17,7 +17,7 @@
</tr>
</table>
<table class="tablesorter" name="stats-table" id="stats-table">
<table class="stats" name="stats-table" id="stats-table">
<thead>
<tr><th>{% trans "Module" %}</th><th>{% trans "Branch" %}</th>
{# colspan=2 for Statistics is causing offset in sort effect for following columns #}
......
......@@ -7,7 +7,7 @@
{% block content %}
<div class="mainpage">
<h1><a href="{% url 'module' module.name %}">{{ module.description }}</a> {% trans stat.domain.description %} ({% trans stat.language.name %})</h1>
<h1><a href="{% url 'module' module.name %}">{{ module.description }}</a> <span style="color: #000">{% trans stat.domain.description %}</span> ({% trans stat.language.name %})</h1>
<h2>{% trans "Figures translation status" %} &mdash;
<small>{{ figstats|num_stats }}</small></h2>
......
......@@ -49,7 +49,7 @@ $(document).ready(function()
{% if states %}
<h2>{% trans "Current activity" %}</h2>
<table class="tablesorter" id="working_on">
<table class="stats" id="working_on">
<thead><tr>
<th>{% trans "Date" %}</th><th>{% trans "Module" %}</th><th>{% trans "State" %}</th>
</tr></thead>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment