From f5a57a6f4afed5dc7b0e017628b8a5e69d22f69e Mon Sep 17 00:00:00 2001 From: danielvincent Date: Tue, 28 Sep 2010 13:05:58 -0700 Subject: [PATCH] photo partial now has labels --- app/views/photos/_photo.haml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/views/photos/_photo.haml b/app/views/photos/_photo.haml index d39fd0666..5e86e32a6 100644 --- a/app/views/photos/_photo.haml +++ b/app/views/photos/_photo.haml @@ -22,3 +22,13 @@ \-- = link_to "#{t('.show_comments')} (#{post.comments.count})", '#', :class => "show_post_comments" = render "comments/comments", :post => post + + - if post.public? + .public_aspect_tag + public + - else + .aspect_tag + %ul + - for aspect in current_user.aspects_with_post( post.id ) + %li= aspect.name +