Permalink
Browse files

convert carousel from erb to haml

  • Loading branch information...
mockdeep committed Sep 23, 2012
1 parent 430dc2a commit f12a9cf15fac7e1ad678f1c3a3a47751520f8d5f
Showing with 8 additions and 12 deletions.
  1. +0 −12 app/views/layouts/_carousel.html.erb
  2. +8 −0 app/views/layouts/_carousel.html.haml
@@ -1,12 +0,0 @@
- <div id="myCarousel" class="carousel slide">
- <!-- Carousel items -->
- <div class="carousel-inner">
- <div class="active item"><%= image_tag("slide_a.jpg") %></div>
- <div class="item"><%= image_tag("slide_b.jpg") %></div>
- <div class="item"><%= image_tag("slide_c.jpg") %></div>
- <div class="item"><%= image_tag("slide_d.jpg") %></div>
- </div>
- <!-- Carousel nav -->
- <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
- <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
- </div>
@@ -0,0 +1,8 @@
+#myCarousel{ :class => "carousel slide" }
+ .carousel-inner
+ %div{ :class => "active item" }= image_tag("slide_a.jpg")
+ .item= image_tag("slide_b.jpg")
+ .item= image_tag("slide_c.jpg")
+ .item= image_tag("slide_d.jpg")
+ = link_to("", "#myCarousel", :class => "carousel-control left", "data-slide" => "prev")
+ = link_to("", "#myCarousel", :class => "carousel-control right", "data-slide" => "next")

0 comments on commit f12a9cf

Please sign in to comment.