Skip to content

Commit

Permalink
apps/*OverviewPages/templates: check for language_code and in case of…
Browse files Browse the repository at this point in the history
… de-ls hide intro image
  • Loading branch information
Kha committed May 4, 2023
1 parent a1cb20d commit dffbd27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/gruenbuch/templates/gruenbuch_overview_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% image page.intro_image max-1920x560 as intro_image %}

<section id="layout-grid__area--herounit">
{% if page.intro_image %}
{% if page.intro_image and request.LANGUAGE_CODE != 'de-ls' %}
<div class="image">
<div class="image__image">
<img src="{{ intro_image.url }}" class="w-100" alt="{{ page.intro_image.alt }}"/>
Expand Down
3 changes: 2 additions & 1 deletion apps/home/templates/apps_home/overview_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<div class="fullwidth">
<div id="layout-grid">
<section id="layout-grid__area--herounit">
{% if page.intro_image %}
{{ request.LANGUAGE_CODE }}
{% if page.intro_image and request.LANGUAGE_CODE != 'de-ls' %}
<div class="image">
<div class="image__image">
<img src="{{ intro_image.url }}" class="w-100" alt="{{ page.intro_image.alt }}"/>
Expand Down

0 comments on commit dffbd27

Please sign in to comment.