Skip to content

Commit

Permalink
Merge pull request #696 from terceiro/unregister
Browse files Browse the repository at this point in the history
profile: add link to unregister if defined
  • Loading branch information
stefanor authored Dec 27, 2023
2 parents 22d13f8 + 00e47e0 commit f91618c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@
{% endif %}
{% if WAFER_REGISTRATION_MODE == 'custom' %}
{% url 'register' as register_url %}
{% url 'unregister' as unregister_url %}
{% endif %}
{% if register_url %}
<li><a href="{{ register_url }}" class="btn btn-secondary">{% if profile.is_registered %}{% trans 'Update registration' context "conference" %}{% else %}{% trans 'Register' context "conference" %}{% endif %}</a></li>
{% endif %}
{% if unregister_url and profile.is_registered %}
<li><a href="{{ unregister_url }}" class="btn btn-secondary">{% trans 'Unregister' context "conference" %}</a></li>
{% endif %}
{% endif %}
{% if WAFER_TALKS_OPEN %}
<li><a href="{% url 'wafer_talk_submit' %}" class="btn btn-secondary">{% trans 'Submit Talk Proposal' %}</a></li>
Expand Down

0 comments on commit f91618c

Please sign in to comment.