Sha256: 8b4145ed8a28ae281952fbc7de703d7eb4898969d7b9fee1c7d462459ea584bd

Contents?: true

Size: 772 Bytes

Versions: 1

Compression:

Stored size: 772 Bytes

Contents

.effective-post
  %h2.post-title= link_to post, effective_post_path(post)

  %p.post-meta= post_meta(post, author: false)

  - if post.category == 'events'
    %table.table.post-events
      %tbody
        - if post.start_at.present?
          %tr
            %th Starts
            %td= post.start_at

        - if post.end_at.present?
          %tr
            %th Ends
            %td= post.end_at

        - if post.location.present?
          %tr
            %th Location
            %td= post.location

        - if post.website_href.present? && post.website_name.present?
          %tr
            %th Website
            %td= link_to post.website_name, post.website_href

  - if block_given?
    = yield
  - else
    .post-content.post-excerpt= post_excerpt(post)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
effective_posts-1.0.1 app/views/effective/posts/_post.html.haml