From 79738749c60e3cd15dd61c1932d2302c3c922cc0 Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Fri, 24 Jan 2025 23:50:48 +0100 Subject: [PATCH] =?UTF-8?q?DSN:=20Odkazy=20z=20orgovsk=C3=A9=20spr=C3=A1vy?= =?UTF-8?q?=20u=C5=BEivatel=C5=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mo/web/templates/org_org.html | 3 +++ mo/web/templates/org_user.html | 3 +++ mo/web/templates/org_user_edit.html | 6 +++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/mo/web/templates/org_org.html b/mo/web/templates/org_org.html index beb75788..b2b96baa 100644 --- a/mo/web/templates/org_org.html +++ b/mo/web/templates/org_org.html @@ -7,6 +7,9 @@ <tr><td>Jméno:<td>{{ user.first_name }} <tr><td>Příjmení:<td>{{ user.last_name }} <tr><td>E-mail:<td>{{ user.email|mailto }} + {% if user.dsn %} + <a class="btn btn-xs btn-danger" href="{{ url_for('org_org_dsn', user_id=user.user_id) }}">nedoručitelný</a> + {% endif %} {% if user.is_admin %}<tr><td>Správce:<td>ano{% endif %} {% if user.is_org %}<tr><td>Organizátor:<td>ano{% endif %} <tr><td>Účet založen:<td>{{ user.created_at|timeformat }} diff --git a/mo/web/templates/org_user.html b/mo/web/templates/org_user.html index 313a2569..30121148 100644 --- a/mo/web/templates/org_user.html +++ b/mo/web/templates/org_user.html @@ -7,6 +7,9 @@ <tr><td>Jméno:<td>{{ user.first_name }} <tr><td>Příjmení:<td>{{ user.last_name }} <tr><td>E-mail:<td>{{ user.email|mailto }} + {% if user.dsn %} + <a class="btn btn-xs btn-danger" href="{{ url_for('org_user_dsn', user_id=user.user_id) }}">nedoručitelný</a> + {% endif %} {% if user.is_admin %}<tr><td>Správce:<td>ano{% endif %} {% if user.is_org %}<tr><td>Organizátor:<td>ano{% endif %} <tr><td>Účet založen:<td>{{ user.created_at|timeformat }} diff --git a/mo/web/templates/org_user_edit.html b/mo/web/templates/org_user_edit.html index 4d78b077..529f49da 100644 --- a/mo/web/templates/org_user_edit.html +++ b/mo/web/templates/org_user_edit.html @@ -6,7 +6,11 @@ <table class=data> <tr><td>Jméno:</td><td>{{ user.first_name }}</td></tr> <tr><td>Příjmení:</td><td>{{ user.last_name }}</td></tr> -<tr><td>E-mail:</td><td>{{ user.email|mailto }}</td></tr> +<tr><td>E-mail:</td><td>{{ user.email|mailto }} + {% if user.dsn %} + <a class="btn btn-xs btn-danger" href="{{ url_for('org_user_dsn', user_id=user.user_id) }}">nedoručitelný</a> + {% endif %} + </td></tr> {% if user.is_admin %}<tr><td>Správce:</td><td>ano</td></tr>{% endif %} {% if user.is_org %}<tr><td>Organizátor:</td><td>ano</td></tr>{% endif %} <tr><td>Poznámka:</td><td style="white-space: pre-line;">{{ user.note }}</td></tr> -- GitLab