remove changes on user has no teams view

This commit is contained in:
Mojca Lorber 2017-02-21 15:12:58 +01:00
parent 90864a45a0
commit 0fd41e8a6d
3 changed files with 10 additions and 2 deletions

View file

@ -99,6 +99,9 @@
<div class="jumbotron">
<h2><%=t 'projects.index.no_teams.title' %></h2>
<p><%=t 'projects.index.no_teams.text' %></p>
<p>
<%= link_to t('projects.index.no_teams.btn'), teams_path, class: 'btn btn-primary' %>
</p>
</div>
<% else %>
<h2 class="page-header"><%= current_team.name %></h2>

View file

@ -116,6 +116,9 @@
<div class="jumbotron">
<h2><%=t 'protocols.index.no_teams.title' %></h2>
<p><%=t 'protocols.index.no_teams.text' %></p>
<p>
<%= link_to t('protocols.index.no_teams.btn'), teams_path, class: 'btn btn-primary' %>
</p>
</div>
<% end %>

View file

@ -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 <strong>%{name}</strong> 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."