-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathreviews.html
226 lines (198 loc) · 9.39 KB
/
reviews.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html"
xmlns="http://www.w3.org/1999/html"> <!-- Set this to the main language of your site -->
<head>
<meta charset="utf-8">
<title>My Reviews - My Account</title>
<meta name="description" content="Manage Product Reviews">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/normalize.css" rel="stylesheet" media="all">
<!-- For legacy support (IE 6/7, Firefox < 4, and Safari < 5) use normalize-legacy.css instead -->
<!--<link href="css/normalize-legacy.css" rel="stylesheet" media="all">-->
<link href="css/styles.css" rel="stylesheet" media="all">
<!--[if lt IE 9]>
<script type='text/javascript' src="js/html5shiv-printshiv.js" media="all"></script><![endif]-->
<script type="text/javascript" src="js/modernizr-2.6.2.js"></script>
<script type="text/javascript" src="js/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="js/moment.js"></script>
<script type="text/javascript" src="js/handlebars_1.0.js"></script>
<script type="text/javascript" src="js/underscore_1.4.4.js"></script>
<script type="text/javascript" src="js/backbone_1.0.js"></script>
<script type="text/javascript" src="js/myaccount_rest_1.4.js"></script>
<script type="text/javascript" src="js/myaccount.js"></script>
<script type="text/javascript" src="reviews.js"></script>
<script type="text/template" id="reviewed-template">
<table class="review-details {{#if featured}}featured{{/if}}">
<tr>
<td style='text-align:center;width:65px;'>
{{#if item.defaultImageUrl}}<img class='order-item-thumbnail' src="{{item.defaultImageUrl}}"
alt=''/>{{/if}}
</td>
<td>
<div class='review-line-item'><a href="{{item.viewUrl}}">{{item.description}}</a> {{dateFormat
submittedDate}}
</div>
<div class='review-line-item'><strong>{{title}}</strong></div>
<br>
Ratings:
<table class='review-individual-ratings'>
<tr>
<td class='rating-name'><strong>Overall</strong></td>
<td><img src="images/spacer.gif" class="stars-{{overall}}"/></td>
</tr>
<tr>
<td colspan='2'> </td>
</tr>
{{#if ratingName1}}
<tr>
<td class='rating-name'>{{ratingName1}}</td>
<td><img src="images/spacer.gif" class="stars-{{ratingScore1}}"/></td>
</tr>
{{/if}}
{{#if ratingName2}}
<tr>
<td class='rating-name'>{{ratingName2}}</td>
<td><img src="images/spacer.gif" class="stars-{{ratingScore2}}"/></td>
</tr>
{{/if}}
{{#if ratingName3}}
<tr>
<td class='rating-name'>{{ratingName3}}</td>
<td><img src="images/spacer.gif" class="stars-{{ratingScore3}}"/></td>
</tr>
{{/if}}
{{#if ratingName4}}
<tr>
<td class='rating-name'>{{ratingName4}}</td>
<td><img src="images/spacer.gif" class="stars-{{ratingScore4}}"/></td>
</tr>
{{/if}}
{{#if ratingName5}}
<tr>
<td class='rating-name'>{{ratingName5}}</td>
<td><img src="images/spacer.gif" class="stars-{{ratingScore5}}"/></td>
</tr>
{{/if}}
{{#if ratingName6}}
<tr>
<td class='rating-name'>{{ratingName6}}</td>
<td><img src="images/spacer.gif" class="stars-{{ratingScore6}}"/></td>
</tr>
{{/if}}
{{#if ratingName7}}
<tr>
<td class='rating-name'>{{ratingName7}}</td>
<td><img src="images/spacer.gif" class="stars-{{ratingScore7}}"/></td>
</tr>
{{/if}}
{{#if ratingName8}}
<tr>
<td class='rating-name'>{{ratingName8}}</td>
<td><img src="images/spacer.gif" class="stars-{{ratingScore8}}"/></td>
</tr>
{{/if}}
{{#if ratingName9}}
<tr>
<td class='rating-name'>{{ratingName9}}</td>
<td><img src="images/spacer.gif" class="stars-{{ratingScore9}}"/></td>
</tr>
{{/if}}
{{#if ratingName10}}
<tr>
<td class='rating-name'>{{ratingName10}}</td>
<td><img src="images/spacer.gif" class="stars-{{ratingScore10}}"/></td>
</tr>
{{/if}}
</table>
<br>
<strong>Review</strong>
<div>{{review}}</div>
{{#if storeFeedback}}
<br>
<div>{{storeFeedback}}</div>
{{/if}}
<br>
<div>Was this review helpful? <span class='disabled-looking'>|</span> Yes
{{helpfulYesVotes}} <span class='disabled-looking'>|</span> No
{{helpfulNoVotes}} <span class='disabled-looking'>|</span></div>
</td>
</tr>
</table>
</script>
<script type="text/template" id="not-reviewed-yet-template">
<table class='not-reviewed-yet-details'>
<tr>
<td>
<input type="button" value="Review" class='reviewButton'/>
</td>
<td style='text-align:center;width:65px;'>
{{#if item.defaultImageUrl}}<img class='order-item-thumbnail' src="{{item.defaultImageUrl}}"
alt=''/>{{/if}}
</td>
<td><a href="{{item.viewUrl}}">{{item.description}}</a></td>
</tr>
</table>
</script>
</head>
<body>
<!-- The page header typically contains items such as your site heading, logo and possibly the main site navigation -->
<!-- ARIA: the landmark role "banner" is set as it is the prime heading or internal title of the page -->
<header role="banner">
<img src='images/logo.png' alt='store logo' class='logo-image'/>
<h2>UltraCart Store</h2>
<h4><a href="index.html">My Account</a> > <span class='disabled-looking'>My Reviews</span></h4>
</header>
<div class="wrap content">
<div>
<span class="info"></span>
<span class="success"></span>
<span class="warning"></span>
<span class="error"></span>
</div>
<div id="not-reviewed-yet">
<h4>Review Your Purchases</h4>
<div class='reviews'></div>
<div style='clear:both'></div>
<div class='load-more'>
<input type="button" id="loadMoreNotReviewedYetButton" value="Show 5 More Items"/>
</div>
<div class='loading'>
Please wait. We're loading your purchased items now.<br>
<img src='images/jquery.smallhbar.indicator.gif'/>
</div>
</div>
<div id="reviewed">
<h4>Your Published Reviews</h4>
<div class='reviews'></div>
<div style='clear:both'></div>
<div class='loading'>
Please wait. We're loading your reviews now.<br>
<img src='images/jquery.smallhbar.indicator.gif'/>
</div>
<div class='load-more'>
<input type="button" id="loadMoreReviewsButton" value="Show 5 More Reviews"/>
</div>
</div>
</div>
<footer role="contentinfo">
<!-- Copyright information can be contained within the <small> element. The <time> element is used here to indicate that the '2015' is a date -->
<small>Copyright www.ultracart.com ©
<time datetime="2015">2015</time>
</small>
</footer>
<!-- Google Analytics - Optimized version by Mathias Bynens -->
<!-- See: http://mathiasbynens.be/notes/async-analytics-snippet -->
<!-- Change the UA-XXXX-XX string to your site's ID -->
<script type='text/javascript'>
var _gaq = [
['_setAccount', 'UA-XXXX-XX'],
['_trackPageview']
];
(function (a, b) {
var c = a.createElement(b), d = a.getElementsByTagName(b)[0];
c.src = ("https:" == location.protocol ? "//ssl" : "//www") + ".google-analytics.com/ga.js";
d.parentNode.insertBefore(c, d)
})(document, "script");
</script>
</body>
</html>