aboutsummaryrefslogtreecommitdiff
path: root/srcs/phpmyadmin/templates/table/tracking/structure_snapshot_columns.twig
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-07-27 10:05:23 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-07-27 10:05:23 +0200
commit5bf66662a9bdd62c5bccab15e607cd95cfb8fcab (patch)
tree39a1a4629749056191c05dfd899f931701b7acf3 /srcs/phpmyadmin/templates/table/tracking/structure_snapshot_columns.twig
parent5afd237bbd22028b85532b8c0b3fcead49a00764 (diff)
downloadft_server-master.tar.gz
ft_server-master.tar.bz2
ft_server-master.zip
Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my famillyHEADmaster
Diffstat (limited to 'srcs/phpmyadmin/templates/table/tracking/structure_snapshot_columns.twig')
-rw-r--r--srcs/phpmyadmin/templates/table/tracking/structure_snapshot_columns.twig56
1 files changed, 0 insertions, 56 deletions
diff --git a/srcs/phpmyadmin/templates/table/tracking/structure_snapshot_columns.twig b/srcs/phpmyadmin/templates/table/tracking/structure_snapshot_columns.twig
deleted file mode 100644
index 4ef8c21..0000000
--- a/srcs/phpmyadmin/templates/table/tracking/structure_snapshot_columns.twig
+++ /dev/null
@@ -1,56 +0,0 @@
-<h3>{% trans 'Structure' %}</h3>
-<table id="tablestructure" class="data">
- <thead>
- <tr>
- <th>{% trans %}#{% context %}Number{% endtrans %}</th>
- <th>{% trans 'Column' %}</th>
- <th>{% trans 'Type' %}</th>
- <th>{% trans 'Collation' %}</th>
- <th>{% trans 'Null' %}</th>
- <th>{% trans 'Default' %}</th>
- <th>{% trans 'Extra' %}</th>
- <th>{% trans 'Comment' %}</th>
- </tr>
- </thead>
- <tbody>
- {% set index = 1 %}
- {% for field in columns %}
- <tr class="noclick">
- <td>{{ index }}</td>
- {% set index = index + 1 %}
- <td>
- <strong>
- {{ field['Field'] }}
- {% if field['Key'] == 'PRI' %}
- {{ get_image('b_primary', 'Primary'|trans) }}
- {% elseif field['Key'] is not empty %}
- {{ get_image('bd_primary', 'Index'|trans) }}
- {% endif %}
- </strong>
- </td>
- <td>{{ field['Type'] }}</td>
- <td>{{ field['Collation'] }}</td>
- <td>{{ field['Null'] == 'YES' ? 'Yes'|trans : 'No'|trans }}</td>
- <td>
- {% if field['Default'] is defined %}
- {% set extracted_columnspec = extract_column_spec(field['Type']) %}
- {% if extracted_columnspec['type'] == 'bit' %}
- {# here, $field['Default'] contains something like b'010' #}
- {{ field['Default']|convert_bit_default_value }}
- {% else %}
- {{ field['Default'] }}
- {% endif %}
- {% else %}
- {% if field['Null'] == 'YES' %}
- <em>NULL</em>
- {% else %}
- <em>{% trans %}None{% context %}None for default{% endtrans %}</em>
- {% endif %}
- {% endif %}
- </td>
- <td>{{ field['Extra'] }}</td>
- <td>{{ field['Comment'] }}</td>
- </tr>
- {% endfor %}
- </tbody>
-</table>