Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Fix people list plugin, add group-detail template. #54

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<div class="lead">{{ person.description|safe }}</div>
{% endif %}

{% if person.vcard_enabled %}
{% if not instance and person.vcard_enabled or instance.show_vcard and person.vcard_enabled %}
<a href="{% url 'aldryn_people:download_vcard' person.slug %}" class="btn btn-default btn-sm">
<span class="fa fa-fw fa-download" aria-hidden="true"></span>
{% trans "Download vCard" %}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% extends "base.html" %}
{% load cms_tags i18n %}

{% block title %}{{ group.name }} - {{ block.super }}{% endblock %}

{% block content %}
<div class="aldryn aldryn-people aldryn-group-detail">
<h1>{% render_model group 'name' %}</h1>
{% for person in group.people.all %}
{% include "aldryn_people/includes/people_item.html" with person=person %}
{% endfor %}
</div>
{% endblock content %}aldryn_people/boilerplates/legacy/templates/aldryn_people/group_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ <h2>{{ person.name }} <span>{{ person.function }}</span></h2>
{% 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 'aldryn_people:download_vcard' person.slug %}" class="btn-download">{% trans "Download vCard" %}</a>{% endif %}
{% if not instance and person.vcard_enabled or instance.show_vcard and person.vcard_enabled %}
<br /><a href="{% url 'aldryn_people: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>