Skip to content

Commit

Permalink
Output as a link only if a sourceUrl is set
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Feb 8, 2024
1 parent 36a80c3 commit 5d2f325
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
<td data-title="{{ 'Interaction'|t('campaign') }}">{{ activity.interaction|ucfirst|t('campaign') }}</td>
<td data-title="{{ 'Source'|t('campaign') }}">
{% if model.sourceType %}
<a href="{{ activity.sourceUrl }}" class="go" target="_blank" rel="noopener">{{ model.sourceType|ucfirst|t('campaign') }}</a>
{% if activity.sourceUrl %}
<a href="{{ activity.sourceUrl }}" class="go" target="_blank" rel="noopener">{{ model.sourceType|ucfirst|t('campaign') }}</a>
{% else %}
{{ model.sourceType|ucfirst|t('campaign') }}
{% endif %}
{% endif %}
</td>
<td data-title="{{ 'First Interaction'|t('campaign') }}">{{ activity.date|datetime }}</td>
Expand Down

0 comments on commit 5d2f325

Please sign in to comment.