From 00e47e0ebb40d682ca57454519a8388d47776c40 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 27 Dec 2023 14:38:37 -0300 Subject: [PATCH] profile: add link to unregister if defined This is used for DebConf and MiniDebConfs. --- .../users/templates/wafer.users/snippets/profile_25-menu.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wafer/users/templates/wafer.users/snippets/profile_25-menu.html b/wafer/users/templates/wafer.users/snippets/profile_25-menu.html index 1e50a998..a0ee885a 100644 --- a/wafer/users/templates/wafer.users/snippets/profile_25-menu.html +++ b/wafer/users/templates/wafer.users/snippets/profile_25-menu.html @@ -11,10 +11,14 @@ {% endif %} {% if WAFER_REGISTRATION_MODE == 'custom' %} {% url 'register' as register_url %} + {% url 'unregister' as unregister_url %} {% endif %} {% if register_url %}
  • {% if profile.is_registered %}{% trans 'Update registration' context "conference" %}{% else %}{% trans 'Register' context "conference" %}{% endif %}
  • {% endif %} + {% if unregister_url and profile.is_registered %} +
  • {% trans 'Unregister' context "conference" %}
  • + {% endif %} {% endif %} {% if WAFER_TALKS_OPEN %}
  • {% trans 'Submit Talk Proposal' %}