diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb index b087c317f..a6535b6c9 100644 --- a/app/views/projects/index.html.erb +++ b/app/views/projects/index.html.erb @@ -99,6 +99,9 @@

<%=t 'projects.index.no_teams.title' %>

<%=t 'projects.index.no_teams.text' %>

+

+ <%= link_to t('projects.index.no_teams.btn'), teams_path, class: 'btn btn-primary' %> +

<% else %> diff --git a/app/views/protocols/index.html.erb b/app/views/protocols/index.html.erb index 1b6feec99..e23afb205 100644 --- a/app/views/protocols/index.html.erb +++ b/app/views/protocols/index.html.erb @@ -116,6 +116,9 @@

<%=t 'protocols.index.no_teams.title' %>

<%=t 'protocols.index.no_teams.text' %>

+

+ <%= link_to t('protocols.index.no_teams.btn'), teams_path, class: 'btn btn-primary' %> +

<% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index f256d6a64..6ffc9eed4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -220,7 +220,8 @@ en: contact_admins: "To invite additional users to team %{team}, contact its administrator/s." no_teams: title: "Your dashboard is empty!" - text: "Currently you are not assigned to any Team. For more information please contact one of your administrators." + text: "It seems you're not a member of any team. See team management to sort it out." + btn: "Manage teams" create: success_flash: "Project %{name} successfully created." update: @@ -1259,7 +1260,8 @@ en: restore: "Restore" no_teams: title: "Your dashboard is empty!" - text: "Currently you are not assigned to any Team. For more information please contact one of your administrators." + text: "It seems you're not a member of any team. See team management to sort it out." + btn: "Manage teams" make_private_unauthorized: "You do not have permission to make selected protocols private." make_private_error: "Error occured while making selected protocols private." publish_unauthorized: "You do not have permission to publish selected protocols."