Skip to content
Snippets Groups Projects
Commit 62d24e82 authored by pabois's avatar pabois
Browse files

Merge branch 'master' of github.com:noesya/osuny

parents 61b7b88e 8c5f5aad
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,8 @@ class Communication::Block::Template::Gallery < Communication::Block::Template
return if blob.nil?
{
blob: blob,
alt: element['alt']
alt: element['alt'],
text: element['text']
}.to_dot
end
end
......@@ -39,6 +39,14 @@
v-model="image.alt"
placeholder="<%= t '.alt_placeholder' %>"
:id="'image-alt-' + imageIndex">
<label aria-label="<%= t '.text_label' %>"
:for="'image-text-' + imageIndex">
<%= t '.text_label' %>
</label>
<textarea class="form-control"
v-model="image.text"
placeholder="<%= t '.text_placeholder' %>"
:id="'image-text-' + imageIndex"></textarea>
</div>
</div>
</div>
......
......@@ -7,6 +7,7 @@
<% end %>
<div class="card-body">
<p class="mb-0"><%= image.alt %></p>
<p class="mb-0 small"><%= image.text %></p>
</div>
</article>
</div>
......
......@@ -2,5 +2,7 @@
<% block.template.images_with_alt.each do |image| %>
- alt: >
<%= prepare_text_for_static image.alt %>
text: >
<%= prepare_text_for_static image.text %>
file: "<%= image.blob.id %>"
<% end %>
......@@ -128,6 +128,8 @@ en:
image_label: Image (.png, .jpg)
alt_label: Alternative text
alt_placeholder: Enter text description
text_label: Text
text_placeholder: Enter text
remove_image: Remove image
organization_chart:
edit:
......
......@@ -128,6 +128,8 @@ fr:
image_label: Image (.png, .jpg)
alt_label: Texte alternatif
alt_placeholder: Entrer la description textuelle
text_label: Texte
text_placeholder: Entrer le texte
remove_image: Enlever l'image
organization_chart:
edit:
......
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