Fix bug.
This commit is contained in:
parent
cdab52dba1
commit
20f893e5b9
|
@ -135,7 +135,14 @@ input.minicolors-input{
|
||||||
<%= t('gallery.thumb_resize_reference') %>
|
<%= t('gallery.thumb_resize_reference') %>
|
||||||
</label>
|
</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<%= f.select :resize_gravity, [["---#{t("default")}: #{t("gallery.gravity.#{AlbumSetting::ResizeGravities[0]}")}---",nil]]+AlbumSetting::ResizeGravities.collect{|v| [t("gallery.gravity.#{v}"),v]} %>
|
<%
|
||||||
|
default_resize_gravity = AlbumSetting::ResizeGravities[0]
|
||||||
|
setting = AlbumSetting.first
|
||||||
|
if setting
|
||||||
|
default_resize_gravity = setting.resize_gravity
|
||||||
|
end
|
||||||
|
%>
|
||||||
|
<%= f.select :resize_gravity, [["---#{t("default")}: #{t("gallery.gravity.#{default_resize_gravity}")}---",nil]]+AlbumSetting::ResizeGravities.collect{|v| [t("gallery.gravity.#{v}"),v]} %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group" style='display: flex;'>
|
<div class="control-group" style='display: flex;'>
|
||||||
|
|
Loading…
Reference in New Issue