[damned-lies] Random amount of HTML fixes to make validator.w3.org happy
- From: Gil Forcada Codinachs <gforcada src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Random amount of HTML fixes to make validator.w3.org happy
- Date: Sun, 30 Sep 2012 21:48:08 +0000 (UTC)
commit 73de2798ebf6107049e50e928a5446e46e839d93
Author: Gil Forcada <gforcada gnome org>
Date: Sun Sep 30 23:43:53 2012 +0200
Random amount of HTML fixes to make validator.w3.org happy
media/css/text.css | 9 ++++++
people/models.py | 6 ++-
templates/about.html | 8 ++--
templates/base.html | 2 +-
templates/languages/language_list.html | 2 +-
templates/registration/register.html | 2 +-
templates/teams/team_base.html | 49 +++++++++++++++----------------
7 files changed, 44 insertions(+), 34 deletions(-)
---
diff --git a/media/css/text.css b/media/css/text.css
index 667947e..4c47bd4 100644
--- a/media/css/text.css
+++ b/media/css/text.css
@@ -97,3 +97,12 @@ code {
font-size: 11px;
line-height: 1.5em;
}
+
+
+/* About page */
+/* ========================================================================== */
+table.about_qlinks th {
+ padding: 0.8em 0 0.4em;
+ color: #CE5C00;
+ font-size: 16px;
+}
diff --git a/people/models.py b/people/models.py
index a518d87..1e0add4 100644
--- a/people/models.py
+++ b/people/models.py
@@ -21,12 +21,14 @@
import datetime
from django.db import models
+from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User, UserManager
def obfuscate_email(email):
if email:
- return email.replace('@', ' at ').replace('.', ' dot ')
+ data = email.replace('@', ' at ').replace('.', ' dot ')
+ return data.replace(' ', ' ')
return ''
class Person(User):
@@ -107,7 +109,7 @@ class Person(User):
self.save()
def no_spam_email(self):
- return obfuscate_email(self.email)
+ return mark_safe(obfuscate_email(self.email))
def no_spam_bugzilla_account(self):
return obfuscate_email(self.bugzilla_account)
diff --git a/templates/about.html b/templates/about.html
index c3e2c1a..ef62fc7 100644
--- a/templates/about.html
+++ b/templates/about.html
@@ -24,16 +24,16 @@
<h2>{% trans "Quick links" %}</h2>
<table class="about_qlinks">
- <tr><th><h4>{% trans "Project wiki" %}</h4></th>
+ <tr><th>{% trans "Project wiki" %}</th>
<td><a href="https://live.gnome.org/DamnedLies">https://live.gnome.org/DamnedLies</a></td>
</tr>
- <tr><th><h4>{% trans "Bug tracking page" %}</h4></th>
+ <tr><th>{% trans "Bug tracking page" %}</th>
<td><a href="https://bugzilla.gnome.org/browse.cgi?product=damned-lies">https://bugzilla.gnome.org/browse.cgi?product=damned-lies</a></td>
</tr>
- <tr><th><h4>{% trans "Source code" %}</h4></th>
+ <tr><th>{% trans "Source code" %}</th>
<td><a href="http://git.gnome.org/browse/damned-lies/">http://git.gnome.org/browse/damned-lies</a></td>
</tr>
- <tr><th><h4>{% trans "Workflow" %}</h4></th>
+ <tr><th>{% trans "Workflow" %}</th>
<td><a href="http://l10n.gnome.org/help/vertimus_workflow/">http://l10n.gnome.org/help/vertimus_workflow</a></td>
</tr>
</table>
diff --git a/templates/base.html b/templates/base.html
index 9a8addf..c90554d 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -130,7 +130,7 @@
</div> <!-- end of div.links -->
<div id="footnotes">
- {% trans "Copyright © 2006-2012" %} <strong><a href="http://www.gnome.org/">{% trans "The GNOME Project" %}</strong></a>.
+ {% trans "Copyright © 2006-2012" %} <strong><a href="http://www.gnome.org/">{% trans "The GNOME Project" %}</a></strong>.
<br />
<a href="{% url 'about' %}">{% trans "About Damned Lies" %}</a>.
{% trans "Optimized for standards." %}
diff --git a/templates/languages/language_list.html b/templates/languages/language_list.html
index b6d6206..3a92300 100644
--- a/templates/languages/language_list.html
+++ b/templates/languages/language_list.html
@@ -18,7 +18,7 @@
<li>
<a href="{{ lang.get_team_url }}">{{ lang.get_name }}</a>
<a href="/rss/languages/{{ lang.locale }}">
- <img width="10" height="10" border="0" src="/media/img/feed-icon-10x10.png" alt="{% blocktrans %}RSS feed for {{ lang.get_name }}{% endblocktrans %}"/>
+ <img width="10" height="10" src="/media/img/feed-icon-10x10.png" alt="{% blocktrans %}RSS feed for {{ lang.get_name }}{% endblocktrans %}"/>
</a>
</li>
{% endfor %}
diff --git a/templates/registration/register.html b/templates/registration/register.html
index 82c4d56..ebff694 100644
--- a/templates/registration/register.html
+++ b/templates/registration/register.html
@@ -13,7 +13,7 @@
<p>{% trans "You can register here for an account on this site. This is only useful if you plan to contribute to GNOME translations." %}</p>
<p>{% trans "After registration and connection, you will be able to join an existing team from your profile page." %}</p>
-<form action="{{ app_path }}" method="post" id="login-form" class="login">
+<form action="/register/" method="post" id="login-form" class="login">
<div class="form-row">
{{ form.username.errors }}
<label for="id_username">{{ form.username.label }}</label> {{ form.username }} <span class="help">{{ form.username.help_text }}</span>
diff --git a/templates/teams/team_base.html b/templates/teams/team_base.html
index d146cb6..248af8f 100644
--- a/templates/teams/team_base.html
+++ b/templates/teams/team_base.html
@@ -15,31 +15,31 @@
</h2>
<dl>
- {% if team.webpage_url %}
- <dt>{% blocktrans %}{{ lang }} Translation Team Page:{% endblocktrans %}</dt>
- <dd><a href="{{ team.webpage_url }}">{{ team.webpage_url }}</a></dd>
- {% endif %}
- </dl>
+ {% if team.webpage_url %}
+ <dt>{% blocktrans %}{{ lang }} Translation Team Page:{% endblocktrans %}</dt>
+ <dd><a href="{{ team.webpage_url }}">{{ team.webpage_url }}</a></dd>
+ {% endif %}
- <dt>{% trans "Bugzilla:" %}</dt>
- <dd>
- <ul>
- <li><a href="{{ language.bugs_url_enter|safe }}">{% trans "Report Bug in Translation" %}</a></li>
- <li><a href="{{ language.bugs_url_show|safe }}">{% trans "Show Existing Bugs" %}</a></li>
- </ul>
- </dd>
-
- {% if team.mailing_list %}
- <dt>{% trans "Mailing List:" %}</dt>
- <dd>
- <ul>
- <li><a href="mailto:{{ team.mailing_list }}">{% trans "Send e-mail to the list" %}</a></li>
- {% if team.mailing_list_subscribe %}
- <li><a href="{{ team.mailing_list_subscribe }}">{% trans "Subscribe" %}</a></li>
- {% endif %}
- </ul>
- </dd>
- {% endif %}
+ <dt>{% trans "Bugzilla:" %}</dt>
+ <dd>
+ <ul>
+ <li><a href="{{ language.bugs_url_enter|safe }}">{% trans "Report Bug in Translation" %}</a></li>
+ <li><a href="{{ language.bugs_url_show|safe }}">{% trans "Show Existing Bugs" %}</a></li>
+ </ul>
+ </dd>
+
+ {% if team.mailing_list %}
+ <dt>{% trans "Mailing List:" %}</dt>
+ <dd>
+ <ul>
+ <li><a href="mailto:{{ team.mailing_list }}">{% trans "Send e-mail to the list" %}</a></li>
+ {% if team.mailing_list_subscribe %}
+ <li><a href="{{ team.mailing_list_subscribe }}">{% trans "Subscribe" %}</a></li>
+ {% endif %}
+ </ul>
+ </dd>
+ {% endif %}
+ </dl>
</div>
@@ -57,4 +57,3 @@
</div>
{% endwith %}
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]