From 686a4a93217cfc80b2693c1127c71e40c87a0e44 Mon Sep 17 00:00:00 2001 From: Quinten Steenhuis Date: Thu, 15 Dec 2022 17:00:12 -0500 Subject: [PATCH] Fix #260 --- .../AssemblyLine/data/questions/al_visual.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docassemble/AssemblyLine/data/questions/al_visual.yml b/docassemble/AssemblyLine/data/questions/al_visual.yml index 67a7f635..ec0ac4f9 100644 --- a/docassemble/AssemblyLine/data/questions/al_visual.yml +++ b/docassemble/AssemblyLine/data/questions/al_visual.yml @@ -333,6 +333,22 @@ template: about_this_interview_version_info content: | "${all_variables(special='metadata').get('title','').rstrip()}" version `${ package_version_number }`; AssemblyLine version `${ al_version }`. + + % if interview_metadata.get("main_interview_key"): + <% + MAIN_METADATA = interview_metadata[interview_metadata["main_interview_key"]] + %> + % elif len(interview_metadata) > 1: + <% + del(interview_metadata["main_interview_key"]) # DADict creates the key on lookup above + MAIN_METADATA = next(iter(interview_metadata.values())) + %> + % else: + <% MAIN_METADATA = {} %> + % endif + % if MAIN_METADATA.get("original_form") and not MAIN_METADATA.get("original_form").strip() == "None" and MAIN_METADATA.get("original_form").startswith("http"): + [View the original version of this form](${ MAIN_METADATA.get("original_form") }). + % endif % if package_updated_on: Last updated on ${ package_updated_on }. [:fab-fa-github: View code on GitHub](${ github_url }).