Created
June 27, 2011 09:34
-
-
Save tetu1225/1048573 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! 5 | |
%html | |
%head | |
%title Amazon aaws | |
:css | |
div{ | |
border: 1px dashed; | |
color: #444444; | |
width: 450px; | |
margin: 10px; | |
padding: 10px; | |
} | |
%body | |
- if !@items.nil? | |
- @items.each do |item| | |
%div | |
-# 商品画像 | |
%img{:src => "#{item.small_image.url}"} | |
%br | |
-# ページリンクとタイトル | |
%p | |
%a{:href => "#{item.detail_page_url}", :target => "_blank"}= item.item_attributes.title | |
-# 価格 | |
- price = item.item_attributes.list_price | |
- if price | |
%p= price.formatted_price | |
- else | |
%p= "Amazonでの在庫無し" | |
- else | |
%p{:id => "main"}= "検索結果がありません。" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment