scinote-web/app/views/users/settings/organizations/_breadcrumbs.html.erb
2016-02-12 16:52:43 +01:00

21 lines
No EOL
637 B
Text

<ol class="breadcrumb breadcrumb-organizations">
<% if action_name == "organizations" %>
<li class="active">
<%= t("users.settings.organizations.breadcrumbs.all") %>
</li>
<% else %>
<li>
<%= link_to t("users.settings.organizations.breadcrumbs.all"), organizations_path %>
</li>
<% end %>
<% if action_name == "organization" %>
<li class="active">
<%= @org.name %>
</li>
<% elsif action_name == "new_organization" || action_name == "create_organization" %>
<li class="active">
<%= t("users.settings.organizations.breadcrumbs.new_organization") %>
</li>
<% end %>
</ol>