diff --git a/app/controllers/about_controller.rb b/app/controllers/about_controller.rb index 75085d4e9..17972e945 100644 --- a/app/controllers/about_controller.rb +++ b/app/controllers/about_controller.rb @@ -20,6 +20,8 @@ class AboutController < ApplicationController @contents = toc_generator.html @table_of_contents = toc_generator.toc @blocks = DomainBlock.with_user_facing_limitations.by_severity if display_blocks? + + @allows = InstanceFilter.new(allowed: true).results end def terms; end diff --git a/app/views/about/more.html.haml b/app/views/about/more.html.haml index 03be3f423..c361eba66 100644 --- a/app/views/about/more.html.haml +++ b/app/views/about/more.html.haml @@ -64,6 +64,12 @@ %p= t('about.unavailable_content_description.suspended') = render partial: 'domain_blocks', locals: { domain_blocks: blocks } + %h2#allowlist= 'Allowlist' + %ul{ style: 'columns: 3 200px' } + - @allows.each do |site| + %li + = link_to site.domain, 'https://' + site.domain + .column-4 %ul.table-of-contents - @table_of_contents.each do |item| @@ -74,6 +80,8 @@ %ul - item.children.each do |sub_item| %li= link_to sub_item.title, "##{sub_item.anchor}" + %li + = link_to 'Allowlist', "#allowlist" - if display_blocks? && !@blocks.empty? %li= link_to t('about.unavailable_content'), '#unavailable-content'