Skip to content

Commit

Permalink
✨ use new share buttons on request sent page
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Jul 25, 2024
1 parent a4e0583 commit 99c9d61
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions froide/foirequest/templates/foirequest/sent.html
Original file line number Diff line number Diff line change
@@ -1,14 1,16 @@
{% extends 'foirequest/base.html' %}
{% extends "foirequest/base.html" %}
{% load i18n %}
{% load static %}
{% block title %}
{% trans "Your request has been sent" %}
{% endblock %}
{% endblock title %}
{% block body %}
<div class="container">
<div class="row mt-5 justify-content-center">
<div class="col-6 col-md-3">
<img src="{% static 'img/onboarding/request-sent.svg' %}"
width="280"
height="280"
alt=""
class="w-100">
</div>
Expand All @@ -26,13 28,13 @@ <h2 class="my-3">
{% if foirequest %}
<p class="mb-0">{% trans "We will send you an email when you receive a reply from the public body." %}</p>
<p class="mt-1">
<a href="{{ url }}" class="fw-bold">{% trans "view your request" %}</a>
<a href="{{ url }}">{% trans "view your request" %}</a>
</p>
{% endif %}
{% if foiproject %}
<p class="mb-0">{% trans "The requests are being sent out now." %}</p>
<p class="mt-0">
<a href="{{ url }}" class="fw-bold">{% trans "view your project" %}</a>
<a href="{{ url }}">{% trans "view your project" %}</a>
</p>
{% endif %}
</div>
Expand All @@ -45,22 47,14 @@ <h2 class="my-3">
{% trans "Share your request with others!" %}
{% endif %}
</p>
<p class="mt-1">
<a href="https://twitter.com/share?url={{ share_url | urlencode }}"
class="fw-bold">
<i class="fa fa-twitter me-1"></i>
{% trans "Tweet request" %}
</a>
<a href="https://www.facebook.com/share.php?u={{ share_url | urlencode }}"
class="fw-bold ms-3">
<i class="fa fa-facebook me-1"></i>
{% trans "Share request" %}
</a>
</p>
{% trans "I made an #FOI request:" as social_text %}
{% trans "Copy short link" as copy_text %}
{% include "snippets/share_buttons.html" with text=social_text links=True url=share_url copy_text=copy_text %}
</div>
{% endif %}
{% block foirequest_sent_footer %}{% endblock %}
{% block foirequest_sent_footer %}
{% endblock foirequest_sent_footer %}
</div>
</div>
</div>
{% endblock %}
{% endblock body %}

0 comments on commit 99c9d61

Please sign in to comment.