Sha256: 688488b490c802379d272c9f088cc42ea5c626f81aa5ba4d40f4452b43d430e3
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
- post ||= @post - first ||= post.first? - with_context ||= false - headless ||= first unless defined? headless - cssclasses = [] - cssclasses << 'first' if post.first? - cssclasses << 'reply' unless post.first? - cssclasses << 'deleted' if post.frozen? .post{:id => post.dom_id, :class => cssclasses.join(' ')} - unless headless = standard_gravatar_for(post.reader) .post_header - unless headless - if with_context %h2.reply - if post.comment? = t('forum_extension.comment_on') -elsif post.reply? = t('forum_extension.reply_to') = link_to post.topic.name, paginated_post_url(post) - else %h2 = post.reader.name %p.context - if with_context = render :partial => 'posts/context', :locals => {:post => post} = friendly_date(post.created_at) + '.' = render :partial => 'posts/edit_links', :locals => {:post => post} .wrapper .post_body = clean_html(post.body) = render :partial => 'posts/attachments', :locals => {:post => post}
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
radiant-forum-extension-3.0.0.rc4 | app/views/posts/_post.html.haml |
radiant-forum-extension-3.0.0.rc3 | app/views/posts/_post.html.haml |