Agregar el nombre del sitio en la miga de pan
This commit is contained in:
parent
841279f6cf
commit
af67c39dc4
1 changed files with 3 additions and 1 deletions
|
@ -65,7 +65,8 @@ class ApplicationController < ActionController::Base
|
||||||
# Necesario para poder acceder a Blazer. Solo les usuaries de este
|
# Necesario para poder acceder a Blazer. Solo les usuaries de este
|
||||||
# sitio pueden acceder al panel.
|
# sitio pueden acceder al panel.
|
||||||
def require_usuarie
|
def require_usuarie
|
||||||
unless find_site.usuarie? current_usuarie
|
site = find_site
|
||||||
|
unless site.usuarie? current_usuarie
|
||||||
redirect_to root_path
|
redirect_to root_path
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -75,6 +76,7 @@ class ApplicationController < ActionController::Base
|
||||||
|
|
||||||
breadcrumb current_usuarie.email, main_app.edit_usuarie_registration_path
|
breadcrumb current_usuarie.email, main_app.edit_usuarie_registration_path
|
||||||
breadcrumb 'sites.index', main_app.sites_path, match: :exact
|
breadcrumb 'sites.index', main_app.sites_path, match: :exact
|
||||||
|
breadcrumb site.title, main_app.site_path(site), match: :exact
|
||||||
breadcrumb 'stats.index', root_path, match: :exact
|
breadcrumb 'stats.index', root_path, match: :exact
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue