Commit 73de2798 authored by Gil Forcada's avatar Gil Forcada

Random amount of HTML fixes to make validator.w3.org happy

parent e1901782
......@@ -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;
}
......@@ -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)
......
......@@ -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>
......
......@@ -130,7 +130,7 @@
</div> <!-- end of div.links -->
<div id="footnotes">
{% trans "Copyright &copy; 2006-2012" %} <strong><a href="http://www.gnome.org/">{% trans "The GNOME Project" %}</strong></a>.
{% trans "Copyright &copy; 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." %}
......
......@@ -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 %}
......
......@@ -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>
......
......@@ -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 %}
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