xmpp.chapril.org-conversejs/html/translation.html

43 lines
1.2 KiB
HTML
Raw Normal View History

2012-02-27 11:34:32 +01:00
{% extends "base.html" %}
2012-03-04 09:46:40 +01:00
{% load url from future %}
2012-02-27 11:58:55 +01:00
{% load i18n %}
2012-02-27 11:34:32 +01:00
2012-03-01 10:22:20 +01:00
{% block breadcums %}
<li><a href="{{ object.subproject.project.get_absolute_url }}">{{ object.subproject.project }}</a></li>
<li><a href="{{ object.subproject.get_absolute_url }}">{{ object.subproject.name }}</a></li>
2012-03-02 15:29:58 +01:00
<li><a href="{{ object.get_absolute_url }}">{% trans object.language.name %}</a></li>
2012-03-01 10:22:20 +01:00
{% endblock %}
2012-02-27 11:34:32 +01:00
{% block content %}
2012-02-28 13:17:56 +01:00
{% include "translation_info.html" %}
2012-02-27 11:34:32 +01:00
2012-02-28 14:50:20 +01:00
{% with object.get_checks as checks%}
{% if checks %}
<h2>{% trans "Strings to check" %}</h2>
<ul>
{% for c in checks %}
2012-02-28 14:55:34 +01:00
<li><a href="{{ object.get_translate_url }}?type={{ c.0 }}">{{ c.1 }}</a></li>
2012-02-28 14:50:20 +01:00
{% endfor %}
</ul>
{% endif %}
{% endwith %}
2012-03-01 17:11:19 +01:00
<h2>{% trans "Download and upload" %}</h2>
<a href="{{ object.get_download_url }}">{% trans "Download" %}</a>
2012-03-04 09:37:22 +01:00
{% if user.is_authenticated %}
2012-03-05 10:02:35 +01:00
<form action="{% url 'trans.views.upload_translation' project=object.subproject.project.slug subproject=object.subproject.slug lang=object.language.code %}" method="post" enctype="multipart/form-data">
2012-03-04 09:46:16 +01:00
{% csrf_token %}
2012-03-04 09:37:22 +01:00
<table>
{{ form.as_table }}
<tr><td></td><td><input type="submit" value="{% trans "Upload" %}" /></td></tr>
</table>
</form>
{% endif %}
2012-02-27 11:34:32 +01:00
{% endblock %}