Skip to content
Snippets Groups Projects
Commit 8df7af4a authored by pabois's avatar pabois
Browse files

categories

parent 246c2093
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,7 @@ module Communication::Website::WithDependencies
people += teachers + teachers.map(&:teacher) if has_teachers?
people += administrators + administrators.map(&:administrator) if has_administrators?
people += researchers + researchers.map(&:researcher) if has_researchers?
people += people_in_blocks if has_people_in_blocks?
people.uniq.compact
end
end
......@@ -110,12 +111,11 @@ module Communication::Website::WithDependencies
end
def has_people_in_blocks?
# TODO
people_in_blocks.compact.any?
end
def has_persons?
has_authors? || has_administrators? || has_researchers? || has_teachers?
has_authors? || has_administrators? || has_researchers? || has_teachers? || has_people_in_blocks?
end
def has_administrators?
......
......@@ -2,7 +2,7 @@
title: "<%= @about.name %>"
slug: "<%= @about.slug %>"
<% if @about.parent %>
parent: "<%= about.parent.slug %>"
parent: "<%= @about.parent.slug %>"
<% end %>
position: <%= @about.position %>
<% if @about.best_featured_image.attached? %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment