mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 08:41:42 +00:00
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
|
||||
# sitio pueden acceder al panel.
|
||||
def require_usuarie
|
||||
unless find_site.usuarie? current_usuarie
|
||||
site = find_site
|
||||
unless site.usuarie? current_usuarie
|
||||
redirect_to root_path
|
||||
return
|
||||
end
|
||||
|
@ -75,6 +76,7 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
breadcrumb current_usuarie.email, main_app.edit_usuarie_registration_path
|
||||
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
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue