Changeable Orbitbar logo
This commit is contained in:
parent
14ea611f8c
commit
fb34dc673f
|
@ -20,7 +20,6 @@
|
|||
|
||||
<!-- Input Area -->
|
||||
<div class="input-area">
|
||||
|
||||
<div class="nav-name"><strong>Classification</strong></div>
|
||||
<ul class="nav nav-pills language-nav">
|
||||
<li class="active">
|
||||
|
@ -191,7 +190,7 @@
|
|||
<a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Cancel</a>
|
||||
<div class="controls" data-toggle="buttons-checkbox">
|
||||
<label class="checkbox inline btn btn-danger fileupload-remove">
|
||||
<% if @site.default_image.file %>
|
||||
<% if @site.default_image.file.present? %>
|
||||
<label class="checkbox">
|
||||
<%= check_box_tag 'site[remove_default_image]' %>
|
||||
<%= t(:delete_) %>
|
||||
|
|
|
@ -28,3 +28,18 @@
|
|||
</li>
|
||||
|
||||
</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 %>
|
||||
|
|
Loading…
Reference in New Issue