Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Felipe Álvarez
committed
May 7, 2018
1 parent
4c2dad0
commit 65473a6
Showing
5 changed files
with
75 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% load thumbnail %} | ||
{% load static %} | ||
{% load i18n %} | ||
<div class="col-md-2"> | ||
<div class="panel-heading text-center"> | ||
<a href="{{candidate.get_absolute_url}}"> | ||
{% if candidate.image %} | ||
{% thumbnail candidate.image "200x200" crop="center" as im %} | ||
<img src="{{ im.url }}" alt="{{ candidate.name }}" border="0" class="img-responsive img-circle" itemprop="image" /> | ||
{% endthumbnail %} | ||
{% else %} | ||
<img src="{% static 'img/candidate-default.jpg' %}" alt="{{candidate.name}}" border="0" class="img-responsive img-circle"> | ||
{% endif %} | ||
</a> | ||
<div class="panel-body text-center"> | ||
<a href="{{candidate.get_absolute_url}}" itemprop="name"><h3 class="candidate-name-card">{{ candidate.name }}</h3> | ||
{% if candidate.commitments.exists %} | ||
<p class="candidate-commitment-card">{% blocktrans with commitments_count=candidate.commitments.count %} | ||
{{ commitments_count }} compromisos | ||
{% endblocktrans %}</p></a> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters