optional_action_links.twig 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <a href="#" id="printView">{{ Util_getIcon('b_print', 'Print'|trans, true) }}</a>
  2. {% if not tbl_is_view and not db_is_system_schema %}
  3. {# Only display propose table structure for MySQL < 8.0 #}
  4. {% if mysql_int_version < 80000 or is_mariadb %}
  5. <a href="sql.php" data-post="{{ url_query|raw }}&amp;session_max_rows=all&amp;sql_query=
  6. {{- ('SELECT * FROM ' ~ Util_backquote(table) ~ ' PROCEDURE ANALYSE()')|url_encode -}}
  7. " style="margin-right: 0;">
  8. {{ Util_getIcon(
  9. 'b_tblanalyse',
  10. 'Propose table structure'|trans,
  11. true
  12. ) }}
  13. </a>
  14. {{ Util_showMySQLDocu('procedure_analyse') }}
  15. {% endif %}
  16. {% if is_active %}
  17. <a href="tbl_tracking.php{{ url_query|raw }}">
  18. {{ Util_getIcon('eye', 'Track table'|trans, true) }}
  19. </a>
  20. {% endif %}
  21. <a href="#" id="move_columns_anchor">
  22. {{ Util_getIcon('b_move', 'Move columns'|trans, true) }}
  23. </a>
  24. <a href="normalization.php{{ url_query|raw }}">
  25. {{ Util_getIcon('normalize', 'Normalize'|trans, true) }}
  26. </a>
  27. {% endif %}
  28. {% if tbl_is_view and not db_is_system_schema %}
  29. {% if is_active %}
  30. <a href="tbl_tracking.php{{ url_query|raw }}">
  31. {{ Util_getIcon('eye', 'Track view'|trans, true) }}
  32. </a>
  33. {% endif %}
  34. {% endif %}