diff --git a/compensation/templates/compensation/detail/compensation/view.html b/compensation/templates/compensation/detail/compensation/view.html index 5a125cc..759f760 100644 --- a/compensation/templates/compensation/detail/compensation/view.html +++ b/compensation/templates/compensation/detail/compensation/view.html @@ -123,9 +123,16 @@ {% include 'user/includes/team_data_modal_button.html' %} {% endfor %}
- {% for user in obj.intervention.users.all %} - {% include 'user/includes/contact_modal_button.html' %} - {% endfor %} + {% if has_access %} + {% for user in obj.users.all %} + {% include 'user/includes/contact_modal_button.html' %} + {% endfor %} + {% else %} + + {% fa5_icon 'eye-slash' %} + {{obj.users.count}} {% trans 'other users' %} + + {% endif %} diff --git a/compensation/templates/compensation/detail/eco_account/view.html b/compensation/templates/compensation/detail/eco_account/view.html index 432315a..c5bd2c5 100644 --- a/compensation/templates/compensation/detail/eco_account/view.html +++ b/compensation/templates/compensation/detail/eco_account/view.html @@ -101,9 +101,16 @@ {% include 'user/includes/team_data_modal_button.html' %} {% endfor %}
- {% for user in obj.users.all %} - {% include 'user/includes/contact_modal_button.html' %} - {% endfor %} + {% if has_access %} + {% for user in obj.users.all %} + {% include 'user/includes/contact_modal_button.html' %} + {% endfor %} + {% else %} + + {% fa5_icon 'eye-slash' %} + {{obj.users.count}} {% trans 'other users' %} + + {% endif %} diff --git a/ema/templates/ema/detail/view.html b/ema/templates/ema/detail/view.html index 16f3137..3e0d701 100644 --- a/ema/templates/ema/detail/view.html +++ b/ema/templates/ema/detail/view.html @@ -87,9 +87,16 @@ {% include 'user/includes/team_data_modal_button.html' %} {% endfor %}
- {% for user in obj.user.all %} - {% include 'user/includes/contact_modal_button.html' %} - {% endfor %} + {% if has_access %} + {% for user in obj.users.all %} + {% include 'user/includes/contact_modal_button.html' %} + {% endfor %} + {% else %} + + {% fa5_icon 'eye-slash' %} + {{obj.users.count}} {% trans 'other users' %} + + {% endif %} diff --git a/intervention/templates/intervention/detail/view.html b/intervention/templates/intervention/detail/view.html index 1a596bb..8a7799d 100644 --- a/intervention/templates/intervention/detail/view.html +++ b/intervention/templates/intervention/detail/view.html @@ -129,9 +129,16 @@ {% include 'user/includes/team_data_modal_button.html' %} {% endfor %}
- {% for user in obj.users.all %} - {% include 'user/includes/contact_modal_button.html' %} - {% endfor %} + {% if has_access %} + {% for user in obj.users.all %} + {% include 'user/includes/contact_modal_button.html' %} + {% endfor %} + {% else %} + + {% fa5_icon 'eye-slash' %} + {{obj.users.count}} {% trans 'other users' %} + + {% endif %} diff --git a/locale/de/LC_MESSAGES/django.mo b/locale/de/LC_MESSAGES/django.mo index 176b3fe..7072e4c 100644 Binary files a/locale/de/LC_MESSAGES/django.mo and b/locale/de/LC_MESSAGES/django.mo differ diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po index 6da567e..c62c2bd 100644 --- a/locale/de/LC_MESSAGES/django.po +++ b/locale/de/LC_MESSAGES/django.po @@ -26,7 +26,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-21 14:11+0200\n" +"POT-Creation-Date: 2022-06-27 14:23+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1549,6 +1549,18 @@ msgstr "Eingriffsverursacher" msgid "Exists" msgstr "vorhanden" +#: intervention/templates/intervention/detail/view.html:138 +msgid "" +"The data must be shared with you, if you want to see which other users have " +"shared access as well." +msgstr "" +"Die Daten müssen für Sie freigegeben sein, damit Sie sehen können welche weiteren Nutzern " +"ebenfalls Zugriff hierauf haben." + +#: intervention/templates/intervention/detail/view.html:140 +msgid "other users" +msgstr "weitere Nutzer" + #: intervention/templates/intervention/report/report.html:58 msgid "Deductions of eco-accounts" msgstr "Abbuchungen von Ökokonten" @@ -1871,7 +1883,7 @@ msgstr "In Zwischenablage kopiert" #: konova/templates/konova/widgets/tree/checkbox/checkbox-tree-select.html:4 #: konova/templates/konova/widgets/tree/radio/radio-tree-select.html:4 -#: templates/generic_index.html:56 +#: templates/generic_index.html:58 msgid "Search" msgstr "Suchen" @@ -2463,31 +2475,31 @@ msgstr "" msgid "Fields with * are required." msgstr "* sind Pflichtfelder." -#: templates/generic_index.html:39 +#: templates/generic_index.html:41 msgid "New entry" msgstr "Neuer Eintrag" -#: templates/generic_index.html:41 user/templates/user/team/index.html:22 +#: templates/generic_index.html:43 user/templates/user/team/index.html:22 msgid "New" msgstr "Neu" -#: templates/generic_index.html:56 +#: templates/generic_index.html:58 msgid "Search for keywords" msgstr "Nach Schlagwörtern suchen" -#: templates/generic_index.html:57 +#: templates/generic_index.html:59 msgid "Start search" msgstr "Starte Suche" -#: templates/generic_index.html:69 +#: templates/generic_index.html:71 msgid "Results per page" msgstr "Treffer pro Seite" -#: templates/generic_index.html:93 templates/generic_index.html:118 +#: templates/generic_index.html:95 templates/generic_index.html:120 msgid "Filter" msgstr "" -#: templates/generic_index.html:120 +#: templates/generic_index.html:122 msgid "Apply filter" msgstr "Filter anwenden"