diff --git a/views/profile/profile_grid.jade b/views/profile/profile_grid.jade index ad7a5a1..3cca9cc 100644 --- a/views/profile/profile_grid.jade +++ b/views/profile/profile_grid.jade @@ -1,6 +1,15 @@ extends ../layout block content + script(src='http://masonry.desandro.com/jquery.masonry.min.js') + script + var $container = $('.thumbnails'); + $container.imagesLoaded(function(){ + $container.masonry({ + itemSelector : '.item', + columnWidth : 240 + }); + }); div.page-header.profile_page-header h1 #{connection}