/
tp_overview.html
87 lines (78 loc) · 2.79 KB
/
tp_overview.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{% extends "tp_base_extended.html" %}
{% load i18n baseurl cleanhtml %}
{% get_current_language as LANGUAGE_CODE %}
{% get_current_language_bidi as LANGUAGE_BIDI %}
{% block body.id %}fileindex{% endblock body.id %}
{% block bodyclass %}tpoverview{% endblock bodyclass %}
{% block precontent %}
{{ block.super }}
{% if description %}
{% include "description.html" %}
{% endif %}
{% if not description and project.description or not description and language.description %}
<a id="hide_description" title="{% trans 'Hide' %}">
<span>{% trans 'Hide' %}</span></a>
<a id="show_description" title="{% trans 'Show' %}" style="display: none;">
<span>{% trans 'Show description' %}</span></a>
<div class="intro">
{% if project.description %}
<h3 class="intro-helper">{% trans 'Project Description' %}</h3>
{{ project.description|safe|linebreaks|clean }}
{% endif %}
{% if language.description %}
<h3 class="intro-helper">{% trans 'Language Description' %}</h3>
{{ language.description|safe|linebreaks|clean }}
{% endif %}
</div>
{% endif %}
{% endblock %}
{% block content %}
{% if children %}
<!--! The statistics view -->
<div class="module-primary" lang="{{ LANGUAGE_CODE }}">
<div class="bd">
<table class="sortable stats" id="stats" cellpadding="5"
cellspacing="0" width="100%" lang="{{ LANGUAGE_CODE }}" dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}">
<thead>
<tr>
<th class="stats">{{ stats_headings.name }}</th>
<th class="stats">{{ stats_headings.progress }}</th>
<th class="stats sorttable_numeric">{{ stats_headings.summary }}</th>
<th class="stats stats-number">{{ stats_headings.totalwords }}</th>
</tr>
</thead>
<tbody class="stats">
{% for item in children %}
<tr class="item {% cycle 'even' 'odd' %}">
{% include "language/item_summary.html" %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
{% endblock content %}
{% block postcontent %}
{% include "translation_project/fileop_forms.html" %}
{% include "top_contributers_table.html" %}
{% endblock postcontent %}
{% block scripts_extra %}
{{ block.super }}
{% if upload %}
<script type="text/javascript">
$(document).ready(function() {
$("select#id_upload_to_dir").parent().hide();
$("input#id_file").change(function() {
if (/\.zip$/.test($(this).val())) {
$("select#id_upload_to").parent().hide();
$("select#id_upload_to_dir").parent().show();
} else {
$("select#id_upload_to_dir").parent().hide();
$("select#id_upload_to").parent().show();
}
});
});
</script>
{% endif %}
{% endblock %}