{= # # # dev.cfv (This template will be modified so that it shows links for miscellaneous developer tools) # # This template is used for debugging purposes only. It shows all option_info shortcuts # at a glance, collected from option_info. It checks for duplicate shortcuts, empty labels and descriptions. # # include "docs.english.util"; # KHP-RC, "docs.util" should work as well but it does not! include "templates.util.base_util"; include "templates.util.encoding"; include "templates.util.html"; include "templates.util.linked_files.linked_files_util"; debug_message("\n\n#### dev.cfv START \n"); # # # Track all shortcuts in "v.temp_debug.shortcuts", i.e.: # v.temp_debug.shortcuts.rn = 1 # v.temp_debug.shortcuts.p = 1 # v.temp_debug.shortcuts.f = 2 --> The number indicates of how often a specific shortcut occurs, that's how we check for duplicates # # # # Only allow root_admin access # bool is_root_admin = get_is_root_admin(); if (is_root_admin) then ( delete_node("v.temp_debug"); v.temp_debug.shortcuts = ""; v.temp_debug.number_of_options = 0; subroutine(build_header_row, ( '
Number of options: | '; '' . number_of_options . ' | '; '
---|---|
Number of shortcuts: | '; '' . number_of_shortcuts . ' | '; '
Number of duplicate shortcuts: | '; '' . number_of_duplicate_shortcuts . ' | '; '
Duplicate shortcuts: | '; '' . duplicate_shortcuts . ' | '; '