|
| 1 | +<% content_for :body_class do %> |
| 2 | + in-project |
| 3 | +<% end %> |
| 4 | + |
| 5 | +<% content_for :sub_nav do %> |
| 6 | + <%= render 'layouts/hera/navbar/projects/project_nav' %> |
| 7 | +<% end %> |
| 8 | + |
| 9 | +<% content_for :node_sidebar do %> |
| 10 | + <%= render 'layouts/hera/sidebar' %> |
| 11 | +<% end %> |
| 12 | + |
| 13 | +<% content_for :poller do %> |
| 14 | + <%= render 'activities/poller' %> |
| 15 | +<% end %> |
| 16 | + |
| 17 | +<% content_for :instance_utility_nav, '' %> |
| 18 | + |
| 19 | +<% content_for :modals do %> |
| 20 | + <%= render 'layouts/hera/modals' %> |
| 21 | + <%= render partial: 'nodes/modals/add_node', locals: { type: :branch } %> |
| 22 | + |
| 23 | + <% if content_for?(:board_rename_modal) %> |
| 24 | + <%= yield(:board_rename_modal) %> |
| 25 | + <% end %> |
| 26 | + <% if content_for?(:list_new_modal) %> |
| 27 | + <%= yield(:list_new_modal) %> |
| 28 | + <% end %> |
| 29 | + <% if content_for?(:list_rename_modal) %> |
| 30 | + <%= yield(:list_rename_modal) %> |
| 31 | + <% end %> |
| 32 | + |
| 33 | + <% if content_for?(:bulk_update_modal) %> |
| 34 | + <%= yield(:bulk_update_modal) %> |
| 35 | + <% end %> |
| 36 | + |
| 37 | + <% if content_for?(:diff_modal) %> |
| 38 | + <%= yield(:diff_modal) %> |
| 39 | + <% end %> |
| 40 | + |
| 41 | + <% if controller_name == 'boards' || controller_name == 'projects' %> |
| 42 | + <%= render 'boards/modals/new_board_form' unless request.xhr? %> |
| 43 | + <% end %> |
| 44 | + |
| 45 | + <% if @node && @node.label != 'Methodologies'%> |
| 46 | + <%= render partial: 'nodes/modals/add_node', locals: { type: :child } %> |
| 47 | + <%= render partial: 'nodes/modals/delete' %> |
| 48 | + <%= render partial: 'nodes/modals/merge' %> |
| 49 | + <%= render partial: 'nodes/modals/move' %> |
| 50 | + <%= render partial: 'nodes/modals/rename' %> |
| 51 | + <% end %> |
| 52 | + |
| 53 | + <% if controller_path == 'evidence' %> |
| 54 | + <%= render partial: 'evidence/modals/move' %> |
| 55 | + <% end %> |
| 56 | + |
| 57 | + <% if controller_name == 'notes'%> |
| 58 | + <%= render partial: 'notes/modals/move' %> |
| 59 | + <% end %> |
| 60 | + |
| 61 | + <% if controller_name == 'styles_hera' %> |
| 62 | + <%= render partial: 'styles_hera/modal' %> |
| 63 | + <% end %> |
| 64 | + |
| 65 | + <% if %w[tags issues].include?(controller_name) %> |
| 66 | + <%= render partial: 'tags/modals/form' %> |
| 67 | + <% end %> |
| 68 | +<% end %> |
| 69 | + |
| 70 | +<% content_for :search do %> |
| 71 | + <li class="nav-item d-lg-none"> |
| 72 | + <%= render "layouts/hera/navbar/projects/search" %> |
| 73 | + </li> |
| 74 | +<% end %> |
| 75 | + |
| 76 | +<% content_for :notifications do %> |
| 77 | + <%= link_to main_app.project_notifications_path(current_project), |
| 78 | + class: 'nav-link dropdown-toggle no-caret', |
| 79 | + id: 'notifications', |
| 80 | + data: { |
| 81 | + bs_toggle: 'dropdown', |
| 82 | + behavior: 'notifications-dropdown close-collapse', |
| 83 | + project_id: current_project.id |
| 84 | + }, |
| 85 | + role: 'button', |
| 86 | + 'aria-expanded': 'false' do %> |
| 87 | + <i class="notifications-bell fa-solid fa-bell d-none d-lg-inline" title="Notifications"><i class="notifications-dot d-none" data-behavior="notifications-dot"></i></i> |
| 88 | + <span class="d-inline d-lg-none">Notifications</span> |
| 89 | + <% end %> |
| 90 | +<% end %> |
| 91 | + |
| 92 | +<%= render template: "layouts/hera" %> |
0 commit comments