From 98be1ae0ff6d567513e5221be78e04cbdaedb690 Mon Sep 17 00:00:00 2001
From: artoscinote <85488244+artoscinote@users.noreply.github.com>
Date: Thu, 28 Oct 2021 10:45:34 +0200
Subject: [PATCH] Added link to task access to task screen [SCI-6157] (#3615)
---
.../my_modules/_module_header_details_popover.html.erb | 9 +++++++++
config/locales/en.yml | 1 +
2 files changed, 10 insertions(+)
diff --git a/app/views/my_modules/_module_header_details_popover.html.erb b/app/views/my_modules/_module_header_details_popover.html.erb
index ec48d2bb6..20fa78bc7 100644
--- a/app/views/my_modules/_module_header_details_popover.html.erb
+++ b/app/views/my_modules/_module_header_details_popover.html.erb
@@ -47,4 +47,13 @@
<% end %>
+
+
+ <%= link_to t('my_modules.details.info_popover.view_task_access'),
+ can_manage_my_module_users?(@my_module) ?
+ edit_access_permissions_project_experiment_my_module_path(@my_module.experiment.project, @my_module.experiment, @my_module) :
+ access_permissions_project_experiment_my_module_path(@my_module.experiment.project, @my_module.experiment, @my_module),
+ data: { action: 'remote-modal'} %>
+
+
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 633ca3d56..efc362345 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -790,6 +790,7 @@ en:
modified_label: "Modified"
modified_value: "%{date} by %{full_name}"
modified_value_without_user: "%{date}"
+ view_task_access: "View task access"
start_date: "Start date:"
no_start_date_placeholder: "+ Add starting date"
due_date: "Due date:"