Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix-9075: Remove empty line, add - in format jinja2 to remove empty l… #9091

Closed
wants to merge 9 commits into from
163 changes: 64 additions & 99 deletions app/templates/cvf/badge_qr_template.cvf
Original file line number Diff line number Diff line change
@@ -1,133 +1,98 @@
BEGIN:VCARD

VERSION:3.0

X-SOCIALPROFILE;TYPE=EVENTYAY:{{ ticket_id }}

EVENTYAY:{{ ticket_id }}
EMAIL:{{ email }}
{% if firstname or lastname %}
{%- if firstname or lastname %}
FN:{{ firstname|default('') }} {{ lastname|default('') }}

N:{{ lastname|default('') }};{{ firstname|default('') }};;;
{% endif %}

{% if phone %}
{%- endif %}
{%- if phone %}
TEL;TYPE=HOME:{{ phone }}
{% endif %}

{% if workPhone %}
{%- endif %}
{%- if workPhone %}
TEL;TYPE=WORK:{{ workPhone }}
{% endif %}

{% if address or city or state or country %}
{%- endif %}
{%- if address or city or state or country %}
ADR;TYPE=ADDRESS:;;{{ address }};{{city|default('')}};{{state|default('')}};;{{country|default('')}}
{% endif %}

{% if billingAddress %}
{%- endif %}
{%- if billingAddress %}
ADR;TYPE=BILLING:;;{{billingAddress}};;;;
{% endif %}

{% if homeAddress %}
{%- endif %}
{%- if homeAddress %}
ADR;TYPE=HOME:;;{{homeAddress}};;;;
{% endif %}

{% if shippingAddress %}
{%- endif %}
{%- if shippingAddress %}
ADR;TYPE=SHIPPING:;;{{shippingAddress}};;;;
{% endif %}

{% if workAddress %}
{%- endif %}
{%- if workAddress %}
ADR;TYPE=WORK:;;{{workAddress}};;;;
{% endif %}

{% if company %}
{%- endif %}
{%- if company %}
ORG:{{company}}
{% endif %}

{% if jobTitle %}
{%- endif %}
{%- if jobTitle %}
ORG:{{jobTitle}}
{% endif %}

{% if website %}
{%- endif %}
{%- if website %}
URL;TYPE=WEBSITE:{{website}}
{% endif %}

{% if blog %}
{%- endif %}
{%- if blog %}
URL;TYPE=BLOG:{{blog}}
{% endif %}

{% if twitter %}
{%- endif %}
{%- if twitter %}
URL;TYPE=TWITTER:{{twitter}}
{% endif %}

{% if facebook %}
{%- endif %}
{%- if facebook %}
URL;TYPE=FACEBOK:{{facebook}}
{% endif %}

{% if github %}
{%- endif %}
{%- if github %}
URL;TYPE=GITHUB:{{github}}
{% endif %}

{% if linkedin %}
{%- endif %}
{%- if linkedin %}
URL;TYPE=LINIKENDIN:{{linkedin}}
{% endif %}

{% if instagram %}
{%- endif %}
{%- if instagram %}
URL;TYPE=INSTAGRAM:{{instagram}}
{% endif %}

{% if gender %}
{%- endif %}
{%- if gender %}
X-SOCIALPROFILE;TYPE=GENDER:{{gender}}
{% endif %}

{% if ageGroup %}
{%- endif %}
{%- if ageGroup %}
X-SOCIALPROFILE;TYPE=AGEGROUP:{{ageGroup}}
{% endif %}

{% if acceptVideoRecording %}
{%- endif %}
{%- if acceptVideoRecording %}
X-SOCIALPROFILE;TYPE=ACCEPTVIDEORECORDING:{{acceptVideoRecording}}
{% endif %}

{% if acceptShareDetails %}
{%- endif %}
{%- if acceptShareDetails %}
X-SOCIALPROFILE;TYPE=ACCEPTSHAREDETAILS:{{acceptShareDetails}}
{% endif %}

{% if acceptReceiveEmails %}
{%- endif %}
{%- if acceptReceiveEmails %}
X-SOCIALPROFILE;TYPE=ACCEPTRECEIVEEMAILS:{{acceptReceiveEmails}}
{% endif %}

{% if is_consent_form_field %}
{%- endif %}
{%- if is_consent_form_field %}
X-SOCIALPROFILE;TYPE=ConsentFormField:{{is_consent_form_field}}
{% endif %}

{% if is_consent_form_field_photo %}
{%- endif %}
{%- if is_consent_form_field_photo %}
X-SOCIALPROFILE;TYPE=ConsentFormFieldPhoto:{{is_consent_form_field_photo}}
{% endif %}

{% if is_consent_of_refund_policy %}
{%- endif %}
{%- if is_consent_of_refund_policy %}
X-SOCIALPROFILE;TYPE=ConsentOfRefundPolicy:{{is_consent_of_refund_policy}}
{% endif %}

{% if native_language %}
{%- endif %}
{%- if native_language %}
X-SOCIALPROFILE;TYPE=NativeLanguage:{{native_language}}
{% endif %}

{% if fluent_language %}
{%- endif %}
{%- if fluent_language %}
X-SOCIALPROFILE;TYPE=FluentLanguage:{{fluent_language}}
{% endif %}

{% if home_wiki %}
{%- endif %}
{%- if home_wiki %}
X-SOCIALPROFILE;TYPE=HomeWiki:{{home_wiki}}
{% endif %}

{% if wiki_scholarship %}
{%- endif %}
{%- if wiki_scholarship %}
X-SOCIALPROFILE;TYPE=WikiScholarship:{{wiki_scholarship}}
{% endif %}

{% for custom_field in custom_fields %}
{% for key, value in custom_field.items() %}
{%- endif %}
{%- for custom_field in custom_fields %}
{%- for key, value in custom_field.items() %}
X-SOCIALPROFILE;TYPE={{key}}:{{value}}
{% endfor %}
{% endfor %}

END:VCARD

{%- endfor %}
{%- endfor %}
END:VCARD