Created
April 2, 2013 00:54
-
-
Save acidjazz/5289104 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mixin tools(media) | |
.tools | |
if media.flagged != 1 | |
.flag flag | |
else | |
.flag unflag | |
if media.sticky != 1 | |
.stick stick | |
else | |
.stick unstick | |
mixin info(media) | |
.info | |
| #{media.likes} | |
.likes | |
| #{media.tags} | |
.tags | |
| #{media.comments} | |
.comments | |
each media, i in data | |
if (admin == true) | |
.thumbnail('data-id'=media.id).admin | |
mixin tools(media) | |
mixin info(media) | |
img('src'=media.thumbnail) | |
else | |
.thumbnail('data-id'=media.id) | |
mixin info(media) | |
img('src'=media.thumbnail) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment