weblate/html/project.html

56 lines
1.4 KiB
HTML
Vendored

{% extends "base.html" %}
{% load i18n %}
{% load url from future %}
{% block breadcums %}
<li><a href="{{ object.get_absolute_url }}">{{ object }}</a></li>
{% endblock %}
{% block content %}
<h2>{% trans "Project Information" %}</h2>
{% include "project_info.html" %}
<h2>{% trans "Subprojects" %}</h2>
<table class="sort">
<thead>
<tr>
<th>{% trans "Subproject" %}</th>
<th colspan="2">{% trans "Translated" %}</th>
</tr>
<tbody>
{% for prj in object.subproject_set.all %}
{% with prj.get_translated_percent as percent %}
<tr>
<th><a href="{{ prj.get_absolute_url }}">{{ prj.name }}</a></th>
<td class="progress"><div class="progress" id="{{ percent|floatformat:0 }}"></div></td>
<td class="percent">{{ percent }}%</td>
</tr>
{% endwith %}
{% endfor %}
</tbody>
</table>
<h2>{% trans "Tools" %}</h2>
<div class="tabs" id="project-tabs">
<ul>
<li><a href="#dicts">{% trans "Dictionaries" %}</a></li>
{% if perms.trans.commit_translation or perms.trans.update_translation %}
<li><a href="{% url 'trans.views.git_status_project' project=object.slug %}">{% trans "Git maintenance" %}</a></li>
{% endif %}
</ul>
<div id="dicts">
<ul>
{% for dict in dicts %}
<li><a href="{% url 'trans.views.show_dictionary' project=object.slug lang=dict.code %}">{{ dict }}</a></li>
{% endfor %}
<li><a href="{% url 'trans.views.show_dictionaries' project=object.slug %}">{% trans "Manage all dictionaries" %}</a></li>
</ul>
</div>
</div>
{% endblock %}