Skip to content

Commit

Permalink
adding alt and title for logos in the footer
Browse files Browse the repository at this point in the history
  • Loading branch information
damian-garrido committed Jul 21, 2017
1 parent 0b28f56 commit 4ff57c3
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions votai_general_theme/templates/organizations_logos.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
{% load thumbnail %}
<div class="container">
<ul class="list-inline">
{% for template in templates %}
<li><a href="{{template.get_absolute_url}}">
<div class="logo-org-home">
{% thumbnail template.logo "100x100" as im %}
<img src="{{ im.url }}"
width="{{ im.width }}"
height="{{ im.height }}
alt={{template.organization.get_full_name}}">
{% endthumbnail %}
{% if templates|length %}
<section id="orgs-repo">
<div class="container">
<div class="row">
<h2 class="text-center">Organizaciones</h2>
<div class="container">
<ul class="list-inline">
{% for template in templates %}
<li><a href="{{template.get_absolute_url}}">
<div class="logo-org-home">
{% thumbnail template.logo "100x100" as im %}
<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" alt="{{template.title}}" title="{{template.title}}">
{% endthumbnail %}
</div>
</a></li>
{% endfor %}
</ul>
</div>
</div>
</a></li>
{% endfor %}
</ul>
</div>
</div>
</section>
{% endif %}

0 comments on commit 4ff57c3

Please sign in to comment.