scinote-web/app/views/protocols/_breadcrumbs.html.erb
2017-05-22 17:58:42 +02:00

14 lines
597 B
Text

<ol class="breadcrumb breadcrumb-protocols-manager">
<% 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>
<% 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>
<% end %>
<% if action_name == "edit" %>
<li class="active">
<%= t("protocols.nav.breadcrumbs.edit") %>
</li>
<% end %>
</ol>