3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-05 02:19:26 +01:00
dbot/views/profile/profile_grid.jade
Sam Nicholls ab0a110a8e Initial databankerisation of profile [#331]
* Stats functionality disabled until completion of SamStudio8/dbot-stats#98
* Profile grid currently only works with dbType set to memory
* Merge user functionality temporarily disabled
2013-04-20 22:51:36 +01:00

27 lines
739 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 thumbnail in thumbnails
li.span2
a.thumbnail(href='/profile/'+connection+'/'+encodeURIComponent(thumbnail.nick))
div.imgwrap
img(src="#{thumbnail.avatar}", alt="#{thumbnail.nick}'s photo")
span.nicks #{thumbnail.nick}