Add allowlist to about/more
parent
9dc6019aa7
commit
edc31ca4a6
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue