Skip to content

Commit

Permalink
Merge pull request #833 from SuffolkLITLab/hide-hud
Browse files Browse the repository at this point in the history
Add a hide_hud parameter to enable hiding the id/variable/package number
  • Loading branch information
nonprofittechy authored Mar 15, 2024
2 parents 7db1af9 + a8dda55 commit ee6abc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docassemble/AssemblyLine/data/questions/al_visual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ default screen parts:
corner back button label: |
Undo
pre: |
% if get_config('debug'):
`id: ${ user_info().question_id }`
`Variable triggering this screen: ${ user_info().variable }`
`Package: ${ user_info().package } ${ package_version_number }; ${ al_version }`
% if get_config('debug') and not url_args.get("hide_hud", "").lower() in ["1", "on", "true", "yes"]:
`id: ${ user_info().question_id }`[BR]
`Variable: ${ user_info().variable }`[BR]
`Version: ${ user_info().package.replace("docassemble.", "") + " " if not user_info().package.startswith("docassemble.playground") else "" }${ package_version_number }; ${ al_version }`
<div data-variable="${ encode_name(str( user_info().variable )) }" id="sought_variable" aria-hidden="true" style="display: none;"></div>
% endif
# We need both pre and post until old interviews are updated to v2 of the testing framework or v1 of the testing framework is updated. In future, we will need this in `post` so that it will work on signature pages.
Expand Down

0 comments on commit ee6abc6

Please sign in to comment.