Skip to content

Instantly share code, notes, and snippets.

@acidjazz
Created April 2, 2013 00:54
Show Gist options
  • Save acidjazz/5289104 to your computer and use it in GitHub Desktop.
Save acidjazz/5289104 to your computer and use it in GitHub Desktop.
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