damned-lies r1258 - in trunk: . media/css templates templates/languages templates/teams
- From: stephaner svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1258 - in trunk: . media/css templates templates/languages templates/teams
- Date: Mon, 29 Dec 2008 22:11:04 +0000 (UTC)
Author: stephaner
Date: Mon Dec 29 22:11:04 2008
New Revision: 1258
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1258&view=rev
Log:
2008-12-29 StÃphane Raimbault <stephane raimbault gmail com>
* media/css/layout.css:
* media/css/main.css:
* templates/languages/language_release_stats.html:
* templates/module_detail.html:
* templates/release_detail.html:
* templates/release_list.html:
* templates/teams/team_detail.html: Remove inline styles and swap
UI and Documentation columns.
Modified:
trunk/ChangeLog
trunk/media/css/layout.css
trunk/media/css/main.css
trunk/templates/languages/language_release_stats.html
trunk/templates/module_detail.html
trunk/templates/release_detail.html
trunk/templates/release_list.html
trunk/templates/teams/team_detail.html
Modified: trunk/media/css/layout.css
==============================================================================
--- trunk/media/css/layout.css (original)
+++ trunk/media/css/layout.css Mon Dec 29 22:11:04 2008
@@ -431,9 +431,7 @@
/* page content */
div#content {
- clear: both;
- padding: 1em;
- margin: 1em;
+ clear: both;
}
/*show a foot logo instead of dots in some lists*/
Modified: trunk/media/css/main.css
==============================================================================
--- trunk/media/css/main.css (original)
+++ trunk/media/css/main.css Mon Dec 29 22:11:04 2008
@@ -196,8 +196,20 @@
background: #FAE28E;
}
-ul.errorlist { list-style: none; margin-left:0; padding:0; }
-.errorlist li { font-size:12px !important; display:block; padding:4px 5px 4px 25px; margin:0 0 3px 0; border:1px solid red; color:white; background:red url(../img/admin/icon_alert.gif) 5px .3em no-repeat; }
+ul.errorlist {
+ list-style: none;
+ margin-left:0;
+ padding:0;
+}
+.errorlist li {
+ font-size:12px !important;
+ display:block;
+ padding:4px 5px 4px 25px;
+ margin:0 0 3px 0;
+ border:1px solid red;
+ color:white;
+ background:red url(../img/admin/icon_alert.gif) 5px .3em no-repeat;
+}
.footnote {
text-align: center;
Modified: trunk/templates/languages/language_release_stats.html
==============================================================================
--- trunk/templates/languages/language_release_stats.html (original)
+++ trunk/templates/languages/language_release_stats.html Mon Dec 29 22:11:04 2008
@@ -3,9 +3,9 @@
{% load i18n %}
<table name="stats-table">
-<tr style="background: inherit;">
- <td class="leftcell" style="font-size: 120%; background: inherit;" colspan="2">{{ modstats.totaltransperc }}% ({{ modstats.totaltrans }}/{{ modstats.totalfuzzy }}/{{ modstats.totaluntrans }})</td>
- <td style="width: 108px; text-align: center; background:inherit;"><div class="graph">
+<tr>
+ <td class="leftcell" colspan="2">{{ modstats.totaltransperc }}% ({{ modstats.totaltrans }}/{{ modstats.totalfuzzy }}/{{ modstats.totaluntrans }})</td>
+ <td style="width: 108px; text-align: center;"><div class="graph">
<div class="translated" style="width: {{ modstats.totaltransperc }}px;"></div>
<div class="fuzzy" style="left:{{ modstats.totaltransperc }}px; width:{{ modstats.totalfuzzyperc }}px;"></div>
{% with modstats.totaltransperc|add:modstats.totalfuzzyperc as upos %}
@@ -17,7 +17,7 @@
{% for catname,categ in modstats.categs.items %}
{% ifnotequal catname "default" %}
- <tr><td colspan="3" class="leftcell" style="background: inherit; font-size: 120%; font-weight: bold; padding-top:1em;">
+ <tr><td colspan="3" class="leftcell" style="font-weight: bold; padding-top:1em;">
{% with categ.cattransperc as percentage %}
{% with categ.catname as categname %}
{% blocktrans %}{{ categname }} ({{ percentage }}% translated){% endblocktrans %}
@@ -53,7 +53,7 @@
{% endfor %}
</td>
<td>{{ dom.1.tr_percentage }}% ({{ dom.1.translated }}/{{ dom.1.fuzzy }}/{{ dom.1.untranslated }})</td>
- <td style="width: 108px; text-align: center; background:inherit;"><div class="graph">
+ <td style="width: 108px; text-align: center;"><div class="graph">
<div class="translated" style="width: {{ dom.1.tr_percentage }}px;"></div>
<div class="fuzzy" style="left:{{ dom.1.tr_percentage }}px; width:{{ dom.1.fu_percentage }}px;"></div>
{% with dom.1.tr_percentage|add:dom.1.fu_percentage as upos %}
Modified: trunk/templates/module_detail.html
==============================================================================
--- trunk/templates/module_detail.html (original)
+++ trunk/templates/module_detail.html Mon Dec 29 22:11:04 2008
@@ -72,27 +72,30 @@
<p>{% trans "This branch is currently string-frozen." %}</p>
{% endif %}
- <table width="100%"><tr><td valign="top"><!-- split to two columns -->
- {% with branch.get_doc_stats as stats %}
- {% if stats|length %}
- {% if not stats|length_is:"1" %}
- <h3>{% trans "Documentation" %}</h3>
- {% endif %}
- {% include "stats_show.html" %}
- {% endif %}
- {% endwith %}
-
- </td><td valign="top"><!-- split to two columns -->
- {% with branch.get_ui_stats as stats %}
- {% if stats|length %}
- {% if not stats|length_is:"1" %}
- <h3>{% trans "Translation" %}</h3>
- {% endif %}
- {% include "stats_show.html" %}
- {% endif %}
- {% endwith %}
-
- </td></tr></table>
+ <table width="100%">
+ <tr>
+ <td valign="top"><!-- split to two columns -->
+ {% with branch.get_ui_stats as stats %}
+ {% if stats|length %}
+ {% if not stats|length_is:"1" %}
+ <h3>{% trans "Translation" %}</h3>
+ {% endif %}
+ {% include "stats_show.html" %}
+ {% endif %}
+ {% endwith %}
+ </td>
+ <td valign="top"><!-- split to two columns -->
+ {% with branch.get_doc_stats as stats %}
+ {% if stats|length %}
+ {% if not stats|length_is:"1" %}
+ <h3>{% trans "Documentation" %}</h3>
+ {% endif %}
+ {% include "stats_show.html" %}
+ {% endif %}
+ {% endwith %}
+ </td>
+ </tr>
+ </table>
{% endfor %}
{% endif %}
Modified: trunk/templates/release_detail.html
==============================================================================
--- trunk/templates/release_detail.html (original)
+++ trunk/templates/release_detail.html Mon Dec 29 22:11:04 2008
@@ -14,14 +14,34 @@
{% endifequal %}
<table class="stats">
-<thead><tr><th>{% trans "Release" %}</th><th>{% trans "Documentation" %}</th><th>{% trans "Graph" %}</th><th>{% trans "User Interface" %}</th><th>{% trans "Graph" %}</th></tr></thead>
+ <thead>
+ <tr>
+ <th>{% trans "Release" %}</th>
+ <th>{% trans "User Interface" %}</th>
+ <th>{% trans "Graph" %}</th>
+ <th>{% trans "Documentation" %}</th>
+ <th>{% trans "Graph" %}</th>
+ </tr>
+ </thead>
{% for lstats in release.get_global_stats %}
<tr>
- <td class="leftcell" style="font-size:120%;">
+ <td class="leftcell">
{% trans lstats.lang_name %}</a>
</td>
+ <td><a href="{% url language_release lstats.lang_locale release.name "ui" %}">
+ {{ lstats.ui_percent }}% ({{ lstats.ui_trans }}/{{ lstats.ui_fuzzy }}/{{ lstats.ui_untrans }})</a>
+ </td>
+ <td style="width: 108px; text-align: center;"><div class="graph">
+ <div class="translated" style="width: {{ lstats.ui_percent }}px;"></div>
+ <div class="fuzzy" style="{{ LANGUAGE_BIDI|yesno:"right,left" }}:{{ lstats.ui_percent }}px; width:{{ lstats.ui_percentfuzzy }}px;"></div>
+ {% with lstats.ui_percent|add:lstats.ui_percentfuzzy as upos %}
+ <div class="untranslated" style="{{ LANGUAGE_BIDI|yesno:"right,left" }}:{{ upos }}px; width: {{ lstats.ui_percentuntrans }}px;"></div>
+ {% endwith %}
+ </div>
+ </td>
+
{% ifnotequal lstats.doc_trans|add:lstats.doc_fuzzy "0" %}
<td><a href="{% url language_release lstats.lang_locale release.name "doc" %}">
{{ lstats.doc_percent }}% ({{ lstats.doc_trans }}/{{ lstats.doc_fuzzy }}/{{ lstats.doc_untrans }})</a>
@@ -30,7 +50,8 @@
<td>-</td>
{% endifnotequal %}
- <td style="width: 108px; text-align: center;"><div class="graph">
+ <td style="width: 108px; text-align: center;">
+ <div class="graph">
<div class="translated" style="width: {{ lstats.doc_percent }}px;"></div>
<div class="fuzzy" style="{{ LANGUAGE_BIDI|yesno:"right,left" }}:{{ lstats.doc_percent }}px; width:{{ lstats.doc_percentfuzzy }}px;"></div>
{% with lstats.doc_percent|add:lstats.doc_percentfuzzy as upos %}
@@ -39,17 +60,6 @@
</div>
</td>
- <td><a href="{% url language_release lstats.lang_locale release.name "ui" %}">
- {{ lstats.ui_percent }}% ({{ lstats.ui_trans }}/{{ lstats.ui_fuzzy }}/{{ lstats.ui_untrans }})</a>
- </td>
- <td style="width: 108px; text-align: center;"><div class="graph">
- <div class="translated" style="width: {{ lstats.ui_percent }}px;"></div>
- <div class="fuzzy" style="{{ LANGUAGE_BIDI|yesno:"right,left" }}:{{ lstats.ui_percent }}px; width:{{ lstats.ui_percentfuzzy }}px;"></div>
- {% with lstats.ui_percent|add:lstats.ui_percentfuzzy as upos %}
- <div class="untranslated" style="{{ LANGUAGE_BIDI|yesno:"right,left" }}:{{ upos }}px; width: {{ lstats.ui_percentuntrans }}px;"></div>
- {% endwith %}
- </div>
- </td>
</tr>
{% endfor %}
</table>
Modified: trunk/templates/release_list.html
==============================================================================
--- trunk/templates/release_list.html (original)
+++ trunk/templates/release_list.html Mon Dec 29 22:11:04 2008
@@ -16,7 +16,7 @@
</ul>
<ul class="foot">
{% endifchanged %}
- <li style="font-size: 120%;">
+ <li>
<a href="{% url stats.views.release rel.name %}">{% trans rel.description %}</a>
</li>
{% endfor %}
Modified: trunk/templates/teams/team_detail.html
==============================================================================
--- trunk/templates/teams/team_detail.html (original)
+++ trunk/templates/teams/team_detail.html Mon Dec 29 22:11:04 2008
@@ -23,7 +23,7 @@
<th>{% trans "User Interface" %}</th><th>{% trans "Graph" %}</th></tr></thead>
{% for stat in lang.get_release_stats %}
<tr>
- <td class="leftcell" style="font-size:120%;">
+ <td class="leftcell">
{{ stat.description }}</a>
</td>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]