Sha256: 90b9564bba65906e7f9b0c516925de5cee1e3e93ea41f2455f774d20ae277a0a

Contents?: true

Size: 761 Bytes

Versions: 75

Compression:

Stored size: 761 Bytes

Contents

<% yield p = np %>

<% p.helpers do
  def account_controller_name_with_namespace
    params[:controller].gsub(/^account\//, '')
  end
end %>

<%
# don't add controller-specific actions in this file. instead, include them right below where this partial is
# included. see `app/views/account/teams/_breadcrumbs.html.erb` for an example.
%>

<% if p.account_controller_name_with_namespace == only_for %>
  <% label = if action_name == 'edit'
    ot("#{p.account_controller_name_with_namespace}.breadcrumbs.edit") || t('breadcrumbs.actions.edit')
  elsif action_name == 'new'
    ot("#{p.account_controller_name_with_namespace}.breadcrumbs.new") || t('breadcrumbs.actions.new')
  end %>

  <%= render 'account/shared/breadcrumb', label: label if label %>
<% end %>

Version data entries

75 entries across 75 versions & 5 rubygems

Version Path
bullet_train-themes-light-1.0.52 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.51 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.50 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.49 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.48 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.47 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.43 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.44 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.42 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.41 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.40 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.38 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.37 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.36 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.35 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.34 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.33 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.32 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.0.30 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-tester-1.0.1 app/views/themes/tester/breadcrumbs/_actions.html.erb