KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

modules.twig 4.6KB

9 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {% extends "layout.twig" %}
  2. {% block title %}${ "Modules" | translate }{% endblock %}
  3. {% block content %}
  4. <div class="enable module left">
  5. <h2>${ "Enabled" | translate }</h2>
  6. <ul class="extend">
  7. {% for safename, module in enabled_modules | items %}
  8. <li class="${ module.classes | join(" ") }" id="module_$safename">
  9. <a class="$safename info_link" href="javascript:void(0)"><img src="$theme_url/images/icons/info.png" class="info right" /></a>
  10. {% if module.help %}
  11. <a href="{% admin "help&id="~module.help %}" class="help emblem"><img src="$theme_url/images/icons/help.png" alt="help" /></a>
  12. {% endif %}
  13. ${ "<a href=\"%s\">%s</a> v%s <span class=\"sub\">by %s</span>" | translate | format(module.url, module.name | translate(safename), module.version, module.author.link) }
  14. <div class="expand">
  15. <div class="description{% if module.dependencies_needed %} expanded{% endif %}">
  16. $module.description {# translation is done in the controller #}
  17. <p class="dependencies_message"{% if not module.dependencies_needed %} style="display: none"{% endif %}>
  18. ${ "This Module requires the following Modules to be enabled:" | translate }
  19. </p>
  20. <ul class="dependencies_list"{% if not module.dependencies_needed %} style="display: none"{% endif %}>
  21. {% for dependency in module.dependencies_needed %}
  22. <li class="$dependency">$dependency</li>
  23. {% endfor %}
  24. </ul>
  25. </div>
  26. {% if not module.dependencies_needed %}
  27. <noscript><a class="enable_button" href="{% admin "disable&module="~safename %}">${ "Disable" | translate }</a></noscript>
  28. {% endif %}
  29. </div>
  30. </li>
  31. {% endfor %}
  32. </ul>
  33. </div>
  34. <div class="disable module right">
  35. <h2>${ "Disabled" | translate }</h2>
  36. <ul class="extend">
  37. {% for safename, module in disabled_modules | items %}
  38. <li class="${ module.classes | join(" ") }" id="module_$safename">
  39. <a class="$safename info_link" href="javascript:void(0)"><img src="$theme_url/images/icons/info.png" class="info right" /></a>
  40. {% if module.help %}
  41. <a href="{% admin "help&id="~module.help %}" class="help emblem"><img src="$theme_url/images/icons/help.png" alt="help" /></a>
  42. {% endif %}
  43. ${ "<a href=\"%s\">%s</a> v%s <span class=\"sub\">by %s</span>" | translate | format(module.url, module.name | translate(safename), module.version, module.author.link) }
  44. <div class="expand">
  45. <div class="description{% if module.dependencies_needed %} expanded{% endif %}">
  46. $module.description {# translation is done in the controller #}
  47. <p class="dependencies_message"{% if not module.dependencies_needed %} style="display: none"{% endif %}>
  48. ${ "This Module requires the following Modules to be enabled:" | translate }
  49. </p>
  50. <ul class="dependencies_list"{% if not module.dependencies_needed %} style="display: none"{% endif %}>
  51. {% for dependency in module.dependencies_needed %}
  52. <li class="$dependency">$dependency</li>
  53. {% endfor %}
  54. </ul>
  55. </div>
  56. {% if not module.dependencies_needed %}
  57. <noscript><a class="disable_button" href="{% admin "enable&module="~safename %}">${ "Enable" | translate }</a></noscript>
  58. {% endif %}
  59. </div>
  60. </li>
  61. {% endfor %}
  62. </ul>
  63. </div>
  64. <div class="clear"></div>
  65. <br />
  66. <a class="button right" href="http://chyrp.net/extend/type/module">${ "Get More Modules &rsaquo;" | translate }</a>
  67. {% endblock %}