Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed haml blog post partial

  • Loading branch information...
commit a2ef9562372d6ea6fbfd09005f28bfa375c45cbb 1 parent 04aacef
@alce alce authored
Showing with 0 additions and 91 deletions.
  1. +0 −91 app/views/partials/_blog_post.html.haml
View
91 app/views/partials/_blog_post.html.haml
@@ -1,91 +0,0 @@
-%style
- :sass
- .blog_post.first
- h2, h2 a
- font: normal 30px/28px 'arial black', arial, sans-serif !important
- border-bottom: 1px solid #ccc
-
- .blog_post
- border: 0px solid gray
- margin-bottom: 20px
-
- h2
- margin-bottom: 0
- h2, h2 a
- font: normal 20px/23px 'arial black', arial, sans-serif !important
- text-decoration: none !important
- h2 a:hover
- text-decoration: underline !important
-
- .image
- float: left
- border: 1px solid #ccc
- margin: 10px
- margin-top: 0
-
- .date
- color: #666
- .read_more
- font-weight: bold
-
- .comment + .comment
- border-top: 1px dashed #ccc
-
- .clear
- clear: both
-
-:ruby
- # _counter is defined only if we pass :collection to the partial
- if defined?(blog_post_counter)
- showing_individual_post = false
- else
- showing_individual_post = true
- blog_post_counter = 0
- end
-
- if blog_post_counter == 0
- max_width = 250
- css_class = 'first'
- else
- max_width = 75
- css_class = ''
- end
-
-.blog_post.clear{:id => "blog_post_#{blog_post.id}", :class => css_class}
- - if blog_post.attachment
- -# .image= image_tag_with_max_size blog_post.attachment.file_path, blog_post.attachment.full_file_location, :width => max_width
- .image= image_tag blog_post.attachment.file_path
-
- %h2= link_to h(blog_post.name), href = _blog_post_path(blog_post)
-
- .date= blog_post.published_at.to_s(:long)
-
- .body
- - if showing_individual_post or blog_post.summary.blank?
- = blog_post.body
- - else
- = blog_post.summary
- %p.read_more= link_to 'Read More »', href
-
- - if showing_individual_post || blog_post_counter == 0
- .meta
- - unless blog_post.category_id.blank?
- Posted in #{link_to h(blog_post.category_name), _blog_path(blog_post.blog, 'posts_in_category', :category => blog_post.category_name)}
- %strong |
- - if blog_post.tags.any?
- Tags:
- %span.tags
- = blog_post.tags.map{|t| link_to(h(t.name), _blog_path(blog_post.blog, 'posts_with_tag', :tag => t.name)) }.join(", ")
- %strong |
- = link_to h(pluralize(blog_post.comments_count, "Comment")), "#{_blog_post_path(blog_post)}#comments"
- %br.clear/
-
- - comments = blog_post.comments.reject(&:new_record?)
- - if showing_individual_post and comments.any?
- %h2 Comments
- - comments.each_with_index do |comment, i|
- %div{:class => "comment #{'first' if i == 0}"}
- = h comment.body
- %p
- \—#{comment.url.present? ? link_to(h(comment.author), comment.url) : h(comment.author)}
-
Please sign in to comment.
Something went wrong with that request. Please try again.