diaspora/diaspora — pull request #2318 by rekado (2011-11-05 04:49:34+00:00)
Title: Don't collapse post contents when viewing only a single post

One should not have to click on "show more..." if one is viewing a single post on its dedicated view. This introduces a "collapsible" helper which takes a controller object. As the _stream_element partial is used by many views, passing a variable along the chain to force full display of the post contents seemed inelegant. The helper will only attach the 'collapsible' class if the post is not viewed through the posts/show view.