parent
79e7c10eee
commit
9689d4aeb8
4 changed files with 91 additions and 4 deletions
@ -0,0 +1,17 @@ |
|||||||
|
{% load aldryn_people_tags i18n thumbnail %} |
||||||
|
|
||||||
|
<div class="people-item"> |
||||||
|
<h2>{{ person.name }} <span>{{ person.function }}</span></h2> |
||||||
|
{% if person.visual %}<p class="people-visual"> |
||||||
|
{% if instance.show_links %}<a href="{{ person.get_absolute_url }}">{% endif %} |
||||||
|
<img src="{% thumbnail person.visual 120x150 crop subject_location=person.visual.subject_location %}" alt="{{ person.name }}" /> |
||||||
|
{% if instance.show_links %}</a>{% endif %} |
||||||
|
</p>{% endif %} |
||||||
|
<p class="people-meta"> |
||||||
|
{% if person.phone %}{% trans "Phone:" %} <span>{{ person.phone|phoneformat }}</span><br />{% endif %} |
||||||
|
{% if person.mobile %}{% trans "Mobile:" %} <span>{{ person.mobile|phoneformat }}</span><br />{% endif %} |
||||||
|
{% if person.email %}{% trans "E-Mail:" %} <a href="mailto:{{ person.email }}">{{ person.email }}</a>{% endif %} |
||||||
|
{% if instance.show_vcard and person.vcard_enabled %}<br /><a href="{% url 'download_vcard' person.slug %}" class="btn-download">{% trans "Download vCard" %}</a>{% endif %} |
||||||
|
</p> |
||||||
|
{% if person.description %}<div class="people-desc">{{ person.description|safe }}</div>{% endif %} |
||||||
|
</div> |
||||||
@ -0,0 +1,17 @@ |
|||||||
|
{% load i18n thumbnail %} |
||||||
|
|
||||||
|
<ul class="people-items list-unsltyled list-inline"> |
||||||
|
{% for person in people %} |
||||||
|
<li class="people-item"> |
||||||
|
{% if person.visual %} |
||||||
|
<p class="people-visual"> |
||||||
|
{% if instance.show_links %}<a href="{{ person.get_absolute_url }}">{% endif %} |
||||||
|
<img src="{% thumbnail person.visual 120x150 crop subject_location=person.visual.subject_location quality=100 %}" alt="{{ person.name }}" /> |
||||||
|
{% if instance.show_links %}</a>{% endif %} |
||||||
|
</p> |
||||||
|
{% endif %} |
||||||
|
<h5>{{ person.name }}</h5> |
||||||
|
<h6>{{ person.function }}</h6> |
||||||
|
</li> |
||||||
|
{% endfor %} |
||||||
|
</ul> |
||||||
@ -0,0 +1,22 @@ |
|||||||
|
{% load i18n thumbnail %} |
||||||
|
|
||||||
|
<div class="plugin plugin-people"> |
||||||
|
{% if people_groups %} |
||||||
|
{# Because of hvad I have to activate the plugin's language :( #} |
||||||
|
{% language instance.language %} |
||||||
|
{% for group, people_list in people_groups.items %} |
||||||
|
{% if group.name %} |
||||||
|
<div class="people-group"> |
||||||
|
<h2>{{ group.name }}</h2> |
||||||
|
<div class="people-lead">{{ group.description|safe }}</div> |
||||||
|
</div> |
||||||
|
{% endif %} |
||||||
|
{% include "aldryn_people/includes/people_items.html" with people=people_list %} |
||||||
|
{% endfor %} |
||||||
|
{% endlanguage %} |
||||||
|
{% endif %} |
||||||
|
|
||||||
|
{% if not people_groups %} |
||||||
|
{% include "aldryn_people/includes/people_items.html" %} |
||||||
|
{% endif %} |
||||||
|
</div> |
||||||
Loading…
Reference in new issue