Sha256: c165ab150a61c7b494b80771270cb77dde358726571255173037ec9f846be6cb

Contents?: true

Size: 765 Bytes

Versions: 122

Compression:

Stored size: 765 Bytes

Contents

<% partial.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 partial.account_controller_name_with_namespace == only_for %>
  <% label = if action_name == 'edit'
    ot("#{partial.account_controller_name_with_namespace}.breadcrumbs.edit") || t('breadcrumbs.actions.edit')
  elsif action_name == 'new'
    ot("#{partial.account_controller_name_with_namespace}.breadcrumbs.new") || t('breadcrumbs.actions.new')
  end %>

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

Version data entries

122 entries across 122 versions & 1 rubygems

Version Path
bullet_train-themes-light-1.14.0 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.13.0 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.12.3 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.12.2 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.12.1 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.12.0 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.11.0 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.10.0 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.9.0 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.8.5 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.8.4 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.8.3 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.8.2 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.8.1 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.8.0 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.7.23 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.7.22 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.7.21 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.7.20 app/views/themes/light/breadcrumbs/_actions.html.erb
bullet_train-themes-light-1.7.19 app/views/themes/light/breadcrumbs/_actions.html.erb