{% load i18n %} {% load txcommontags %} {% load permissions %} {% load statistics_resources %} {% load upload_manager_tags %}

{% blocktrans %}Project Resources{% endblocktrans %}

{% for stat in statslist.resource_stats %} {% if forloop.first %} {% endif %} {% if forloop.last %}
Resource Name Last Updated Importance
{{ stat.object.name }} {% with stat.last_committer as last_committer %} {% endwith %} {% with stat.last_update as last_update %} {% if last_update %} {{ last_update|timesince }} {% else %} {% trans "no translations yet" %} {% endif %} {% endwith %} {% with stat.object.priority.level as priority_level %} {% with stat.object.priority.display_level as display_level %} {% if is_maintainer %} {% else %} {% ifnotequal priority_level "0" %} {% endifnotequal %} {% endif %} {% endwith %} {% endwith %}
{% endif %} {% empty %}

{% trans "No resources are registered for this project yet." %}

{% endfor %} {% comment %} {% get_permission "project_perm.submit_file" for request.user and project,1 as "can_submit_translation" %} {% if can_submit_translation or request.user.is_superuser %}
GO

{% trans "Translate All" %}

{% endif %} {% endcomment %}

{% blocktrans %}A Resource is mapped to master file and it's translated versions. For example Resource could be bound to nano.pot and de.po, it.po, fi.po, etc.{% endblocktrans %}

{% get_permission "project_perm.maintain" for request.user and project as "is_maintainer" %} {% if is_maintainer %} {% upload_create_resource_form request project %} {% endif %}