scinote-web/app/views/protocols/_breadcrumbs.html.erb
2016-10-17 15:10:26 +02:00

14 lines
577 B
Text

<ol class="breadcrumb breadcrumb-protocols-manager">
<% if action_name == "index" %>
<li class="active"><%= t("protocols.nav.breadcrumbs.manager") %></li>
<li class="disabled"><%= current_organization.name %></li>
<% else %>
<li><%= link_to t("protocols.nav.breadcrumbs.manager"), protocols_path(organization: current_organization, type: type) %></li>
<li class="active"><%= current_organization.name %></li>
<% end %>
<% if action_name == "edit" %>
<li class="active">
<%= t("protocols.nav.breadcrumbs.edit") %>
</li>
<% end %>
</ol>