3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 20:22:39 +01:00
dbot/views/profile/profile_grid.jade
2013-01-25 00:30:09 +00:00

27 lines
764 B
Plaintext

extends ../layout
block content
script(src='http://masonry.desandro.com/jquery.masonry.min.js')
script
$(function() {
var $container = $('.thumbnails');
$container.imagesLoaded(function(){
$container.masonry({
itemSelector : '.thumbnails > li',
});
});
});
div.page-header.profile_page-header
h1
#{connection}
div#backlink
a(href='../connections') « Connections
ul.thumbnails
each nick in nicks
li.span2
a.thumbnail(href='/profile/'+connection+'/'+encodeURIComponent(nick))
div.imgwrap
img(src="#{profiles[nick].profile.avatar}", alt="#{profiles[nick].profile.primary}'s photo")
span.nicks #{profiles[nick].profile.primary}