Add Privacy and ToS pages, footer menu
This commit is contained in:
17
app/views/pages/privacy.html.erb
Normal file
17
app/views/pages/privacy.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<%= render HeaderComponent.new(title: "Privacy Policy") %>
|
||||
|
||||
<%= render MainSimpleComponent.new do %>
|
||||
<section>
|
||||
<%= render EditableContentComponent.new(
|
||||
context: "privacy", key: "body", rich_text: true,
|
||||
default: "No content yet. Please add a privacy policy.") %>
|
||||
|
||||
<% if current_user.is_admin? %>
|
||||
<div class="mt-8 pt-6 border-t border-gray-200 text-right">
|
||||
<%= render EditContentButtonComponent.new(
|
||||
context: "privacy", key: "body", rich_text: true,
|
||||
redirect_to: request.path) do %>Edit content<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</section>
|
||||
<% end %>
|
||||
17
app/views/pages/tos.html.erb
Normal file
17
app/views/pages/tos.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<%= render HeaderComponent.new(title: "Terms of Service") %>
|
||||
|
||||
<%= render MainSimpleComponent.new do %>
|
||||
<section>
|
||||
<%= render EditableContentComponent.new(
|
||||
context: "tos", key: "body", rich_text: true,
|
||||
default: "No content yet. Please add your terms of service.") %>
|
||||
|
||||
<% if current_user.is_admin? %>
|
||||
<div class="mt-8 pt-6 border-t border-gray-200 text-right">
|
||||
<%= render EditContentButtonComponent.new(
|
||||
context: "tos", key: "body", rich_text: true,
|
||||
redirect_to: request.path) do %>Edit content<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</section>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user