diff --git a/funnel/templates/macros.html.jinja2 b/funnel/templates/macros.html.jinja2 index de1e50e3c..37b1498ef 100644 --- a/funnel/templates/macros.html.jinja2 +++ b/funnel/templates/macros.html.jinja2 @@ -190,8 +190,19 @@

{{ faicon(icon='search', css_class="search-icon", baseline=false) }} {{ snippet_html }}

{% endif %}
- {%- if include_details %} -
{% if project.primary_venue.title and project.primary_venue.city %}{{ faicon(icon='map-marker-alt', icon_size='caption', baseline=false) }} {{ project.primary_venue.title }}, {{ project.primary_venue.city }}{% elif project.primary_venue.title %}{{ faicon(icon='map-marker-alt', icon_size='caption', baseline=false) }} {{ project.primary_venue.title }}{% elif project.location %}{{ faicon(icon='map-marker-alt', icon_size='caption', baseline=false) }} {{ project.location }}{% endif %}
+ {%- if include_details and (project.primary_venue or project.location) -%} +
+ {{ faicon(icon='map-marker-alt', icon_size='caption', baseline=false) }} + {%- if project.primary_venue.title and project.primary_venue.city %} + {% trans venue=project.primary_venue.title, city=project.primary_venue.city -%} + {{ venue }}, {{ city }} + {%- endtrans %} + {%- elif project.primary_venue.title %} + {{ project.primary_venue.title }} + {%- elif project.location %} + {{ project.location }} + {%- endif -%} +
{% endif %}
diff --git a/funnel/templates/profile_layout.html.jinja2 b/funnel/templates/profile_layout.html.jinja2 index efd99fb7b..845e3451b 100644 --- a/funnel/templates/profile_layout.html.jinja2 +++ b/funnel/templates/profile_layout.html.jinja2 @@ -126,9 +126,22 @@
-
-
{% if featured_project.primary_venue.title and featured_project.primary_venue.city %}{{ faicon(icon='map-marker-alt', icon_size='caption', baseline=false) }} {{ featured_project.primary_venue.title }}, {{ featured_project.primary_venue.city }}{% elif featured_project.primary_venue.title %}{{ faicon(icon='map-marker-alt', icon_size='caption', baseline=false) }} {{ featured_project.primary_venue.title }}{% elif featured_project.location %}{{ faicon(icon='map-marker-alt', icon_size='caption', baseline=false) }} {{ featured_project.location }}{% endif %}
-
+ {%- if project.primary_venue or project.location %} +
+
+ {{ faicon(icon='map-marker-alt', icon_size='caption', baseline=false) }} + {%- if featured_project.primary_venue.title and featured_project.primary_venue.city %} + {% trans venue=project.primary_venue.title, city=project.primary_venue.city -%} + {{ venue }}, {{ city }} + {%- endtrans %} + {%- elif featured_project.primary_venue.title %} + {{ featured_project.primary_venue.title }} + {%- elif featured_project.location %} + {{ featured_project.location }} + {%- endif -%} +
+
+ {%- endif %} {% endif %}