From ca823532e04f4236fd65abd52a3e5bf75b81f7dc Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Fri, 14 Dec 2018 14:28:44 +0100 Subject: [PATCH] pinterest button --- rowers/templates/show_graph.html | 7 +++++++ rowers/templates/virtualevent.html | 19 +++++++++++-------- templates/newbase.html | 6 ++++++ 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/rowers/templates/show_graph.html b/rowers/templates/show_graph.html index f4ac2a77..3daeff86 100644 --- a/rowers/templates/show_graph.html +++ b/rowers/templates/show_graph.html @@ -41,6 +41,13 @@

+

+ + + + +

  • {% if user.is_authenticated and user == rower.user %} diff --git a/rowers/templates/virtualevent.html b/rowers/templates/virtualevent.html index 5698a83e..042f8cc6 100644 --- a/rowers/templates/virtualevent.html +++ b/rowers/templates/virtualevent.html @@ -35,16 +35,19 @@ Share -

    -

    -

    -{% else %} -data-text="@rowsandall #rowingdata Participate in Indoor Rowing virtual race '{{ race.name }}'">Tweet + data-url="{{ request.build_absolute_uri }}" + {% if race.sessiontype == 'race' %} + data-text="@rowsandall #rowingdata Participate in virtual race '{{ race.name }}'">Tweet + {% else %} + data-text="@rowsandall #rowingdata Participate in Indoor Rowing virtual race '{{ race.name }}'">Tweet {% endif %} +

    + +

    diff --git a/templates/newbase.html b/templates/newbase.html index 755e5667..00ddebf6 100644 --- a/templates/newbase.html +++ b/templates/newbase.html @@ -95,6 +95,12 @@ +