PageRenderTime 18ms CodeModel.GetById 10ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/mod_translation/templates/admin_translation_status.tpl

https://code.google.com/p/zotonic/
Smarty Template | 51 lines | 44 code | 7 blank | 0 comment | 8 complexity | 39f336b8556dd9790ce662dd4d905569 MD5 | raw file
 1{% extends "admin_base.tpl" %}
 2
 3{% block title %} {_ Translation status _} {% endblock %}
 4
 5{% block content %}
 6<style type="text/css">
 7.perc span {
 8    padding-left: 5px;
 9}
10.perc-0 { background-color: #ff0000; color: white; }
11.perc-20 { background-color: #cc3300; color: white; }
12.perc-40 { background-color: #996600; color: white; }
13.perc-60 { background-color: #669900; color: white; }
14.perc-80 { background-color: #33cc00; color: white; }
15.perc-100 { background-color: #00ff00; color: white;}
16</style>
17<div id="content" class="zp-85">
18	<div class="block clearfix">
19
20		<h2>{_ Translation status per module _}</h2>
21
22        <p>{_ To view the up-to-date version of this module, please run "generate .pot files" first from the translation overview. _}</p>
23	
24		<h3 class="above-list ">{_ Active modules _}</h3>
25		<ul class="short-list">
26			<li class="headers clearfix">
27				<span class="zp-30">{_ Title _}</span>
28                {% for code, lang in m.config.i18n.language_list.list %}
29                {% if code != "en" %}
30                <span class="zp-10">{{ lang.language }}</span>
31                {% endif %}
32                {% endfor %}
33            </li>
34
35		{% for sort, prio, module, props in modules %}
36			<li id="{{ #li.module }}">
37				<a href="#" class="clearfix">
38					<span class="zp-30">{% include "_icon_status.tpl" status=status[module] status_id=#status.module %} {{ props.mod_title|default:props.title }}</span>
39                    {% for code, lang in m.config.i18n.language_list.list %}
40                    {% if code != "en" %}
41                        {% admin_translation_statistics module=module lang=code %}
42                    {% endif %}
43                    {% endfor %}
44                </a>
45            </li>
46            {% endfor %}
47        </ul>
48	</div>
49</div>
50
51{% endblock %}