diff options
| -rw-r--r-- | cgi/whisky-shelf.cgi | 2 | ||||
| -rw-r--r-- | static/styles.css | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cgi/whisky-shelf.cgi b/cgi/whisky-shelf.cgi index 79e2b70..668be4b 100644 --- a/cgi/whisky-shelf.cgi +++ b/cgi/whisky-shelf.cgi @@ -2,7 +2,7 @@ require "json" def shelf_contents(data) data.map { |bottle| - $cgi.div(class: "shelf") { + $cgi.div(class: "bottle") { $cgi.h3 { bottle["name"] } + $cgi.img(class: "bottle", src: "shelf/#{bottle["image"]}") diff --git a/static/styles.css b/static/styles.css index 0395bb4..c691c05 100644 --- a/static/styles.css +++ b/static/styles.css @@ -30,8 +30,8 @@ div { padding: 1em; } -div#shelf { - display: inline-block; +div.bottle { + display: inline; } img.bottle { |
