Add allowlist to about/more
parent
9dc6019aa7
commit
edc31ca4a6
|
@ -20,6 +20,8 @@ class AboutController < ApplicationController
|
||||||
@contents = toc_generator.html
|
@contents = toc_generator.html
|
||||||
@table_of_contents = toc_generator.toc
|
@table_of_contents = toc_generator.toc
|
||||||
@blocks = DomainBlock.with_user_facing_limitations.by_severity if display_blocks?
|
@blocks = DomainBlock.with_user_facing_limitations.by_severity if display_blocks?
|
||||||
|
|
||||||
|
@allows = InstanceFilter.new(allowed: true).results
|
||||||
end
|
end
|
||||||
|
|
||||||
def terms; end
|
def terms; end
|
||||||
|
|
|
@ -64,6 +64,12 @@
|
||||||
%p= t('about.unavailable_content_description.suspended')
|
%p= t('about.unavailable_content_description.suspended')
|
||||||
= render partial: 'domain_blocks', locals: { domain_blocks: blocks }
|
= 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
|
.column-4
|
||||||
%ul.table-of-contents
|
%ul.table-of-contents
|
||||||
- @table_of_contents.each do |item|
|
- @table_of_contents.each do |item|
|
||||||
|
@ -74,6 +80,8 @@
|
||||||
%ul
|
%ul
|
||||||
- item.children.each do |sub_item|
|
- item.children.each do |sub_item|
|
||||||
%li= link_to sub_item.title, "##{sub_item.anchor}"
|
%li= link_to sub_item.title, "##{sub_item.anchor}"
|
||||||
|
%li
|
||||||
|
= link_to 'Allowlist', "#allowlist"
|
||||||
|
|
||||||
- if display_blocks? && !@blocks.empty?
|
- if display_blocks? && !@blocks.empty?
|
||||||
%li= link_to t('about.unavailable_content'), '#unavailable-content'
|
%li= link_to t('about.unavailable_content'), '#unavailable-content'
|
||||||
|
|
Loading…
Reference in New Issue