change breadcrumbs on protocol managements page

This commit is contained in:
Mojca Lorber 2017-05-22 17:58:42 +02:00
parent 9ae615264d
commit a716a0b1db

View file

@ -1,10 +1,10 @@
<ol class="breadcrumb breadcrumb-protocols-manager"> <ol class="breadcrumb breadcrumb-protocols-manager">
<% if action_name == "index" %> <% if action_name == "index" %>
<li><%= link_to current_team.name, projects_path(team: current_team) %></li>
<li class="active"><%= t("protocols.nav.breadcrumbs.manager") %></li> <li class="active"><%= t("protocols.nav.breadcrumbs.manager") %></li>
<li class="disabled"><%= current_team.name %></li>
<% else %> <% else %>
<li><%= link_to current_team.name, projects_path(team: current_team) %></li>
<li><%= link_to t("protocols.nav.breadcrumbs.manager"), protocols_path(team: current_team, type: type) %></li> <li><%= link_to t("protocols.nav.breadcrumbs.manager"), protocols_path(team: current_team, type: type) %></li>
<li class="active"><%= current_team.name %></li>
<% end %> <% end %>
<% if action_name == "edit" %> <% if action_name == "edit" %>
<li class="active"> <li class="active">