Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Update app/components/admin/design_header_component.html.erb

Behrokh Satarnejadef60a0fe9359
diff --git a/app/components/admin/design_header_component.html.erb b/app/components/admin/design_header_component.html.erb
index ba5005415e6..033fe8a5c9b 100644
--- a/app/components/admin/design_header_component.html.erb
+++ b/app/components/admin/design_header_component.html.erb
@@ -34,12 +34,15 @@ See COPYRIGHT and LICENSE files for more details.
header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },
t(:label_custom_style)])
header.with_description { t(:label_custom_style_description) }
- header.with_tab_nav(label: nil) do |tab_nav|
- @tabs.each do |tab|
- tab_nav.with_tab(selected: selected_tab(@tabs) == tab, href: tab[:path]) do |t|
- t.with_text { tab[:label] }
+
+ if @tabs.present?
+ header.with_tab_nav(label: nil) do |tab_nav|
+ @tabs.each do |tab|
+ tab_nav.with_tab(selected: selected_tab(@tabs) == tab, href: tab[:path]) do |t|
+ t.with_text { tab[:label] }
+ end
end
end
- end if @tabs.present?
+ end
end
%>