Updated Preference and Default Image

This commit is contained in:
saurabhbhatia 2013-11-26 09:58:40 +08:00
parent dead52d8ab
commit 7a0961e527
2 changed files with 6 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 778 B

View File

@ -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>