From: Philippe Barbosa Date: Mon, 4 Apr 2016 15:56:24 +0000 (+0200) Subject: Factorizing share buttons X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=ef2d527615dccfb005b6d2dff8ad71a2da7aafc9;p=mezzo.git Factorizing share buttons --- diff --git a/app/templates/agenda/event_detail.html b/app/templates/agenda/event_detail.html index d267aae3..767ea5f9 100644 --- a/app/templates/agenda/event_detail.html +++ b/app/templates/agenda/event_detail.html @@ -71,10 +71,7 @@ {% block event_detail_sharebuttons %} {% set_short_url_for event %} -
- {% trans "Share on Facebook" %} - {% trans "Share on Twitter" %} -
+ {% include "includes/share_buttons.html" %} {% endblock %} {% if event.location %} diff --git a/app/templates/includes/share_buttons.html b/app/templates/includes/share_buttons.html new file mode 100644 index 00000000..7f4c4419 --- /dev/null +++ b/app/templates/includes/share_buttons.html @@ -0,0 +1,8 @@ +{% load i18n %} + +
+ {% trans "Share on Facebook" %} + {% trans "Share on Twitter" %} + {% trans "Share by email" %} + {% trans "Print this page" %} +
\ No newline at end of file