list.twig 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <div class="responsivetable row">
  2. <table id="tableprocesslist" class="table table-light table-striped table-hover sortable w-auto">
  3. <thead class="thead-light">
  4. <tr>
  5. <th>{% trans 'Processes' %}</th>
  6. {% for column in columns %}
  7. <th scope="col">
  8. <a href="{{ url('/server/status/processes') }}" data-post="{{ get_common(column.params) }}" class="sortlink">
  9. {{ column.name }}
  10. {% if column.is_sorted %}
  11. <img class="icon ic_s_desc soimg" alt="
  12. {%- trans 'Descending' %}" src="themes/dot.gif" style="display: {{ column.sort_order == 'DESC' ? 'none' : 'inline' }}">
  13. <img class="icon ic_s_asc soimg hide" alt="
  14. {%- trans 'Ascending' %}" src="themes/dot.gif" style="display: {{ column.sort_order == 'DESC' ? 'inline' : 'none' }}">
  15. {% endif %}
  16. </a>
  17. {% if column.has_full_query %}
  18. <a href="{{ url('/server/status/processes') }}" data-post="{{ get_common(refresh_params, '') }}">
  19. {% if column.is_full %}
  20. {{ get_image(
  21. 's_partialtext',
  22. 'Truncate shown queries'|trans,
  23. {'class': 'icon_fulltext'}
  24. ) }}
  25. {% else %}
  26. {{ get_image(
  27. 's_fulltext',
  28. 'Show full queries'|trans,
  29. {'class': 'icon_fulltext'}
  30. ) }}
  31. {% endif %}
  32. </a>
  33. {% endif %}
  34. </th>
  35. {% endfor %}
  36. </tr>
  37. </thead>
  38. <tbody>
  39. {% for row in rows %}
  40. <tr>
  41. <td>
  42. <a class="ajax kill_process" href="{{ url('/server/status/processes/kill/' ~ row.id) }}" data-post="{{ get_common({'kill': row.id}, '') }}">
  43. {% trans 'Kill' %}
  44. </a>
  45. </td>
  46. <td class="text-monospace text-right">{{ row.id }}</td>
  47. <td>{{ row.user }}</td>
  48. <td>{{ row.host }}</td>
  49. <td>
  50. {% if row.db != '' %}
  51. {{ row.db }}
  52. {% else %}
  53. <em>{% trans 'None' %}</em>
  54. {% endif %}
  55. </td>
  56. <td>{{ row.command }}</td>
  57. <td class="text-monospace text-right">{{ row.time }}</td>
  58. <td>{{ row.state }}</td>
  59. <td>{{ row.progress }}</td>
  60. <td>{{ row.info|raw }}</td>
  61. {% endfor %}
  62. </tbody>
  63. </table>
  64. </div>