index.twig 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <h2>
  2. {{ get_image('s_vars') }}
  3. {% trans 'Server variables and settings' %}
  4. {{ show_mysql_docu('server_system_variables') }}
  5. </h2>
  6. {% if variables is not empty %}
  7. <a href="server_variables.php{{ get_common() }}" class="ajax saveLink hide">
  8. {{ get_icon('b_save', 'Save'|trans) }}
  9. </a>
  10. <a href="#" class="cancelLink hide">
  11. {{ get_icon('b_close', 'Cancel'|trans) }}
  12. </a>
  13. {{ get_image('b_help', 'Documentation'|trans, {
  14. 'class': 'hide',
  15. 'id': 'docImage'
  16. }) }}
  17. {% include 'filter.twig' with {
  18. 'filter_value': filter_value
  19. } only %}
  20. <div class="responsivetable">
  21. <table id="serverVariables" class="width100 data filteredData noclick">
  22. <thead>
  23. <tr class="var-header var-row">
  24. <td class="var-action">{% trans 'Action' %}</td>
  25. <td class="var-name">{% trans 'Variable' %}</td>
  26. <td class="var-value">{% trans 'Value' %}</td>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. {% for variable in variables %}
  31. <tr class="var-row{{ variable.has_session_value ? ' diffSession' }}" data-filter-row="{{ variable.name|upper }}">
  32. <td class="var-action">
  33. {% if variable.is_editable %}
  34. <a href="#" data-variable="{{ variable.name }}" class="editLink">{{ get_icon('b_edit', 'Edit'|trans) }}</a>
  35. {% else %}
  36. <span title="{% trans 'This is a read-only variable and can not be edited' %}" class="read_only_var">
  37. {{ get_icon('bd_edit', 'Edit'|trans) }}
  38. </span>
  39. {% endif %}
  40. </td>
  41. <td class="var-name">
  42. {% if variable.doc_link != null %}
  43. <span title="{{ variable.name|replace({'_': ' '}) }}">
  44. {{ variable.doc_link|raw }}
  45. </span>
  46. {% else %}
  47. {{ variable.name|replace({'_': ' '}) }}
  48. {% endif %}
  49. </td>
  50. <td class="var-value value{{ is_superuser ? ' editable' }}">
  51. {% if variable.is_escaped %}
  52. {{ variable.value|raw }}
  53. {% else %}
  54. {{ variable.value|e|replace({',': ',&#8203;'})|raw }}
  55. {% endif %}
  56. </td>
  57. </tr>
  58. {% if variable.has_session_value %}
  59. <tr class="var-row diffSession" data-filter-row="{{ variable.name|upper }}">
  60. <td class="var-action"></td>
  61. <td class="var-name session">({% trans 'Session value' %})</td>
  62. <td class="var-value value">{{ variable.session_value }}</td>
  63. </tr>
  64. {% endif %}
  65. {% endfor %}
  66. </tbody>
  67. </table>
  68. </div>
  69. {% else %}
  70. {{ 'Not enough privilege to view server variables and settings. %s'|trans|format(
  71. link_to_var_documentation('show_compatibility_56', is_mariadb)
  72. )|error }}
  73. {% endif %}