From d43ed418ff1bff3a15c6d2edc58c4bb80c22e900 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 13 Apr 2016 12:33:46 +0200 Subject: [PATCH] fix post share buttons --- app/sandbox/local_settings.py | 4 ++-- app/templates/agenda/event_detail.html | 1 + app/templates/blog/blog_post_detail.html | 10 ++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/sandbox/local_settings.py b/app/sandbox/local_settings.py index abda5760..31e9a428 100644 --- a/app/sandbox/local_settings.py +++ b/app/sandbox/local_settings.py @@ -85,8 +85,8 @@ ADMIN_MENU_ORDER = ( (_("Site"), ("sites.Site", "redirects.Redirect", "conf.Setting")), (_("Users"), ("auth.User", "auth.Group",)), (_("Festival"), ("mezzanine_agenda.EventLocation", - "mezzanine_agenda.EventCategory", "festival.PageCategory", - "festival.EventPrice")), + "mezzanine_agenda.EventCategory", "mezzanine_agenda.EventPrice", + "festival.PageCategory",)), ) SEARCH_MODEL_CHOICES = () diff --git a/app/templates/agenda/event_detail.html b/app/templates/agenda/event_detail.html index 2dc65116..94902a1f 100644 --- a/app/templates/agenda/event_detail.html +++ b/app/templates/agenda/event_detail.html @@ -76,6 +76,7 @@ {% include "includes/share_buttons.html" %} {% endwith %} {% endblock %} + {% block event_detail_calendar %}
diff --git a/app/templates/blog/blog_post_detail.html b/app/templates/blog/blog_post_detail.html index 2f861bc5..0f51376c 100644 --- a/app/templates/blog/blog_post_detail.html +++ b/app/templates/blog/blog_post_detail.html @@ -80,6 +80,7 @@ {% endif %} {% endblock %} +{% comment %} {% block blog_post_detail_rating %}
@@ -87,11 +88,12 @@
{% endblock %} +{% endcomment %} -{% block blog_post_detail_sharebuttons %} -{% set_short_url_for blog_post %} -
- +{% block event_detail_sharebuttons %} + {% with blog_post as object %} + {% include "includes/share_buttons.html" %} + {% endwith %} {% endblock %} {% block blog_post_previous_next %} -- 2.39.5