[damned-lies] Add index numbers in release sets page (Fixes bug #567677)
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Add index numbers in release sets page (Fixes bug #567677)
- Date: Sat, 20 Aug 2011 18:27:07 +0000 (UTC)
commit 8f393eadd6b853f099b29b684f934e749131924e
Author: Claude Paroz <claude 2xlibre net>
Date: Sat Aug 20 20:24:56 2011 +0200
Add index numbers in release sets page (Fixes bug #567677)
Based on a patch from Gil Forcada, thanks!
media/css/main.css | 8 ++++++++
templates/release_detail.html | 11 +++++++----
2 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/media/css/main.css b/media/css/main.css
index 49fc762..4b242ec 100644
--- a/media/css/main.css
+++ b/media/css/main.css
@@ -35,6 +35,14 @@ table.stats {
color: black;
}
+.stats td.counter {
+ background-color: transparent;
+ border-bottom: 1px solid #f0f0f0;
+ color: gray;
+ font-size: 80%;
+ font-style: italic;
+}
+
.stats td.leftcell {
text-align: left;
}
diff --git a/templates/release_detail.html b/templates/release_detail.html
index 8e1f6e7..5d87183 100644
--- a/templates/release_detail.html
+++ b/templates/release_detail.html
@@ -16,6 +16,7 @@
<table class="stats">
<thead>
<tr>
+ <th style="background-color:transparent;"></th>
<th>{% trans "Language" %}</th>
<th>{% trans "User Interface" %}</th>
<th>{% trans "Graph" %}</th>
@@ -27,6 +28,7 @@
{% for lstats in release.get_global_stats %}
<tr>
+ <td class="counter">{{ forloop.counter }}</td>
<td class="leftcell">
<a href="{% url team_slug lstats.lang_locale %}">
{% if user_language.locale == lstats.lang_locale %}
@@ -72,10 +74,11 @@
</tr>
{% endfor %}
-<tr><td colspan="5"><hr></td></tr>
-<tr><td class="leftcell"><i><small>{% trans "Original strings" %}</small></i></td>
- <td><i><small><a href="{% url language_release "C" release.name "ui" %}">{% trans "User Interface" %}</a></small></i></td><td></td>
- <td><i><small><a href="{% url language_release "C" release.name "doc" %}">{% trans "Documentation" %}</a></small></i></td><td></td>
+<tr><td class="counter"><td colspan="6"><hr></td></tr>
+<tr><td class="counter"></td>
+ <td class="leftcell"><i><small>{% trans "Original strings" %}</small></i></td>
+ <td colspan="3"><i><small><a href="{% url language_release "C" release.name "ui" %}">{% trans "User Interface" %}</a></small></i></td>
+ <td colspan="2"><i><small><a href="{% url language_release "C" release.name "doc" %}">{% trans "Documentation" %}</a></small></i></td>
</tr>
</table>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]