Updated Preference and Default Image
This commit is contained in:
parent
dead52d8ab
commit
7a0961e527
Binary file not shown.
After Width: | Height: | Size: 778 B |
|
@ -162,10 +162,9 @@
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label muted">Default Language</label>
|
<label class="control-label muted">Default Language</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<% @site_in_use_locales.each do |locale| %>
|
<% @site_in_use_locales.each do |locale| %>
|
||||||
<%= radio_button_tag "site[default_locale]", locale, @locale == locale ,:class=>"toggle-check in_use_locales", :data => { :title => "#{I18nVariable.from_locale(locale)}" } %>
|
<%= radio_button_tag "site[default_locale]", locale, @locale == locale ,:class=>"toggle-check in_use_locales", :data => { :title => "#{I18nVariable.from_locale(locale)}" } %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -179,10 +178,10 @@
|
||||||
<!-- if this page editing please add class "fileupload-edit" -->
|
<!-- if this page editing please add class "fileupload-edit" -->
|
||||||
<div class="fileupload fileupload-new clearfix" data-provides="fileupload">
|
<div class="fileupload fileupload-new clearfix" data-provides="fileupload">
|
||||||
<div class="fileupload-new thumbnail pull-left">
|
<div class="fileupload-new thumbnail pull-left">
|
||||||
<% if @site.default_image %>
|
<% if @site.default_image.file.present? %>
|
||||||
<%= image_tag( @site.default_image, :size=>"120x120") rescue ''%>
|
<%= image_tag( @site.default_image, :size=>"120x120") rescue ''%>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= image_tag "default-img.png", :class => "pull-left upload-picture"%>
|
<%= image_tag "http://www.placehold.it/50x50/EFEFEF/AAAAAA",:size=>"120x120",:class => "pull-left upload-picture"%>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="fileupload-preview fileupload-exists thumbnail pull-left"></div>
|
<div class="fileupload-preview fileupload-exists thumbnail pull-left"></div>
|
||||||
|
@ -208,10 +207,10 @@
|
||||||
<!-- if this page editing please add class "fileupload-edit" -->
|
<!-- if this page editing please add class "fileupload-edit" -->
|
||||||
<div class="fileupload fileupload-new clearfix" data-provides="fileupload">
|
<div class="fileupload fileupload-new clearfix" data-provides="fileupload">
|
||||||
<div class="fileupload-new thumbnail pull-left">
|
<div class="fileupload-new thumbnail pull-left">
|
||||||
<% if @site.favicon %>
|
<% if @site.favicon.file.present? %>
|
||||||
<%= image_tag( @site.favicon, :size=>"120x120") rescue ''%>
|
<%= image_tag( @site.favicon, :size=>"120x120") rescue ''%>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= image_tag "default-img.png", :class => "pull-left upload-picture"%>
|
<%= image_tag "http://www.placehold.it/50x50/EFEFEF/AAAAAA",:size=>"120x120", :class => "pull-left upload-picture"%>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="fileupload-preview fileupload-exists thumbnail pull-left"></div>
|
<div class="fileupload-preview fileupload-exists thumbnail pull-left"></div>
|
||||||
|
|
Loading…
Reference in New Issue