aboutsummaryrefslogtreecommitdiff
path: root/srcs/phpmyadmin/templates/server/replication/master_replication.twig
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-09 10:55:03 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-09 13:09:38 +0100
commit04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa (patch)
tree5c691241355c943a3c68ddb06b8cf8c60aa11319 /srcs/phpmyadmin/templates/server/replication/master_replication.twig
parent7e0d85db834d6351ed85d01e5126ac31dc510b86 (diff)
downloadft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.tar.gz
ft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.tar.bz2
ft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.zip
phpmyadmin working
Diffstat (limited to 'srcs/phpmyadmin/templates/server/replication/master_replication.twig')
-rw-r--r--srcs/phpmyadmin/templates/server/replication/master_replication.twig52
1 files changed, 52 insertions, 0 deletions
diff --git a/srcs/phpmyadmin/templates/server/replication/master_replication.twig b/srcs/phpmyadmin/templates/server/replication/master_replication.twig
new file mode 100644
index 0000000..8ba5d1b
--- /dev/null
+++ b/srcs/phpmyadmin/templates/server/replication/master_replication.twig
@@ -0,0 +1,52 @@
+{% if not clear_screen %}
+ <fieldset>
+ <legend>{% trans 'Master replication' %}</legend>
+ {% trans 'This server is configured as master in a replication process.' %}
+ <ul>
+ <li>
+ <a href="#master_status_href" id="master_status_href">
+ {% trans 'Show master status' %}
+ </a>
+ {{ master_status_table|raw }}
+ </li>
+ <li>
+ <p>
+ <a href="#master_slaves_href" id="master_slaves_href">
+ {% trans 'Show connected slaves' %}
+ </a>
+ </p>
+
+ <div id="replication_slaves_section" style="display: none;">
+ <table class="data">
+ <thead>
+ <tr>
+ <th>{% trans 'Server ID' %}</th>
+ <th>{% trans 'Host' %}</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for slave in slaves %}
+ <tr>
+ <td class="value">{{ slave['Server_id'] }}</td>
+ <td class="value">{{ slave['Host'] }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ <br>
+ {{ 'Only slaves started with the --report-host=host_name option are visible in this list.'|trans|notice }}
+ <br>
+ </div>
+ </li>
+ <li>
+ <a href="server_replication.php" data-post="{{ get_common(url_params, '') }}" id="master_addslaveuser_href">
+ {% trans 'Add slave replication user' %}
+ </a>
+ </li>
+{% endif %}
+{% if master_add_user %}
+ {{ master_add_slave_user|raw }}
+{% elseif not clear_screen %}
+ </ul>
+ </fieldset>
+{% endif %}