Skip to content

Instantly share code, notes, and snippets.

@sesam
Created April 30, 2010 12:06
Show Gist options
  • Save sesam/385101 to your computer and use it in GitHub Desktop.
Save sesam/385101 to your computer and use it in GitHub Desktop.
2010-04-30.patch
diff --git a/web/data/templates/overview.html b/web/data/templates/overview.html
index 272d1df..2e8111b 100644
--- a/web/data/templates/overview.html
+++ b/web/data/templates/overview.html
@@ -21,7 +21,7 @@
{% for c in top_constituencies_by_amount %}
<tr>
<td><a href="{% url constituency c.slug %}">{{ c.name }}</a></td>
- <td>&euro;{{ c.total|floatformat:2|intcomma }}</td>
+ <td class="eur">&euro;{{ c.total|floatformat:2|intcomma }}</td>
</tr>
{% endfor %}
</table>
@@ -57,7 +57,7 @@
{% for c in top_recipients %}
<tr>
<td>{{ c.name }}</td>
- <td>&euro;{{ c.amount|floatformat:2|intcomma }}</td>
+ <td class="eur">&euro;{{ c.amount|floatformat:2|intcomma }}</td>
</tr>
{% endfor %}
</table>
@@ -74,7 +74,7 @@
{% for c in top_constituencies_by_avg %}
<tr>
<td><a href="{% url constituency c.slug %}">{{ c.name }}</a></td>
- <td>&euro;{{ c.average|floatformat:2|intcomma }}</td>
+ <td class="eur">&euro;{{ c.average|floatformat:2|intcomma }}</td>
</tr>
{% endfor %}
</table>
diff --git a/web/media/css/layout.css b/web/media/css/layout.css
index 949fc47..00450b6 100644
--- a/web/media/css/layout.css
+++ b/web/media/css/layout.css
@@ -183,7 +183,7 @@ color:#FFFFFF;
height:20px;
padding:5px;
border:1px solid #333;
- width:70%;
+ width:10em;
float:left;
}
@@ -397,4 +397,8 @@ padding:0.3em 1em;
.comment .message {
float:left;
+}
+
+.eur {
+ text-align: right;
}
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment