akkounts/app/views/pages/privacy.html.erb
Râu Cao 3bd07472b2
All checks were successful
continuous-integration/drone/push Build is passing
Fix pages views when signed out
2025-06-12 16:09:42 +04:00

18 lines
617 B
Plaintext

<%= 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 user_signed_in? && 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 %>