Sha256: d0ecfa8197a2ad3e8d903a09934b6d43f638b56b453377b4f7d2a7c4b9308e1b

Contents?: true

Size: 859 Bytes

Versions: 24

Compression:

Stored size: 859 Bytes

Contents

%h1= link_to "Posts", posts_path

.inside.post
  %h2= @post.title
  .date= @post.created_at.strftime('%B %d, %Y')
  = raw @post.content
  .spacer

  - if params[:action] != "preview" && @post.allow_comments?
    #comments
      %h3 Comments
      %hr
      - if @post.comments.approved.size > 0
        = render :partial => "mobile/comment", :collection => @post.comments.approved
      - else
        %p
          %small No comments have been posted yet.
      = render :partial => "mobile/comment_form", :locals => {:object => @post}

  %hr
  .pagination
    = link_to image_tag("mobile/arrow.png"), post_path(@post.previous), :class => "previous_page", :title => "Previous Post" unless @post.previous.blank?
    = link_to image_tag("mobile/arrow.png"), post_path(@post.next), :class => "next_page", :title => "Next Post" unless @post.next.blank?
  .spacer

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.1.9 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.1.8 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.1.7 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.1.6 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.1.5 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.1.4 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.1.3 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.1.2 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.1.1 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.1.0 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.0.18 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.0.17 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.0.16 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.0.15 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.0.14 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.0.13 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.0.12 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.0.11 lib/forge/app/views/mobile/post.mobile.haml
forge-cli-0.0.10 lib/forge/app/views/mobile/post.mobile.haml