Skip to content

Commit

Permalink
fix from amélie review
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne-Laure de Boissieu committed May 3, 2021
1 parent 3b60a21 commit d60ecd9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
18 changes: 8 additions & 10 deletions templates/case_study/show.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,17 @@
{% for technologySlug in caseStudy.technologies %}
{% set technology = content_get('App\\Model\\Technology', technologySlug) %}
<li>
<a
{% if technology.show %}
href="{{ path('technology', { technology: technology.slug }) }}"
{% endif %}
class="technologies__item"
>
{% if technology.show %}
<a href="{{ path('technology', { technology: technology.slug })}}" class="technologies__item">
<img src="{{ asset(technology.logo) }}" alt="Logo {{ technology.logo }}">
{{ technology.name }}
</a>
{% else %}
<div class="technologies__item">
{% if technology.logo|default(false) %}
<img src="{{ asset(technology.logo) }}" alt="logo {{ technology.name }}">
{% endif %}
<img src="{{ asset(technology.logo) }}" alt="Logo {{ technology.logo }}">
{{ technology.name }}
</div>
</a>
{% endif %}
</li>
{% endfor %}
</ul>
Expand Down
13 changes: 7 additions & 6 deletions templates/site/home.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,17 @@
{% for item in technos %}
{% set techno = content_get('App\\Model\\Technology', item.id) %}
<li>
<a
{% if techno.show %}
href="{{ path('technology', { technology: techno.slug })}}"
{% endif %}
class="technologies__item">
{% if techno.show %}
<a href="{{ path('technology', { technology: techno.slug })}}" class="technologies__item">
<img src="{{ asset(techno.logo) }}" alt="{{ item.alt }}">
{{ techno.name }}
</a>
{% else %}
<div class="technologies__item">
<img src="{{ asset(techno.logo) }}" alt="{{ item.alt }}">
{{ techno.name }}
</div>
</a>
{% endif %}
</li>
{% endfor %}
</ul>
Expand Down

0 comments on commit d60ecd9

Please sign in to comment.