@@ -31,30 +31,21 @@ See COPYRIGHT and LICENSE files for more details.
3131 content_tag("turbo-frame", id: "work-package-wikis-tab-content") do
3232 component_wrapper do
3333 flex_layout(test_selector: "op-work-package-wikis-tab-container") do |container|
34- if providers.empty?
35- container.with_row do
36- render(Primer::Beta::Blankslate.new(border: false)) do |blankslate|
37- blankslate.with_heading(tag: :h2).with_content(t(".blankslate.heading"))
38- blankslate.with_description { t(".blankslate.description") }
39- end
40- end
41- else
42- providers.each do |provider|
43- container.with_row(mb: 3) do
44- render(::Wikis::RelationPageLinksComponent.new(provider, work_package:))
45- end
34+ providers.each do |provider|
35+ container.with_row(mb: 3) do
36+ render(::Wikis::RelationPageLinksComponent.new(provider, work_package:))
4637 end
38+ end
4739
48- if inline_page_links.any?
49- container.with_row(mb: 3) do
50- render(::Wikis::CollapsiblePageLinksComponent.new(inline_page_links, heading: t(".inline_page_links")))
51- end
40+ if inline_page_links.any?
41+ container.with_row(mb: 3) do
42+ render(::Wikis::CollapsiblePageLinksComponent.new(inline_page_links, heading: t(".inline_page_links")))
5243 end
44+ end
5345
54- if referencing_wiki_pages.any?
55- container.with_row do
56- render(::Wikis::CollapsiblePageLinksComponent.new(referencing_wiki_pages, heading: t(".referencing_pages")))
57- end
46+ if referencing_wiki_pages.any?
47+ container.with_row do
48+ render(::Wikis::CollapsiblePageLinksComponent.new(referencing_wiki_pages, heading: t(".referencing_pages")))
5849 end
5950 end
6051 end
0 commit comments