Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
Artist#refresh: Show actual photo
Browse files Browse the repository at this point in the history
  • Loading branch information
kana committed Apr 20, 2011
1 parent 2602d76 commit 50130f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion public/javascripts/metastagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ var Metastagram = (function ($) {
var a = this.librarian.photoArchive;
var photo = a[M.Maid.choose(Object.keys(a))];
var box = M.Maid.choose(boxes);
box.text(photo.title); // TODO: Show photo properly.
box.html(M.Maid.format(
'<a href="{pageUri}"><img alt="{title}" src="{imageUri}"/></a>',
$.extend(
{imageUri: photo.largeThumbnailUri},
photo
)
));
},
start: function () {
var _this = this;
Expand Down

0 comments on commit 50130f7

Please sign in to comment.