Skip to content

Commit 538a644

Browse files
authored
Merge pull request #7192 from escattone/do-not-display-aaq-cta-741
do not display AAQ CTA if no support configured
2 parents e0455bd + eaf8706 commit 538a644

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

kitsune/questions/jinja2/questions/includes/aaq_macros.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ <h3 class="card--title">
8282

8383
{% macro aaq_widget(request, location="aaq", topic=None) %}
8484
{% set aaq_context = request.session.get("aaq_context") %}
85+
{% if aaq_context and (aaq_context.has_public_forum or aaq_context.has_ticketing_support) %}
8586
<div class="aaq-widget card is-inverse elevation-01 text-center radius-md">
8687
<h2 class="card--title has-bottom-margin">
8788
<svg class="card--icon-sm" width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
@@ -124,10 +125,10 @@ <h2 class="card--title has-bottom-margin">
124125

125126
{% set next_step = url('wiki.document', 'get-community-support')|urlparams(exit_aaq=1)
126127
if not (is_ticketed or has_forum or topic)
127-
else url('questions.aaq_step3', product_slug=aaq_context.product_slug)
128+
else url('questions.aaq_step3', product_slug=aaq_context.product_slug)
128129
if aaq_context and not multiple_products
129130
else url('questions.aaq_step1') %}
130-
131+
131132
<a class="sumo-button primary-button feature-box"
132133
href="{{ next_step }}"
133134
data-event-name="link_click"
@@ -137,7 +138,8 @@ <h2 class="card--title has-bottom-margin">
137138
}'>
138139
{{ _('Continue')}}
139140
</a>
140-
</div>
141+
</div>
142+
{% endif %}
141143
{%- endmacro %}
142144

143145
{% macro explore_solutions(product, search_box, featured, topics, is_ticketed_support=True) -%}

0 commit comments

Comments
 (0)