File: row.twig

package info (click to toggle)
phpmyadmin 4%3A5.2.2-really%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 140,312 kB
  • sloc: javascript: 228,447; php: 166,904; xml: 17,847; sql: 504; sh: 275; makefile: 209; python: 205
file content (79 lines) | stat: -rw-r--r-- 2,408 bytes parent folder | download
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<tr{% if row_class is not empty %} class="{{ row_class }}"{% endif %} data-filter-row="{{ routine.name|upper }}">
  <td>
    <input type="checkbox" class="checkall" name="item_name[]" value="{{ routine.name }}">
  </td>
  <td>
    <span class="drop_sql hide">{{ sql_drop }}</span>
    <strong>{{ routine.name }}</strong>
  </td>
  <td>{{ routine.type }}</td>
  <td dir="ltr">{{ routine.returns }}</td>
  <td>
    {% if has_edit_privilege %}
      <a class="ajax edit_anchor" href="{{ url('/database/routines', {
        'db': db,
        'table': table,
        'edit_item': true,
        'item_name': routine.name,
        'item_type': routine.type
      }) }}">
        {{ get_icon('b_edit', 'Edit'|trans) }}
      </a>
    {% else %}
      {{ get_icon('bd_edit', 'Edit'|trans) }}
    {% endif %}
  </td>
  <td>
    {% if has_execute_privilege and execute_action is not empty %}
      {% if execute_action == 'execute_routine' %}
        <a class="ajax exec_anchor" href="{{ url('/database/routines', {'db': db, 'table': table}) }}" data-post="{{ get_common({
          'execute_routine': true,
          'item_name': routine.name,
          'item_type': routine.type
        }, '') }}">
          {{ get_icon('b_nextpage', 'Execute'|trans) }}
        </a>
      {% else %}
        <a class="ajax exec_anchor" href="{{ url('/database/routines', {
          'db': db,
          'table': table,
          'execute_dialog': true,
          'item_name': routine.name,
          'item_type': routine.type
        }) }}">
          {{ get_icon('b_nextpage', 'Execute'|trans) }}
        </a>
      {% endif %}
    {% else %}
      {{ get_icon('bd_nextpage', 'Execute'|trans) }}
    {% endif %}
  </td>
  <td>
    {% if has_export_privilege %}
      <a class="ajax export_anchor" href="{{ url('/database/routines', {
        'db': db,
        'table': table,
        'export_item': true,
        'item_name': routine.name,
        'item_type': routine.type
      }) }}">
        {{ get_icon('b_export', 'Export'|trans) }}
      </a>
    {% else %}
      {{ get_icon('bd_export', 'Export'|trans) }}
    {% endif %}
  </td>
  <td>
    {{ link_or_button(
      url('/sql'),
      {
        'db': db,
        'table': table,
        'sql_query': sql_drop,
        'goto': url('/database/routines', {'db': db})
      },
      get_icon('b_drop', 'Drop'|trans),
      {'class': 'ajax drop_anchor'}
    ) }}
  </td>
</tr>