scinote-web/app/views/users/settings/teams/_breadcrumbs.html.erb

22 lines
578 B
Text
Raw Normal View History

2017-03-29 21:59:51 +08:00
<ol class="breadcrumb breadcrumb-teams" data-hook="breadcrumb-teams">
<% if action_name == "index" %>
2017-01-25 19:01:23 +08:00
<li class="active">
<%= t("users.settings.teams.breadcrumbs.all") %>
</li>
<% else %>
<li>
<%= link_to t("users.settings.teams.breadcrumbs.all"), teams_path %>
</li>
<% end %>
<% if action_name == 'show' %>
2017-01-25 19:01:23 +08:00
<li class="active">
<%= @team.name %>
</li>
<% elsif action_name == 'new' || action_name == 'create' %>
2017-01-25 19:01:23 +08:00
<li class="active">
<%= t('users.settings.teams.breadcrumbs.new_team') %>
</li>
<% end %>
</ol>