diff --git a/app/helpers/orbit_backend_helper.rb b/app/helpers/orbit_backend_helper.rb index 3116d136..e271845e 100644 --- a/app/helpers/orbit_backend_helper.rb +++ b/app/helpers/orbit_backend_helper.rb @@ -399,4 +399,37 @@ module OrbitBackendHelper res.html_safe end + def site_breadcrumb + res = '' + divider = "/" + res << "
  • Dashboard#{divider}
  • " + site = Site.first + case controller.controller_name + when 'sites' + res << "
  • Site Settings#{divider}
  • " + case controller.action_name + when 'sitemap' + res << "
  • #{t(:sitemap)}
  • " + when 'responsive_setting' + res << "
  • #{t(:mobile_setting) }
  • " + when 'mail_setting' + res << "
  • #{t(:mail_setting)}
  • " + when 'preference' + res << "
  • #{t(:preference)}
  • " + when 'search_engine' + res << "
  • #{t(:search_engine)}
  • " + when 'site_info' + res << "
  • #{t(:site_info)}
  • " + end + when 'items' + res << "
  • Structure#{divider}
  • " + res << "
  • #{t(:items)}
  • " + when 'module_stores' + res << "
  • #{t(:modules)}
  • " + when 'designs' + res << "
  • #{t(:templates)}
  • " + end + res.html_safe + end + end \ No newline at end of file diff --git a/app/views/layouts/back_end.html.erb b/app/views/layouts/back_end.html.erb index 2ad66433..100fe3c6 100644 --- a/app/views/layouts/back_end.html.erb +++ b/app/views/layouts/back_end.html.erb @@ -27,6 +27,7 @@ <% if @module_app.present?%> <%= back_end_breadcrumb %> <%else%> + <%= site_breadcrumb %> <%end%> <%= yield :right_nav %> diff --git a/app/views/layouts/structure.html.erb b/app/views/layouts/structure.html.erb index 2724f9fc..59f95e2d 100644 --- a/app/views/layouts/structure.html.erb +++ b/app/views/layouts/structure.html.erb @@ -19,7 +19,7 @@ <% unless @no_header %>
    <%= yield :right_nav %>