Skip to content

Commit

Permalink
Merge pull request #315 from melizeche/feature/givingtuesday_partnership
Browse files Browse the repository at this point in the history
Add changes for the GivingTuesday partnership
  • Loading branch information
melizeche authored Nov 16, 2021
2 parents 58337e9 + 41e681c commit 11ed745
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 6 deletions.
12 changes: 12 additions & 0 deletions locale/es/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -641,3 +641,15 @@ msgstr "Pedidos por día"
#: templates/stats/dashboard.html:66
msgid "Period"
msgstr "Periodo"

#: templates/includes/solved_buttons.html:6
msgid "Did you helped this request? Please tell us!"
msgstr "¿Ayudaste este pedido ¡Contanos por favor!"

#: templates/includes/solved_buttons.html:6
msgid "Contact us via WhatsApp"
msgstr "Avisanos por WhatsApp"

#: templates/includes/solved_buttons.html:6
msgid "Contact us via Twitter"
msgstr "Avisanos por Twitter"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
django~=2.2
django==2.2.24
Pillow==8.3.2
psycopg2-binary==2.8.4
django-leaflet==0.26.0
Expand Down
Binary file added static/img/giving/giving_horizontal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/giving/giving_square.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions templates/footer/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

<div class="column is-three-fifth">
<div class="columns is-mobile is-centered">
<figure class="image is-96x96">
<!-- <a href="{% url 'login'%}?next={{request.path}}">
{#<h6 class="is-full subtitle is-6 has-text-centered is-marginless">Apoya</h6>#}
<img class="is-rounded" src="">
</a> -->
<figure class="image">
<a href="https://undiaparadar.org.py">
<!-- <h6 class="is-full subtitle is-6 has-text-centered is-marginless">Apoya</h6> -->
<img class="is-rounded" src="{% static "img/giving/giving_horizontal.png" %}">
</a>
</figure>
</div>
<div class="columns is-mobile is-centered">
Expand Down
1 change: 1 addition & 0 deletions templates/help_request/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
</a>
{% endif %}
{% endif %}
{% include 'includes/solved_buttons.html'%}
</section>
{% include 'includes/vote_button.html' %}

Expand Down
24 changes: 24 additions & 0 deletions templates/includes/solved_buttons.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% load i18n %}

{% with url=request.build_absolute_uri text=""|add:"Solucioné el pedido de "|add:name users="@Ayudapyorg @UnDiaParaDarPy" %}
<section class="card-content">
<p class="title"> {% trans "Did you helped this request? Please tell us!" %} </p>
<div class="field is-flex">

<p class="control">
<a href="https://wa.me/?text={{text}} {{url}}" target="_blank" class="button is-medium is-success is-outlined">
<span class="icon is-small">
<i class="fab fa-whatsapp"></i>
</span>
<span>{% trans "Contact us via WhatsApp" %}</span>
</a>
<a href="https://twitter.com/share?text={{users}} {{text}}&url={{url}}&hashtags=AyudaPy,UndiaParaDarPy,UndiaParaDar" target="_blank" class="button is-medium is-info is-outlined">
<span class="icon is-small">
<i class="fab fa-twitter"></i>
</span>
<span>{% trans "Contact us via Twitter" %}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
</a>
</p>
</div>
</section >
{% endwith %}

0 comments on commit 11ed745

Please sign in to comment.