Ready to merge
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
- content_for :banner do
|
||||
- image = image_url(image_file || 'empty-racks.jpg')
|
||||
- style = nil
|
||||
- cover = nil
|
||||
- figure = nil
|
||||
- if capable_of(:css_mixblendmode) || ENV['RAILS_ENV'] == 'test'
|
||||
- cover = "<div class=\"cover\" style=\"background-image: url(#{image})\"></div>"
|
||||
- elsif capable_of(:svg)
|
||||
- banner_image = 'application/banner_image.svg'
|
||||
- else
|
||||
- style = "background-image: url(#{image})"
|
||||
#header-title.short{style: style}
|
||||
= (render banner_image, {:image => image}) if banner_image
|
||||
= cover.html_safe if cover
|
||||
%h1=_(@page_title || "page_titles.#{page_group.to_s}.#{page_key.to_s}")
|
||||
@@ -0,0 +1,12 @@
|
||||
.policy-agreement
|
||||
- if @is_policy_page
|
||||
%h2=_'articles.policy.headings.The_Agreement'
|
||||
- else
|
||||
%h3=_'articles.policy.headings.The_Agreement'
|
||||
%ul
|
||||
- [:commitment, :respect, :empowerment, :accessible, :peaceful, :spaces, :hearing, :intent, :open_minds, :learning].each do |term|
|
||||
%li=_"articles.policy.term.#{term.to_s}", :s, 2
|
||||
%h3=_'articles.policy.headings.Why','Why have a Safer Space Agreement?'
|
||||
%p=_'articles.policy.paragraphs.Why', :p
|
||||
%h3=_'articles.policy.headings.How','How is the policy enforced?'
|
||||
%p=_'articles.policy.paragraphs.How', :p
|
||||
Reference in New Issue
Block a user