docbrown/app/views/pages/terms.html.erb
Ridhwana 6a7b78e4a0
Allow admins to turn "some" hardcoded pages into a "Page" (#10877)
* feat: allow a page to override the code_of_conduct, terms and privacy page

* feat: let privacy policy also use a partial for its contents like coc and terms

* feat: show the defaults or the pages

* specs: add tests for the overrides

* feat: update some styles and make use crayons buttons

* fix: update order of test items

* spec: fix

* reactor: move this whole section in the if

* feat: updates

* fix: code climate + travis

* more codeeclimate
2020-10-16 12:37:06 -04:00

27 lines
1.4 KiB
Text

<% title("Terms of Use for the #{community_qualified_name}") %>
<%= content_for :page_meta do %>
<link rel="canonical" href="<%= app_url("/terms") %>" />
<meta name="description" content="Terms of Use for the <%= community_qualified_name %>">
<%= meta_keywords_default %>
<meta property="og:type" content="article" />
<meta property="og:url" content="<%= app_url("/terms") %>" />
<meta property="og:title" content="Terms of Use for the <%= community_qualified_name %>" />
<meta property="og:image" content="<%= SiteConfig.main_social_image %>" />
<meta property="og:description" content="<%= community_qualified_name %> is great!" />
<meta property="og:site_name" content="<%= community_qualified_name %>" />
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@<%= SiteConfig.social_media_handles["twitter"] %>">
<meta name="twitter:title" content="Terms of Use for the <%= community_qualified_name %>">
<meta name="twitter:description" content="<%= community_qualified_name %> is great!">
<meta name="twitter:image:src" content="<%= SiteConfig.main_social_image %>">
<% end %>
<div class="crayons-layout crayons-layout--limited-l">
<div class="crayons-card text-styles text-padding">
<h1 class="fs-3xl s:fs-4xl l:fs-5xl fw-bold s:fw-heavy lh-tight mb-4 mt-0">Web Site Terms and Conditions of Use</h1>
<%= render "terms_text" %>
</div>
</div>