index.twig 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <h2>
  2. {{ get_image('s_replication') }}
  3. {% trans 'Replication' %}
  4. </h2>
  5. {% if is_super_user %}
  6. <div id="replication">
  7. {{ error_messages|raw }}
  8. {% if is_master %}
  9. {{ master_replication_html|raw }}
  10. {% elseif master_configure is null and clear_screen is null %}
  11. <fieldset>
  12. <legend>{% trans 'Master replication' %}</legend>
  13. {% apply format('<a href="server_replication.php" data-post="' ~ get_common(url_params|merge({'mr_configure': true}), '') ~ '">', '</a>')|raw %}
  14. {% trans %}
  15. This server is not configured as master in a replication process. Would you like to %sconfigure%s it?
  16. {% endtrans %}
  17. {% endapply %}
  18. </fieldset>
  19. {% endif %}
  20. {% if master_configure is not null %}
  21. {{ master_configuration_html|raw }}
  22. {% else %}
  23. {% if clear_screen is null %}
  24. {{ slave_configuration_html|raw }}
  25. {% endif %}
  26. {% if slave_configure is not null %}
  27. {{ change_master_html|raw }}
  28. {% endif %}
  29. {% endif %}
  30. </div>
  31. {% else %}
  32. {{ 'No privileges'|trans|error }}
  33. {% endif %}