aboutsummaryrefslogtreecommitdiff
path: root/srcs/phpmyadmin/templates/server/plugins/index.twig
blob: ec8bbd49d82847b03b3854b3d37fd1a23e790331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<h2>
  {{ get_image('b_plugin') }}
  {% trans 'Plugins' %}
</h2>

<div id="plugins_plugins">
  <div id="sectionlinks">
    {% for type in plugins|keys %}
      <a class="btn btn-primary" href="#plugins-{{ clean_types[type] }}">
          {{ type }}
      </a>
    {% endfor %}
  </div>
  {% for type, list in plugins %}
    <div class="responsivetable">
      <table class="data_full_width" id="plugins-{{ clean_types[type] }}">
        <caption class="tblHeaders">
          {{ type }}
        </caption>
        <thead>
          <tr>
            <th>{% trans 'Plugin' %}</th>
            <th>{% trans 'Description' %}</th>
            <th>{% trans 'Version' %}</th>
            <th>{% trans 'Author' %}</th>
            <th>{% trans 'License' %}</th>
          </tr>
        </thead>
        <tbody>
          {% for plugin in list %}
            <tr class="noclick">
              <th>
                {{ plugin.name }}
                {% if plugin.status != 'ACTIVE' %}
                  <small class="attention">
                    {% if plugin.status == 'INACTIVE' %}
                      {% trans 'inactive' %}
                    {% elseif plugin.status == 'DISABLED' %}
                      {% trans 'disabled' %}
                    {% elseif plugin.status == 'DELETING' %}
                      {% trans 'deleting' %}
                    {% elseif plugin.status == 'DELETED' %}
                      {% trans 'deleted' %}
                    {% endif %}
                  </small>
                {% endif %}
              </th>
              <td>{{ plugin.description }}</td>
              <td>{{ plugin.version }}</td>
              <td>{{ plugin.author }}</td>
              <td>{{ plugin.license }}</td>
            </tr>
          {% endfor %}
        </tbody>
      </table>
    </div>
  {% endfor %}
</div>