ecole_eft_app/app/views/public/quotes/_index.html.haml
2013-07-18 01:23:48 +02:00

37 lines
709 B
Plaintext

.reposoire
-content_for :bandeau do
=render :partial => "bandeau"
#tags
%span.active.tag_label{ :onclick => '$(".quote").removeClass("disable");$(".quote").not(".disable").fadeIn();$(".tag_label").removeClass("active");$(this).addClass("active");'}
Toutes
-Tag.all.each do |tag|
%span.tag_label{:"data-tag_slug" => tag.slug, :onclick => '$(".quote").addClass("disable");$(".quote:regex(data-tags, .*"+$(this).data("tag_slug")+".*)").removeClass("disable");$(".quote").not(".disable").fadeIn();$(".disable").fadeOut();$(".tag_label").removeClass("active");$(this).addClass("active");'}
=tag.name
#quotes=render @quotes