Skip to content

Commit

Permalink
Improve message display
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Sep 28, 2023
1 parent 9d83c4e commit ae3f4c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@
"https://docs.google.com/forms/d/e/1FAIpQLScx1k-UJ-962_rSgPJGabc327gGjFUho6ypgcZHCubuwTl7Lg/viewform"
)
TALLY_NPS_FORM_ID = env.str("TALLY_NPS_FORM_ID", "")
APPROCH_USER_ID = env.str("APPROCH_USER_ID", "")
APPROCH_USER_ID = env.int("APPROCH_USER_ID", 0)


# Misc
Expand Down
10 changes: 8 additions & 2 deletions lemarche/templates/tenders/_detail_contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,24 @@ <h2>
</div>
{% endif %}
</div>

{% if tender.can_display_contact_external_link %}
<div class="row">
<div class="col-12">
{% if tender.author.id == APPROCH_USER_ID %}
<p>
Ce projet d'achat a été publié sur la plateforme <strong>APProch</strong>.
<i class="ri-lightbulb-line ri-lg mr-1"></i>Ce projet d'achat a été publié sur la plateforme <strong>APProch</strong>.
<br />
Pour plus d'informations, pour être informé des mises à jour sur ce projet
ou pour indiquer votre intérêt auprès de l'acheteur public, cliquez sur le lien ci-dessous.
</p>
{% endif %}
<a href="{{ tender.external_link }}" target="_blank" class="btn btn-outline-primary float-right">
{{ tender.external_link_title|safe }}
{% if tender.author.id == APPROCH_USER_ID %}
Ça m'intéresse
{% else %}
{{ tender.external_link_title|safe }}
{% endif %}
<i class="ri-external-link-line" aria-hidden="true"></i>
</a>
</div>
Expand Down

0 comments on commit ae3f4c5

Please sign in to comment.