diff --git a/app/views/hooks/proto_plugin/_view_layouts_base_sidebar.html.erb b/app/views/hooks/proto_plugin/_view_layouts_base_sidebar.html.erb index 5a72023..106471e 100644 --- a/app/views/hooks/proto_plugin/_view_layouts_base_sidebar.html.erb +++ b/app/views/hooks/proto_plugin/_view_layouts_base_sidebar.html.erb @@ -1,3 +1 @@ -
- :view_layouts_base_sidebar hook -
+<%# Optional sidebar content for proto_plugin; hook is wired in OpenProject::ProtoPlugin::Hooks. %> diff --git a/app/views/kittens/index.html.erb b/app/views/kittens/index.html.erb index 84514ad..e5b2e69 100644 --- a/app/views/kittens/index.html.erb +++ b/app/views/kittens/index.html.erb @@ -1,14 +1,34 @@ <% html_title t(:label_kittens) %> +<% breadcrumb_items = + if @project + [{ href: project_overview_path(@project), text: @project.name }, t(:label_kittens)] + else + [t(:label_kittens)] + end +%> -<%= toolbar(title: t(:label_kittens)) do %> - <% if (@project.present? && current_user.allowed_in_project?(:manage_kittens, @project)) || (@project.nil? && current_user.allowed_in_any_project?(:manage_kittens)) %> -