Hide action name for Index and Show routes
This commit is contained in:
@ -26,7 +26,8 @@
|
||||
- active_action = t("breadcrumbs.#{controller_name}.#{params[:action]}")
|
||||
|
||||
|
||||
- title = "#{active_action} - #{application_name}"
|
||||
- title = "#{application_name}"
|
||||
- title = "#{active_action} - #{title}" unless %w[index show].include? params[:action]
|
||||
- content_for :breadcrumbs do
|
||||
.container.mb-4
|
||||
ul.breadcrumb.bg-body-secondary.px-3.py-2
|
||||
|
Reference in New Issue
Block a user