Skip to content
Snippets Groups Projects
Commit c4cc2ff3 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

preview

parent 5f43da70
No related branches found
No related tags found
No related merge requests found
.preview
img
max-width: 100%
......@@ -62,6 +62,17 @@
</div>
<% end %>
<div class="offcanvas offcanvas-start preview" tabindex="-1" id="preview" aria-labelledby="offcanvasRightLabel" aria-modal="true" role="dialog">
<div class="offcanvas-header">
<h5 id="offcanvasRightLabel"><%= t 'preview.title' %></h5>
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<%= @post.text.to_s %>
</div>
</div>
<% content_for :action_bar_right do %>
<button class="btn btn-primary my-1" type="button" data-bs-toggle="offcanvas" data-bs-target="#preview" aria-controls="preview"><%= t 'preview.button' %></button>
<%= edit_link @post %>
<% end %>
......@@ -116,6 +116,9 @@ en:
metadata: Metadata
please_confirm: Are you sure?
please_confirm_with_children: "WARNING: deleting this element will also remove every child. Are you sure?"
preview:
button: Preview
title: Mobile preview
privacy_policy: Privacy policy
privacy_policy_url: https://osuny.org/politique-de-confidentialite
quit: Quit
......
......@@ -116,6 +116,9 @@ fr:
metadata: Informations
please_confirm: Est-ce que vous confirmez ?
please_confirm_with_children: "ATTENTION : effacer cet élément supprimera aussi tous ses enfants. Est-ce que vous confirmez ?"
preview:
button: Prévisualiser
title: Prévisualisation mobile
privacy_policy: Politique de confidentialité
privacy_policy_url: https://osuny.org/politique-de-confidentialite
quit: Quitter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment