{% extends "projects/project_menu.html" %} {% load i18n %} {% load cache %} {% load statistics_resources %} {% load permissions %} {% load truncate %} {% load upload_manager_tags %} {% block extra_head %} {% get_permission "project_perm.maintain" for request.user and resource.project as "is_maintainer" %} {% endblock %} {% block breadcrumb %} {{ block.super }} » {{ project.name|truncate_chars_middle:"40" }} » {{ resource.name|truncate_chars_middle:"30" }} {% endblock %} {% block title %} {{ block.super }} | {% trans "Projects" %} | {{project}} {{resource}} {% endblock %} {% block body_class %}project_list{% endblock %} {% block header_menu %}{% endblock %} {% block project_header %} {{block.super}}

 / 

{{ resource.name }}

{% endblock%} {% block content_main %} {% get_permission "project_perm.maintain" for request.user and resource.project as "is_maintainer" %}
{% comment %} {% endcomment %}

{% blocktrans %}Details{% endblocktrans %}

{% if perms.projects.edit_resource or is_maintainer or request.user.is_superuser %} {% endif %}
{% cache 604800 resource_details resource.project.slug resource.slug LANGUAGE_CODE %}
{% trans "Total Strings" %}
{{ resource.total_entities }} ({{ resource.wordcount }} {% trans "words" %})
{% trans "Accepting " %}
{% if resource.accept_translations %} {% else %} {% endif %}
{% if resource.priority %} {% with resource.priority.level as priority_level %} {% with resource.priority.display_level as display_level %}
{% trans "Priority Level" %}
{% if is_maintainer %} {% else %} {% endif %}
{% endwith %} {% endwith %} {% endif %} {% with resource.releases.all as releases %} {% if releases %}
{% blocktrans count releases|length as counter %}Release:{% plural %}Releases:{% endblocktrans %}
{% endif %} {% endwith %}
{% get_permission "project_perm.submit_translations" for request.user and resource.project,1 as "can_submit_translation" %} {% get_permission "project_perm.maintain" for request.user and resource.project as "is_maintainer" %}

{% blocktrans with resource.available_languages|length as num_of_langs %}Available languages ({{ num_of_langs }}){% endblocktrans %}

{% if can_submit_translation and resource.accept_translations or is_maintainer %} {% endif %}
{% if can_submit_translation and resource.accept_translations or is_maintainer %}
{% comment %} I kept this in order to remember to fix the languages in the templatetags. The change should respect the below permissions!!! {% endcomment %} {% upload_resource_translation_button request resource '' 'button-global' 'True' %}
{% endif %} {% for stat in statslist %} {% ifequal forloop.counter 2 %} {% endifequal %} {% cache 604800 resource_details_lang resource.project.slug resource.slug stat.language.code LANGUAGE_CODE %} {% endcache %} {% if forloop.counter == 1 and forloop.last %} {% endif %} {% endfor %}
{% trans "Language" %} {% trans "Completion" %} {% trans "Last Updated" %}
{{ stat.language.name }} ({{ stat.language.code }}) {% ifequal resource.source_language stat.language %} {% trans "(source language)" %} {% endifequal %} {% if stat.lock.valid %} {% endif %} {% with 200 as barwidth %} {% stats_bar_simple stat barwidth %} {% endwith %} {% with stat.last_update as last_update %} {% with stat.last_committer as last_committer %} {% if last_update %} {{ last_update|date:"M d, h:ia" }} {% if last_committer %} by {{ last_committer }} {% endif %} {% else %} {% trans "no translations yet" %} {% endif %} {% endwith %} {% endwith %}
{% endcache %}

{% trans 'History' %}

{% load tx_action_log %} {% get_log 5 as action_log for_object resource %} {% if not action_log %}

{% trans 'No actions recorded yet :)' %}

{% else %} {% endif %} {% endblock %} {% block content_footer %} {% endblock %}