Skip to content

Commit

Permalink
Put out the fire
Browse files Browse the repository at this point in the history
  • Loading branch information
rlr committed Feb 20, 2014
1 parent 188896c commit 37fe317
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -8,7 +8,7 @@
{% set prod_url = url('products.product', slug=product.slug) %}
{% endif %}
<a class="cf" href="{{ prod_url }}">
<img src="{{ STATIC_URL }}img/blank.png" class="logo-sprite" style="{% if product.image %}background-image: url({{ product.sprite_url() }}); background-position: -100px -{{ 100 + (product.image_offset * 296) }}px;{% else %}background-image: url({{ product.image_url }}){% endif %}" alt="" />
<img src="{{ STATIC_URL }}img/blank.png" class="logo-sprite" style="{% if product.image and product.image_offset %}background-image: url({{ product.sprite_url() }}); background-position: -100px -{{ 100 + (product.image_offset * 296) }}px;{% else %}background-image: url({{ product.image_url }}){% endif %}" alt="" />
<span class="title">{{ _(product.title, 'DB: products.Product.title') }}</span>
<span class="description">{{ _(product.description, 'DB: products.Product.description') }}</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion kitsune/products/templates/products/mobile/products.html
Expand Up @@ -9,7 +9,7 @@
{% for product in products %}
<li>
<a class="cf" href="{{ url('products.product', slug=product.slug) }}">
<img src="{{ STATIC_URL }}img/blank.png" class="logo-sprite" {% if product.image %}style="background-position: -50px -{{ 50 + (product.image_offset * 148) }}px;"{% endif %} alt="">
<img src="{{ STATIC_URL }}img/blank.png" class="logo-sprite" {% if product.image and product.image_offset %}style="background-position: -50px -{{ 50 + (product.image_offset * 148) }}px;"{% endif %} alt="">
<span class="title">{{ _(product.title, 'DB: products.Product.title') }}</span>
{{ _(product.description, 'DB: products.Product.description') }}
</a>
Expand Down
2 changes: 1 addition & 1 deletion kitsune/products/templates/products/product.html
Expand Up @@ -13,7 +13,7 @@
<div class="grid_12">
<h1 class="product-title cf">
<img src="{{ STATIC_URL }}img/blank.png" alt="" class="logo-sprite"
style="{% if product.image %}background-image: url({{ product.sprite_url() }}); background-position: -100px -{{ 100 + (product.image_offset * 296) }}px;{% else %}background-image: url({{ product.image_url }}){% endif %}" />
style="{% if product.image and product.image_offset %}background-image: url({{ product.sprite_url() }}); background-position: -100px -{{ 100 + (product.image_offset * 296) }}px;{% else %}background-image: url({{ product.image_url }}){% endif %}" />
{{ _(product.title, 'DB: products.Product.title') }}
</h1>

Expand Down

0 comments on commit 37fe317

Please sign in to comment.