From 3138bc8367668331ec5051c159c43b02b844b467 Mon Sep 17 00:00:00 2001 From: Thomas Menari Date: Thu, 24 Jan 2013 21:46:42 +0000 Subject: [PATCH 1/2] masonry --- views/profile/profile_grid.jade | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/views/profile/profile_grid.jade b/views/profile/profile_grid.jade index ad7a5a1..4c70495 100644 --- a/views/profile/profile_grid.jade +++ b/views/profile/profile_grid.jade @@ -1,6 +1,15 @@ extends ../layout block content + script(src='/public/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} From 9f72be10d19d4d2677f10737517d64233acc9db7 Mon Sep 17 00:00:00 2001 From: Thomas Menari Date: Thu, 24 Jan 2013 21:49:16 +0000 Subject: [PATCH 2/2] hotlink masonry --- views/profile/profile_grid.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/profile/profile_grid.jade b/views/profile/profile_grid.jade index 4c70495..3cca9cc 100644 --- a/views/profile/profile_grid.jade +++ b/views/profile/profile_grid.jade @@ -1,7 +1,7 @@ extends ../layout block content - script(src='/public/jquery.masonry.min.js') + script(src='http://masonry.desandro.com/jquery.masonry.min.js') script var $container = $('.thumbnails'); $container.imagesLoaded(function(){