asset_path

This commit is contained in:
Devin Howard 2015-10-23 23:56:29 +08:00
parent b00784731b
commit da98a53a3e
3 changed files with 7 additions and 7 deletions

View file

@ -1163,15 +1163,15 @@
left:5px;
}
.exploreMapsCenter .myMaps .exploreMapsIcon {
background-image: url(exploremaps_sprite.png);
background-image: url(<%= asset_path 'exploremaps_sprite.png' %>);
background-position: 0 0;
}
.exploreMapsCenter .activeMaps .exploreMapsIcon {
background-image: url(exploremaps_sprite.png);
background-image: url(<%= asset_path 'exploremaps_sprite.png' %>);
background-position: -32px 0;
}
.exploreMapsCenter .featuredMaps .exploreMapsIcon {
background-image: url(exploremaps_sprite.png);
background-image: url(<%= asset_path 'exploremaps_sprite.png' %>);
background-position: -64px 0;
}
.myMaps:hover .exploreMapsIcon, .myMaps.active .exploreMapsIcon {
@ -1212,7 +1212,7 @@
/* feedback */
body a#barometer_tab {
background-image: url(feedback_sprite.png);
background-image: url(<%= asset_path 'feedback_sprite.png' %>);
background-position: 0 0;
background-color: transparent;
height: 110px;

View file

@ -6,7 +6,7 @@
}
div.uv-icon.uv-bottom-left {
background-image:url(feedback_sprite.png);
background-image:url(<%= asset_data_uri 'feedback_sprite.png' %>);
background-repeat: no-repeat;
color:#FFFFFF;
cursor:pointer;
@ -22,4 +22,4 @@ div.uv-icon.uv-bottom-left {
div.uv-icon.uv-bottom-left:hover {
background-position: 0 -110px;
}
}

View file

@ -23,7 +23,7 @@
<% end %>
<span><%= @map.contributors.count %></span>
<div class="tip"> <ul><% @map.contributors.each_with_index do |c, index| %>
<li ><a href="/explore/mapper/<%= c.id %>" > <img class="rtUserImage" width="25" height="25" src="<%= c.image.url(:thirtytwo) %>" />
<li ><a href="/explore/mapper/<%= c.id %>" > <img class="rtUserImage" width="25" height="25" src="<%= asset_path c.image.url(:thirtytwo) %>" />
<%= c.name %></a>
</li>
<% end %></ul></div>