PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/main/product_details.html

https://gitlab.com/wedava/DereksAuto
HTML | 37 lines | 35 code | 2 blank | 0 comment | 0 complexity | b72cd07984d14c2ec81578366697db5b MD5 | raw file
 1{% extends 'base.html' %}
 2{% load staticfiles %}
 3{% block title %} DereksAuto| Item details {% endblock %}
 4
 5{% block content %}
 6<div class="row" style="padding-top: 80px"></div>
 7<div class="container">
 8<div class="row">
 9<div class="col-md-8 col-md-offset-2">
10<h2>Item details</h2>
11<hr>
12{% if object %}
13    <div class="col-md-5">
14    <div class="details img-responsive"><img src="{{ object.image_link }}" class="">
15    {% if item.offer %}
16    <div class="saleoffrate">
17       <b>{{ item.offer }}%</b><br>OFF
18    </div>
19    {% endif %}
20    </div>
21    </div>
22    <div class="col-md-7">
23    <h2>{{ object.title }}</h2>
24    <br>
25    <h4>Manufacturer: {{ object.manufacturer }}</h4>
26    <h4>Price: {% if object.initial_price %}<s>${{ object.initial_price }}</s>{% endif %}{% if object.initial_price %}&nbsp;{% endif %}${{ object.price }}</h4>
27    <br>
28    <a href="{{ object.amazon_url }}"><img src="{% static 'img/buy.png' %}"></a>
29    </div>
30    <h4 class="pull-right"><a href="{% url 'list' %}"><< View similar items</a></h4>
31
32{% endif %}
33</div>
34</div>
35</div>
36<div class="row" style="padding-top: 120px"></div>
37{% endblock %}