products.html 1.2 KB

123456789101112131415161718192021222324
  1. {% from 'oscar/macros.html' import draw_favicon, icon, result_header, result_sub_header, result_footer_rtl, result_footer %}
  2. {{ result_header(result, favicons) }}
  3. {{ result_sub_header(result) }}
  4. <div class="container-fluid">
  5. <div class="row">
  6. <a href="{{ result.url }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}><img class="thumbnail col-xs-6 col-sm-3 col-md-3 result-content" src="{{ image_proxify(result.thumbnail) }}" alt="{{ result.title|striptags }} {{ result.engine }}" /></a>
  7. <p class="col-xs-12 col-sm-9 col-md-9 result-content">
  8. {% if result.price %}<big>{{ result.price|safe }}</big></br>{% endif %}
  9. {% if result.shipping %}<small>{{ result.shipping|safe }}</small></br>{% endif %}
  10. {% if result.source_country %}<small>{{ result.source_country|safe }}</small></br>{% endif %}
  11. {% if result.content %}{{ result.content|safe }}{% endif %}
  12. {% if result.has_stock is defined %}<br>{% if result.has_stock %}{{ icon('check', _('Has stock')) }}{% else %}{{ icon('alert', _('Out of stock')) }}{% endif %}{% endif %}
  13. </p>
  14. </div>
  15. </div>
  16. {% if rtl %}
  17. {{ result_footer_rtl(result) }}
  18. {% else %}
  19. {{ result_footer(result) }}
  20. {% endif %}