Update website
This commit is contained in:
parent
4413528994
commit
1d90fbf296
6865 changed files with 1091082 additions and 0 deletions
|
@ -0,0 +1,61 @@
|
|||
{% extends 'server/status/base.twig' %}
|
||||
{% set active = 'processes' %}
|
||||
{% block content %}
|
||||
|
||||
<div class="card mb-3" id="tableFilter">
|
||||
<div class="card-header">{% trans 'Filters' %}</div>
|
||||
<div class="card-body">
|
||||
<form action="{{ url('/server/status/processes') }}" method="post" class="row row-cols-lg-auto gy-1 gx-3 align-items-center">
|
||||
{{ get_hidden_inputs(url_params) }}
|
||||
|
||||
<div class="col-12">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input autosubmit" type="checkbox" name="showExecuting" id="showExecuting"{{ is_checked ? ' checked' }}>
|
||||
<label class="form-check-label" for="showExecuting">{% trans 'Show only active' %}</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
<input class="btn btn-secondary" type="submit" value="{% trans 'Refresh' %}">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ server_process_list|raw }}
|
||||
|
||||
<div class="row">
|
||||
{{ 'Note: Enabling the auto refresh here might cause heavy traffic between the web server and the MySQL server.'|trans|notice }}
|
||||
</div>
|
||||
|
||||
<div class="tabLinks row">
|
||||
<label>
|
||||
{% trans 'Refresh rate' %}:
|
||||
|
||||
<select id="id_refreshRate" class="refreshRate" name="refreshRate">
|
||||
{% for rate in [2, 3, 4, 5, 10, 20, 40, 60, 120, 300, 600, 1200] %}
|
||||
<option value="{{ rate }}"{{ rate == 5 ? ' selected' }}>
|
||||
{% if rate < 60 %}
|
||||
{% if rate == 1 %}
|
||||
{{ '%d second'|trans|format(rate) }}
|
||||
{% else %}
|
||||
{{ '%d seconds'|trans|format(rate) }}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if rate / 60 == 1 %}
|
||||
{{ '%d minute'|trans|format(rate / 60) }}
|
||||
{% else %}
|
||||
{{ '%d minutes'|trans|format(rate / 60) }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</label>
|
||||
<a id="toggleRefresh" href="#">
|
||||
{{ get_image('play') }}
|
||||
{% trans 'Start auto refresh' %}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
85
admin/phpMyAdmin/templates/server/status/processes/list.twig
Normal file
85
admin/phpMyAdmin/templates/server/status/processes/list.twig
Normal file
|
@ -0,0 +1,85 @@
|
|||
<div class="responsivetable row">
|
||||
<table id="tableprocesslist" class="table table-striped table-hover sortable w-auto">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans 'Processes' %}</th>
|
||||
{% for column in columns %}
|
||||
<th scope="col">
|
||||
<a href="{{ url('/server/status/processes') }}" data-post="{{ get_common(column.params, '', false) }}" class="sortlink">
|
||||
{{ column.name }}
|
||||
{% if column.is_sorted %}
|
||||
<img class="icon ic_s_desc soimg" alt="
|
||||
{%- trans 'Descending' %}" src="themes/dot.gif" style="display: {{ column.sort_order == 'DESC' ? 'none' : 'inline' }}">
|
||||
<img class="icon ic_s_asc soimg hide" alt="
|
||||
{%- trans 'Ascending' %}" src="themes/dot.gif" style="display: {{ column.sort_order == 'DESC' ? 'inline' : 'none' }}">
|
||||
{% endif %}
|
||||
</a>
|
||||
{% if column.has_full_query %}
|
||||
<a href="{{ url('/server/status/processes') }}" data-post="{{ get_common(refresh_params, '', false) }}">
|
||||
{% if column.is_full %}
|
||||
{{ get_image(
|
||||
's_partialtext',
|
||||
'Truncate shown queries'|trans,
|
||||
{'class': 'icon_fulltext'}
|
||||
) }}
|
||||
{% else %}
|
||||
{{ get_image(
|
||||
's_fulltext',
|
||||
'Show full queries'|trans,
|
||||
{'class': 'icon_fulltext'}
|
||||
) }}
|
||||
{% endif %}
|
||||
</a>
|
||||
{% endif %}
|
||||
</th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for row in rows %}
|
||||
<tr>
|
||||
<td>
|
||||
<a class="ajax kill_process" href="{{ url('/server/status/processes/kill/' ~ row.id) }}" data-post="{{ get_common({'kill': row.id}, '', false) }}">
|
||||
{% trans 'Kill' %}
|
||||
</a>
|
||||
</td>
|
||||
<td class="font-monospace text-end">{{ row.id }}</td>
|
||||
<td>
|
||||
{% if row.user != 'system user' %}
|
||||
<a href="{{ url('/server/privileges', {
|
||||
'username': row.user,
|
||||
'hostname': row.host,
|
||||
'dbname': row.db,
|
||||
'tablename': '',
|
||||
'routinename': '',
|
||||
}) }}">
|
||||
{{ row.user }}
|
||||
</a>
|
||||
{% else %}
|
||||
{{ row.user }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ row.host }}</td>
|
||||
<td>
|
||||
{% if row.db != '' %}
|
||||
<a href="{{ url('/database/structure', {
|
||||
'db': row.db,
|
||||
}) }}">
|
||||
{{ row.db }}
|
||||
</a>
|
||||
{% else %}
|
||||
<em>{% trans 'None' %}</em>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ row.command }}</td>
|
||||
<td class="font-monospace text-end">{{ row.time }}</td>
|
||||
<td>{{ row.state }}</td>
|
||||
{% if is_mariadb %}
|
||||
<td>{{ row.progress }}</td>
|
||||
{% endif %}
|
||||
<td>{{ row.info|raw }}</td>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue