Newer
Older
-# Copyright (c) 2010-2011, Diaspora Inc. This file is
danielvincent
a validé
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
.stream-element{data: {guid: post.id}, class: post.respond_to?(:nsfw) && post.nsfw ? "shield-active" : ""}
= render "reshares/reshare", reshare: post, post: post.absolute_root
danielgrippi
a validé
danielvincent
a validé
.content
danielvincent
a validé
- unless post.is_a?(Reshare)
= render "shared/nsfw_shield", post: post
.nsfw-hidden
= render "status_messages/status_message", post: post, photos: post.photos
danielvincent
a validé
.bottom-bar.nsfw-hidden{class: ("inactive" unless defined?(expanded_info) && expanded_info)}
= render partial: "comments/post_stats", locals: {post: post}
- if defined?(expanded_info) && expanded_info
!= show_comments_link(post, "active")
= render partial: "comments/comment", collection: post.comments.for_a_stream, locals: {post: post}
.add-comment-switcher{class: ("hidden" unless defined?(expanded_info) && expanded_info)}
= render partial: "comments/new_comment", locals: {post_id: post.id}