You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
703 B
20 lines
703 B
extends layout
|
|
block content
|
|
div.uk-grid
|
|
br
|
|
br
|
|
div.uk-width-1-1.uk-text-center
|
|
h1 #{ucfirst(title)} Fan Art
|
|
div.uk-width-1-1
|
|
div#fan-art.uk-panel.uk-panel-box
|
|
|
|
block postscript
|
|
script.
|
|
var art = !{JSON.stringify(fanart)};
|
|
var $holder = $(".uk-panel-box");
|
|
art.forEach(function(elem) {
|
|
var $thumb = $("<a href='"+elem.url+"' class='uk-thumbnail uk-thumbnail-small'></a>");
|
|
$thumb.append("<img src='"+elem.url+"' />");
|
|
$thumb.append("<div class='uk-thumbnail-caption'>Artist: <a href='"+elem.user_link+"'>"+elem.user+"</a></div>");
|
|
$holder.append($thumb);
|
|
});
|