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