
.timeline_container
  .timeline_line
    -input.timeline_history.timeline_years.order("year ASC").each do |timeline_year|
      .timeline_block
        .tm_date=timeline_year.year
        .tm_point
        .tm_content
          %ul
            -i = 0
            -timeline_year.timeline_contents.each do |timeline_content|
              -i += 1
              -style = ""
              -style = "min-height:150px" if timeline_content.image_file
              -style = "min-height:190px" if timeline_content.image_file and i == 1
              %li{:style => style}
                -if timeline_content.image_file
                  
                  .images
                    =image_tag(timeline_content.image_file.file.large.medium, :class => "small "+("first" if i == 1).to_s)
                    =image_tag(timeline_content.image_file.file.large.medium, :class => "large")
                    -if timeline_content.image_file and timeline_content.image_file.photograph
                      -@page_images_credits << timeline_content.image_file.photograph
                    
                .inner
                  =raw timeline_content.content
                .clear
