| 3232 |
varun.gupt |
1 |
<!DOCTYPE html>
|
|
|
2 |
<html>
|
|
|
3 |
<head>
|
| 5291 |
varun.gupt |
4 |
<title>Price Comparison Dashboard</title>
|
| 3232 |
varun.gupt |
5 |
<link rel="stylesheet" type="text/css" href="/static/facebox.css" />
|
| 3551 |
varun.gupt |
6 |
<link rel="stylesheet" type="text/css" href="/static/chart.css" />
|
| 3232 |
varun.gupt |
7 |
</head>
|
|
|
8 |
<body>
|
| 5291 |
varun.gupt |
9 |
<div id="pageTitle">Price Comparison Dashboard</div>
|
|
|
10 |
<div id="all" class="menu-item" title="All Products">All Products</div>
|
|
|
11 |
<div id="watchlist" class="menu-item" title="Watchlist">Watchlist</div>
|
|
|
12 |
<div id="howTo" class="menu-item" title="Click to see instructions">Help</div>
|
| 4198 |
varun.gupt |
13 |
<div class="clearboth"></div>
|
| 3313 |
varun.gupt |
14 |
{% if len(data) > 0 %}
|
| 3440 |
varun.gupt |
15 |
<table>
|
| 3232 |
varun.gupt |
16 |
<thead>
|
|
|
17 |
<tr>
|
| 3440 |
varun.gupt |
18 |
<th width="264"> </th>
|
|
|
19 |
<th width="131">Saholic</th>
|
|
|
20 |
<th width="131">Flipkart</th>
|
|
|
21 |
<th width="131">HomeShop18</th>
|
|
|
22 |
<th width="131">Infibeam</th>
|
| 5291 |
varun.gupt |
23 |
<th width="131">Snapdeal</th>
|
| 3552 |
varun.gupt |
24 |
<th>Max-Min<br />difference</th>
|
| 3232 |
varun.gupt |
25 |
</tr>
|
|
|
26 |
</thead>
|
| 3440 |
varun.gupt |
27 |
</table>
|
|
|
28 |
<div id="datatable-container">
|
|
|
29 |
<table id="datatable">
|
| 3232 |
varun.gupt |
30 |
<tbody>
|
| 3313 |
varun.gupt |
31 |
{% for phone in data %}
|
| 3440 |
varun.gupt |
32 |
<tr id="{{ phone['entity_id'] }}">
|
| 5291 |
varun.gupt |
33 |
<td class="name">
|
|
|
34 |
{{ phone['product_name'] }}
|
|
|
35 |
<div class="watchlist-icon"></div>
|
|
|
36 |
</td>
|
| 4198 |
varun.gupt |
37 |
<td class="price saholic">{{ phone['saholic']['price'] }}</td>
|
| 3313 |
varun.gupt |
38 |
|
|
|
39 |
{% if phone['flipkart']['data'] is not None %}
|
| 3440 |
varun.gupt |
40 |
<td class="price conflict" data="{{ phone['flipkart']['data'] }}" source="flipkart">
|
| 3313 |
varun.gupt |
41 |
{% else %}
|
| 3440 |
varun.gupt |
42 |
<td class="price" source="flipkart">
|
| 3313 |
varun.gupt |
43 |
{% end %}
|
|
|
44 |
|
|
|
45 |
{% if phone['flipkart']['price'] is None and phone['flipkart']['data'] is None %}
|
| 4198 |
varun.gupt |
46 |
<a href="{{ phone['flipkart']['url'] }}" target="_blank">{{ phone['flipkart']['text'] }}</a>
|
| 3440 |
varun.gupt |
47 |
|
|
|
48 |
{% elif phone['flipkart']['data'] is not None %}
|
|
|
49 |
<a href="{{ 'http://www.flipkart.com' + phone['flipkart']['url'] if phone['flipkart']['url'] is not None else '#' }}">
|
|
|
50 |
{{ phone['flipkart']['text'] }}
|
|
|
51 |
</a>
|
| 3313 |
varun.gupt |
52 |
{% else %}
|
|
|
53 |
<a href="{{ 'http://www.flipkart.com' + phone['flipkart']['url'] if phone['flipkart']['url'] is not None else '#' }}" target="_blank">
|
|
|
54 |
{{ phone['flipkart']['text'] }}
|
|
|
55 |
</a>
|
|
|
56 |
{% end %}
|
| 3232 |
varun.gupt |
57 |
</td>
|
| 3313 |
varun.gupt |
58 |
|
|
|
59 |
{% if phone['homeshop18']['data'] is not None %}
|
| 3440 |
varun.gupt |
60 |
<td class="price conflict" data="{{ phone['homeshop18']['data'] }}" source="homeshop18">
|
| 3313 |
varun.gupt |
61 |
{% else %}
|
| 3440 |
varun.gupt |
62 |
<td class="price" source="homeshop18">
|
| 3313 |
varun.gupt |
63 |
{% end %}
|
|
|
64 |
|
|
|
65 |
{% if phone['homeshop18']['price'] is None and phone['homeshop18']['data'] is None %}
|
| 4198 |
varun.gupt |
66 |
<a href="{{ phone['homeshop18']['url'] }}" target="_blank">{{ phone['homeshop18']['text'] }}</a>
|
| 3440 |
varun.gupt |
67 |
{% elif phone['homeshop18']['data'] is not None %}
|
|
|
68 |
<a href="{{ phone['homeshop18']['url'] if phone['homeshop18']['url'] is not None else '#' }}">
|
|
|
69 |
{{ phone['homeshop18']['text'] }}
|
|
|
70 |
</a>
|
| 3313 |
varun.gupt |
71 |
{% else %}
|
|
|
72 |
<a href="{{ phone['homeshop18']['url'] if phone['homeshop18']['url'] is not None else '#' }}" target="_blank">
|
|
|
73 |
{{ phone['homeshop18']['text'] }}
|
|
|
74 |
</a>
|
|
|
75 |
{% end %}
|
|
|
76 |
</td>
|
|
|
77 |
|
|
|
78 |
{% if phone['infibeam']['data'] is not None %}
|
| 3440 |
varun.gupt |
79 |
<td class="price conflict" data="{{ phone['infibeam']['data'] }}" source="infibeam">
|
| 3313 |
varun.gupt |
80 |
{% else %}
|
| 3440 |
varun.gupt |
81 |
<td class="price" source="infibeam">
|
| 3313 |
varun.gupt |
82 |
{% end %}
|
|
|
83 |
|
|
|
84 |
{% if phone['infibeam']['price'] is None and phone['infibeam']['data'] is None %}
|
| 4198 |
varun.gupt |
85 |
<a href="{{ phone['infibeam']['url'] }}" target="_blank">{{ phone['infibeam']['text'] }}</a>
|
| 3440 |
varun.gupt |
86 |
{% elif phone['infibeam']['data'] is not None %}
|
|
|
87 |
<a href="{{ 'http://www.infibeam.com' + phone['infibeam']['url'] if phone['infibeam']['url'] is not None else '#' }}">
|
|
|
88 |
{{ phone['infibeam']['text'] }}
|
|
|
89 |
</a>
|
| 3313 |
varun.gupt |
90 |
{% else %}
|
|
|
91 |
<a href="{{ 'http://www.infibeam.com' + phone['infibeam']['url'] if phone['infibeam']['url'] is not None else '#' }}" target="_blank">
|
|
|
92 |
{{ phone['infibeam']['text'] }}
|
|
|
93 |
</a>
|
|
|
94 |
{% end %}
|
|
|
95 |
</td>
|
|
|
96 |
|
| 5291 |
varun.gupt |
97 |
{% if phone['snapdeal']['data'] is not None %}
|
|
|
98 |
<td class="price conflict" data="{{ phone['snapdeal']['data'] }}" source="snapdeal">
|
| 3313 |
varun.gupt |
99 |
{% else %}
|
| 5291 |
varun.gupt |
100 |
<td class="price" source="snapdeal">
|
| 3313 |
varun.gupt |
101 |
{% end %}
|
|
|
102 |
|
| 5291 |
varun.gupt |
103 |
{% if phone['snapdeal']['price'] is None and phone['snapdeal']['data'] is None %}
|
|
|
104 |
<a href="{{ phone['snapdeal']['url'] }}" target="_blank">{{ phone['snapdeal']['text'] }}</a>
|
|
|
105 |
{% elif phone['snapdeal']['data'] is not None %}
|
|
|
106 |
<a href="{{ 'http://www.snapdeal.com/' + phone['snapdeal']['url'] if phone['snapdeal']['url'] is not None else '#' }}">
|
|
|
107 |
{{ phone['snapdeal']['text'] }}
|
| 3440 |
varun.gupt |
108 |
</a>
|
| 3313 |
varun.gupt |
109 |
{% else %}
|
| 5291 |
varun.gupt |
110 |
<a href="{{ 'http://www.snapdeal.com/' + phone['snapdeal']['url'] if phone['snapdeal']['url'] is not None else '#' }}" target="_blank">
|
|
|
111 |
{{ phone['snapdeal']['text'] }}
|
| 3313 |
varun.gupt |
112 |
</a>
|
|
|
113 |
{% end %}
|
|
|
114 |
</td>
|
| 3232 |
varun.gupt |
115 |
</tr>
|
| 3313 |
varun.gupt |
116 |
{% end %}
|
| 3232 |
varun.gupt |
117 |
</tbody>
|
|
|
118 |
</table>
|
| 3440 |
varun.gupt |
119 |
</div>
|
| 3313 |
varun.gupt |
120 |
{% end %}
|
| 3232 |
varun.gupt |
121 |
<script type="text/javascript" src="/static/jquery-1.6.2.min.js"></script>
|
|
|
122 |
<script type="text/javascript" src="/static/facebox.js"></script>
|
|
|
123 |
<script type="text/javascript" src="/static/chart.js"></script>
|
|
|
124 |
</body>
|
|
|
125 |
</html>
|