index.tpl 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {% extends app.template_style ~ "/layout/layout_1_col.tpl" %}
  2. {% block content %}
  3. <div id="settings">
  4. <div class="row">
  5. {% for role in app.admin_toolbar_roles %}
  6. {% if is_granted('ROLE_ADMIN') %}
  7. {# Skip session admin #}
  8. {% if (role != 'session_manager') %}
  9. {% include app.template_style ~ "/admin/" ~ role ~ "/role_index.tpl" %}
  10. {% endif %}
  11. {% else %}
  12. {% include app.template_style ~ "/admin/" ~ role ~ "/role_index.tpl" %}
  13. {% endif %}
  14. {% endfor %}
  15. </div>
  16. </div>
  17. {% if is_granted('ROLE_ADMIN') %}
  18. <script>
  19. $(function() {
  20. //$("#settings").tabs();
  21. $.ajax({
  22. url:'{{ web_admin_ajax_url }}?a=version',
  23. success:function(version){
  24. $(".admin-block-version").html(version);
  25. }
  26. });
  27. });
  28. </script>
  29. <div class="row">
  30. <div class="span12">
  31. <div class="well_border">
  32. <h3>{{ 'VersionCheck' | trans }} </h3>
  33. <div class="admin-block-version"></div>
  34. </div>
  35. </div>
  36. </div>
  37. {% endif %}
  38. {% endblock %}