Skip to content

Instantly share code, notes, and snippets.

@pencilcheck
Created April 24, 2015 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pencilcheck/fbdbaf34a5d80c830b23 to your computer and use it in GitHub Desktop.
Save pencilcheck/fbdbaf34a5d80c830b23 to your computer and use it in GitHub Desktop.
<:carousel results="{{ _results }}" name="home-carousel"></:carousel>
<:Carousel>
<div id="{{ attrs.name }}" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
{{ attrs.results.each_with_index do |recommendation, index| }}
<li data-target="#{{ attrs.name }}" data-slide-to="{{ index }}" class="{{ if index == 0 }}active{{ end }}"></li>
{{ end }}
</ol>
<!-- Controls -->
<a style='opacity: 0;' class="left carousel-control" href="#{{ attrs.name }}" role="button" data-slide="prev">
<span>Left</span>
</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment