Permalink
Browse files

Link image to Flipkart

  • Loading branch information...
1 parent 3e6db50 commit 96787fcf0e20cff451026a1db3896e1b0e06c540 @swaroopch committed Jul 27, 2013
Showing with 11 additions and 1 deletion.
  1. +9 −1 resources/book.mustache
  2. +2 −0 src/isbnnetinclj2/store.clj
View
@@ -28,9 +28,17 @@
<div class="span4">
<p>
{{#image}}
+ {{#imageLink}}
+ <a href="{{imageLink}}"
+ ><img src="{{image}}"
+ alt="{{title}}"
+ title="Image {{#imageSource}}from {{imageSource}}{{/imageSource}} {{#title}}for {{title}}{{/title}}"/></a>
+ {{/imageLink}}
+ {{^imageLink}}
<img src="{{image}}"
alt="{{title}}"
- title="Image from Flipkart for {{title}}"/>
+ title="Image {{#imageSource}}from {{imageSource}}{{/imageSource}} for {{#title}}{{title}}{{/title}}"/>
+ {{/imageLink}}
{{/image}}
</p>
</div>
@@ -56,6 +56,8 @@
:title (parse-text-from-content
content
[:div.mprod-summary-title :h1 html/content])
+ :imageSource "Flipkart"
+ :imageLink url
:image (get-in (pick-from-content
content
[:div#mprodimg-id :img])

0 comments on commit 96787fc

Please sign in to comment.