Skip to content

Commit

Permalink
Merge branch 'master' into 4.0-stable
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Nov 6, 2017
2 parents ce4bf49 + 38cb863 commit 1cb47d1
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 24 deletions.
24 changes: 13 additions & 11 deletions app/assets/stylesheets/alchemy/dialogs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,15 @@
position: relative;
}

form,
.info.message {
float: right;
width: 134px;
position: absolute;
right: 2 * $default-padding;
width: 256px;
}

.info.message {
top: 2 * $default-padding;
margin: 0 0 0 8px;
padding: 0 8px 0 32px;
}
Expand All @@ -99,21 +105,17 @@

form {
padding: 0;
position: absolute;
bottom: 2 * $default-padding;
right: 2 * $default-padding;
width: 176px;
margin-left: 8px;

.reset_mask, button {
display: block;
button {
margin-bottom: 0;
text-align: center;
width: calc(50% - #{$default-padding});
}

.reset_mask { padding-top: 4px }

button { width: 100% }
button[type="submit"] {
float: right;
}
}
}
}
Expand Down
7 changes: 4 additions & 3 deletions app/views/alchemy/admin/essence_pictures/crop.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
<%= f.hidden_field :crop_from %>
<%= f.hidden_field :crop_size %>
<%= hidden_field_tag :content_id, @content.id %>
<%= f.button "#{render_icon(:true)} #{Alchemy.t(:apply)}".html_safe, class: 'with_icon' %>
<%= link_to Alchemy.t('Reset Imagemask'), '#', {
<%= button_tag Alchemy.t('Reset Imagemask'), {
onclick: 'Alchemy.ImageCropper.reset(); return false',
class: 'reset_mask'
class: 'reset_mask',
type: 'reset'
} %>
<%= f.button Alchemy.t(:apply) %>
<% end %>
</div>
<% end %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
content.essence,
options: content.settings.update(options)
), {
size: "1000x615",
size: "1080x615",
title: Alchemy.t('Edit Picturemask'),
image_loader: false,
padding: false
Expand Down
4 changes: 2 additions & 2 deletions config/locales/alchemy.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ de:
"Remove item from clipboard": "Inhalt aus der Zwischenablage entfernen"
"Remove tag filter": "Filter entfernen"
"Remove this content": "Diesen Inhalt entfernen"
"Reset Imagemask": "Bildmaske zurücksetzen"
"Reset Imagemask": "zurücksetzen"
"Reset password instructions": "Anweisungen um Ihr Passwort zurückzusetzen"
"Select all": "Alle auswählen"
"Select an content": "Wählen Sie einen Inhalt aus"
Expand Down Expand Up @@ -365,7 +365,7 @@ de:
element_of_type: "Element"
element_saved: "Element wurde gespeichert."
enter_external_link: "Geben Sie hier die Adresse der Seite ein zu der Sie einen Link setzen wollen."
explain_cropping: "<p>Sie können den Rahmen verschieben und in der Größe verändern um den Bildausschnitt festzulegen.</p><p>Wenn Sie zufrieden sind, dann klicken Sie bitte auf speichern.</p>"
explain_cropping: "<p>Sie können den Rahmen mit der Maus und den Pfeiltasten verschieben und in der Größe verändern, um einen eigenen Bildausschnitt festzulegen. Wenn Sie zufrieden sind, dann klicken Sie bitte auf \"übernehmen\".</p><p>Um zu dem zentrierten Bildausschnitt zurückzukehren, wie er im Layout vorgesehen wurde, klicken Sie bitte auf \"zurücksezen\" und \"übernehmen\" anschließend die Änderungen.</p>"
explain_publishing: "Die gecachte Version vom Server löschen und die aktuellen Änderungen veröffentlichen"
explain_sitemap_dragndrop_sorting: "Tip: Halten Sie zum Sortieren der Seiten das Seitensymbol mit der Maus fest und bewegen Sie sie an ihre neue Position."
explain_unlocking: "Die Seite verlassen und für andere Benutzer zum Bearbeiten freigeben."
Expand Down
4 changes: 2 additions & 2 deletions config/locales/alchemy.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ en:
"Remove item from clipboard": "Remove item from clipboard"
"Remove tag filter": "Remove tag filter"
"Remove this content": "Remove this content"
"Reset Imagemask": "Reset Imagemask"
"Reset Imagemask": "Reset mask"
"Reset password instructions": "Reset password instructions"
"Select all": "Select all"
"Select an content": "Select a content"
Expand Down Expand Up @@ -363,7 +363,7 @@ en:
element_of_type: "Element"
element_saved: "Saved element."
enter_external_link: "Please enter the URL you want to link with"
explain_cropping: "<p>Move the frame and change its size to adjust the image section.</p><p>Click on apply when you are satisfied.</p>"
explain_cropping: "<p>Move the frame and change its size with the mouse or arrow keys to adjust the image mask. Click on \"apply\" when you are satisfied with your selection.</p><p>If you want to return to the original centered image mask like it was defined in the layout, click \"reset\" and \"apply\" afterwards.</p>"
explain_publishing: "Publish the page and remove the cached version from the server."
explain_sitemap_dragndrop_sorting: "Tip: Drag the pages at the icon in order to sort them."
explain_unlocking: "Leave page and unlock it for other users."
Expand Down
2 changes: 1 addition & 1 deletion config/locales/alchemy.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ es:
"Remove item from clipboard": "Quitar elemento del portapapeles"
"Remove tag filter": "Quitar filtro de etiquetas"
"Remove this content": "Quitar este contenido"
"Reset Imagemask": "Reiniciar máscara de imagen"
"Reset Imagemask": "Reiniciar"
"Reset password instructions": "Instrucciones para restablecer la contraseña"
"Select all": "Seleccionar todo"
"Select an content": "Seleccionar contenido"
Expand Down
2 changes: 1 addition & 1 deletion config/locales/alchemy.fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ fr:
"Remove item from clipboard": "Supprimer le contenu du presse-papiers"
"Remove tag filter": "Enlever filtre"
"Remove this content": "Retirer ce contenu"
"Reset Imagemask": "Enlever le masque d'image"
"Reset Imagemask": "Enlever"
"Reset password instructions": "Instructions pour réinitialiser votre mot de passe"
"Select all": "Sélectionner tous"
"Select an content": "Sélectionnez un contenu de"
Expand Down
2 changes: 1 addition & 1 deletion config/locales/alchemy.it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ it:
"Remove item from clipboard": "Rimuovi elemento dagli appunti"
"Remove tag filter": "Rimuovi filtro tag"
"Remove this content": "Rimuovi questo contenuto"
"Reset Imagemask": "Ripristina la maschera delle immagini"
"Reset Imagemask": "Ripristina"
"Reset password instructions": "Ripristina le istruzioni per la password"
"Select all": "Seleziona tutto"
"Select an content": "Seleziona un contenuto"
Expand Down
2 changes: 1 addition & 1 deletion config/locales/alchemy.nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ nl:
"Remove item from clipboard": "Item van klembord verwijderen"
"Remove tag filter": "Filter verwijderen"
"Remove this content": "Inhoud verwijderen"
"Reset Imagemask": "Afbeeldingsmasker resetten"
"Reset Imagemask": "resetten"
"Reset password instructions": "Instructies om het wachtwoord te resetten."
"Select all": "Alles selecteren"
"Select an content": "Selecteer de inhoud"
Expand Down
2 changes: 1 addition & 1 deletion config/locales/alchemy.ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ ru:
"Remove item from clipboard": "Удалить элемент из буфера обмена"
"Remove tag filter": "Удалить фильтр меток"
"Remove this content": "Удалить этот контент"
"Reset Imagemask": "Сбросить маску изображений"
"Reset Imagemask": "Сбросить"
"Reset password instructions": "Инструкция по сбросу пароля"
"Select all": "Выбрать все"
"Select an content": "Выбрать контент"
Expand Down

0 comments on commit 1cb47d1

Please sign in to comment.