Commit 99a94720 authored by Michal Čihař's avatar Michal Čihař

Nicer formatting of fields in project info

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent c23ecbe7
{% load i18n %}
<tr>
<th>{% trans "Project website:" %}</th>
<th>{% trans "Project website" %}</th>
<td><a href="{{ object.web }}">{{ object.web }}</a></td>
</tr>
{% if object.mail %}
<tr>
<th>{% trans "Mailing list for translators:" %}</th>
<th>{% trans "Mailing list for translators" %}</th>
<td><a href="mailto:{{ object.mail }}">{{ object.mail }}</a></td>
</tr>
{% endif %}
{% if object.instructions %}
<tr>
<th>{% trans "Instructions for translators:" %}</th>
<th>{% trans "Instructions for translators" %}</th>
<td><a href="{{ object.instructions }}">{{ object.instructions }}</a></td>
</tr>
{% endif %}
{% if object.license %}
<tr>
<th>{% trans "Translation license:" %}</th>
<th>{% trans "Translation license" %}</th>
<td>
{% if object.license_url %}
<a href="{{ object.license_url }}">{{ object.license }}</a>
......
......@@ -6,7 +6,7 @@
{% if perms.trans.can_see_git_repository %}
<tr>
<th>{% trans "Git repository:" %}</th>
<th>{% trans "Git repository" %}</th>
<td>
<code class="git-repo ui-corner-all">{{ object.get_repo_url }}</code> ({{ object.get_repo_branch }}
@
......@@ -20,7 +20,7 @@
{% with object.get_export_url as export_url %}
{% if export_url %}
<tr>
<th>{% trans "Git repository with Weblate translations:" %}</th>
<th>{% trans "Git repository with Weblate translations" %}</th>
<td><code class="git-repo ui-corner-all">{{ export_url }}</code></td>
</tr>
{% endif %}
......
......@@ -7,12 +7,12 @@
{% with object.get_translated_percent as percent and object.get_fuzzy_percent as fuzzy and object.get_words_percent as word_percent %}
<tr>
<th>{% blocktrans with object.total as count %}Strings ({{ count }}):{% endblocktrans %}</th>
<th>{% trans "Strings" %}<span class="badge pull-right">{{ object.total }}</span></th>
<td><div class="progress" data-value="{{ percent|floatformat:0 }}" data-fuzzy="{{ fuzzy|floatformat:0 }}" data-checks="{{ check_percent|floatformat:0 }}"></div> {{ percent }}%</td>
</tr>
<tr>
<th>{% blocktrans with object.total_words as count %}Words ({{ count }}):{% endblocktrans %}</th>
<th>{% trans "Words" %}<span class="badge pull-right">{{ object.total_words }}</span></th>
<td><div class="progress" data-value="{{ word_percent|floatformat:0 }}"></div> {{ word_percent }}%</td>
</tr>
......
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