3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00
dbot/views/profile/profile_grid.jade

24 lines
720 B
Plaintext
Raw Normal View History

2013-01-24 02:02:50 +01:00
extends ../layout
block content
2013-01-24 22:49:16 +01:00
script(src='http://masonry.desandro.com/jquery.masonry.min.js')
2013-01-24 22:46:42 +01:00
script
var $container = $('.thumbnails');
$container.imagesLoaded(function(){
$container.masonry({
itemSelector : '.item',
columnWidth : 240
});
});
2013-01-24 02:06:05 +01:00
div.page-header.profile_page-header
h1
#{connection}
2013-01-24 20:39:28 +01:00
ul.thumbnails
2013-01-24 02:06:05 +01:00
each profile, key in profiles
if profile.hasOwnProperty('profile') && profile.profile.avatar
2013-01-24 20:39:28 +01:00
li.span2
a.thumbnail(href='/profile/'+connection+'/'+encodeURIComponent(key))
div.imgwrap
img(src="#{profile.profile.avatar}", alt="#{key}'s photo")
span.nicks #{profile.profile.primary}