Show thumbnails in grid view in equal-height boxes
This commit is contained in:
parent
a0c5fd0ddf
commit
0baf9e7c2c
1 changed files with 2 additions and 1 deletions
|
|
@ -6,10 +6,11 @@
|
|||
<div class="thumbnail">
|
||||
<% if package.screenshots.length>0 %>
|
||||
<% screenshot = package.screenshots.first %>
|
||||
<div style="text-align: center; height: 120px">
|
||||
<div style="text-align: center">
|
||||
<%= link_to image_tag(screenshot.image_url('small')),
|
||||
screenshot.image_url('large'),
|
||||
:class => 'fancybox thumbnail',
|
||||
:style => 'height: 130px',
|
||||
:title => (
|
||||
"#{package.description}" +
|
||||
(screenshot.description.blank? ? '' : " (#{screenshot.description})")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue