From 3dd57541d046be1a22c0ae2150eaff108aabd57a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Tue, 11 Oct 2016 16:34:57 +0200 Subject: [PATCH] Circle person style in event details --- app/templates/agenda/event_detail.html | 17 ++++--- .../network/inc/person/list_circle_style.html | 44 ++----------------- .../network/inc/person/list_square_style.html | 8 ++-- .../inc/person/person_card_circle.html | 43 ++++++++++++++++++ .../inc/person/person_card_square.html | 38 ++++++++-------- 5 files changed, 77 insertions(+), 73 deletions(-) create mode 100644 app/templates/network/inc/person/person_card_circle.html diff --git a/app/templates/agenda/event_detail.html b/app/templates/agenda/event_detail.html index ed865c08..0fe29e57 100644 --- a/app/templates/agenda/event_detail.html +++ b/app/templates/agenda/event_detail.html @@ -157,25 +157,24 @@ -
+
-
+
- {% for person in event.persons.all %} +
-
+ {% for person in event.persons.all %} -
{% with person.person as person %} - {% include "network/inc/person/person_card_square.html" %} + {% include "network/inc/person/person_card_circle.html" %} {% endwith %} -
-
+ {% endfor %} - {% endfor %} +
+
diff --git a/app/templates/network/inc/person/list_circle_style.html b/app/templates/network/inc/person/list_circle_style.html index 08e4a94e..eedfa2eb 100644 --- a/app/templates/network/inc/person/list_circle_style.html +++ b/app/templates/network/inc/person/list_circle_style.html @@ -30,49 +30,11 @@ {% for person_list_block_inline in person_list_block.person_list_block_inlines.all %} {% with person_list_block_inline.person as person %} -
- -
- - - -
- -

{{ person.first_name }} {{ person.last_name }}

- - {% if person.description %} -
{{ person.description|richtext_filters|safe }}
- {% elif person.bio %} -
{{ person.bio|richtext_filters|safe }}
- {% endif %} - {% if person.files.first %} - {% trans "resume" %} - {% endif %} - {% for link in person.links.all %} - {% if link %} - {{ link.link_type.name }} - {% endif %} - {% endfor %} - -
+ {% with person_list_block_inline.person as person %} -
+ {% include "network/inc/person/person_card_square.html" %} -
+ {% endwith %} {% endwith %} {% endfor %} diff --git a/app/templates/network/inc/person/list_square_style.html b/app/templates/network/inc/person/list_square_style.html index fef07cc6..3fd44fbc 100644 --- a/app/templates/network/inc/person/list_square_style.html +++ b/app/templates/network/inc/person/list_square_style.html @@ -29,13 +29,11 @@
-
- {% with person_list_block_inline.person as person %} + {% with person_list_block_inline.person as person %} - {% include "network/inc/person/person_card_square.html" %} + {% include "network/inc/person/person_card_square.html" %} - {% endwith %} -
+ {% endwith %}
diff --git a/app/templates/network/inc/person/person_card_circle.html b/app/templates/network/inc/person/person_card_circle.html new file mode 100644 index 00000000..384b424a --- /dev/null +++ b/app/templates/network/inc/person/person_card_circle.html @@ -0,0 +1,43 @@ +{% load organization_tags mezzanine_tags i18n %} + +
+
+ + + +
+ +

{{ person.first_name }} {{ person.last_name }}

+ + {% if person.description %} +
{{ person.description|richtext_filters|safe }}
+ {% elif person.bio %} +
{{ person.bio|richtext_filters|safe }}
+ {% endif %} + {% if person.files.first %} + {% trans "resume" %} + {% endif %} + {% for link in person.links.all %} + {% if link %} + {{ link.link_type.name }} + {% endif %} + {% endfor %} + +
+ +
+
diff --git a/app/templates/network/inc/person/person_card_square.html b/app/templates/network/inc/person/person_card_square.html index aa8b3d22..ec146f8d 100644 --- a/app/templates/network/inc/person/person_card_square.html +++ b/app/templates/network/inc/person/person_card_square.html @@ -1,25 +1,27 @@ {% load organization_tags mezzanine_tags %} -{% with person.images.all|get_type:'card' as card_images %} - {% if card_images %} -
- -
- person -
-
-
- {% endif %} -{% endwith %} +
+ {% with person.images.all|get_type:'card' as card_images %} + {% if card_images %} +
+ +
+ person +
+
+
+ {% endif %} + {% endwith %} -
+
-

{{ person.first_name }} {{ person.last_name }}

+

{{ person.first_name }} {{ person.last_name }}

- {% if person.description %} -
{{ person.description|richtext_filters|safe|truncatechars_html:255 }}
- {% elif person.bio %} -
{{ person.bio|richtext_filters|safe|truncatechars_html:255 }}
- {% endif %} + {% if person.description %} +
{{ person.description|richtext_filters|safe|truncatechars_html:255 }}
+ {% elif person.bio %} +
{{ person.bio|richtext_filters|safe|truncatechars_html:255 }}
+ {% endif %} +
-- 2.39.5