2019-11-27 14:30:30 +01:00
|
|
|
module PrivacyHelper
|
2019-12-06 19:54:58 +01:00
|
|
|
|
2019-12-10 21:34:33 +01:00
|
|
|
def all_privacy_items
|
|
|
|
@items.find_all('/about/privacy/*')
|
2019-12-06 19:54:58 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def privacy_projects(status)
|
2019-12-10 21:34:33 +01:00
|
|
|
all_privacy_items
|
2019-11-27 14:30:30 +01:00
|
|
|
.select {|project| project[:status] == status}
|
|
|
|
.sort_by {|project| project[:name]}
|
|
|
|
end
|
|
|
|
end
|