Changeable Orbitbar logo

This commit is contained in:
saurabhbhatia 2013-10-14 18:19:31 +08:00
parent 14ea611f8c
commit fb34dc673f
2 changed files with 17 additions and 3 deletions

View File

@ -20,7 +20,6 @@
<!-- Input Area --> <!-- Input Area -->
<div class="input-area"> <div class="input-area">
<div class="nav-name"><strong>Classification</strong></div> <div class="nav-name"><strong>Classification</strong></div>
<ul class="nav nav-pills language-nav"> <ul class="nav nav-pills language-nav">
<li class="active"> <li class="active">
@ -191,7 +190,7 @@
<a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Cancel</a> <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Cancel</a>
<div class="controls" data-toggle="buttons-checkbox"> <div class="controls" data-toggle="buttons-checkbox">
<label class="checkbox inline btn btn-danger fileupload-remove"> <label class="checkbox inline btn btn-danger fileupload-remove">
<% if @site.default_image.file %> <% if @site.default_image.file.present? %>
<label class="checkbox"> <label class="checkbox">
<%= check_box_tag 'site[remove_default_image]' %> <%= check_box_tag 'site[remove_default_image]' %>
<%= t(:delete_) %> <%= t(:delete_) %>

View File

@ -27,4 +27,19 @@
</a> </a>
</li> </li>
</ul> </ul>
<% if @site.default_image.present? %>
<style>
#orbit-bar .orbitlogo {
width: 20px;
height: 20px;
background-size: 70%;
display: inline-block;
background-position: center;
background-repeat: no-repeat;
background-image: url(<%= @site.default_image %>);
/* For Suck IE */
background-image: url(<%= @site.default_image%>)\9;
}
</style>
<% end %>