From ed7b321283324bfc58ea2a43dfadf795d51938bb Mon Sep 17 00:00:00 2001 From: mo k Date: Fri, 25 Jan 2013 20:59:12 -0700 Subject: add list of tags to top of tutorials page. --- app/views/tutorials/index.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/views/tutorials') diff --git a/app/views/tutorials/index.html.erb b/app/views/tutorials/index.html.erb index c7935c35..f31926bd 100644 --- a/app/views/tutorials/index.html.erb +++ b/app/views/tutorials/index.html.erb @@ -13,7 +13,10 @@ <% end -%> <% content_for :page_header do -%> - <%= link_to 'Add Tutorial', new_tutorial_path, :class => "btn btn-primary" %> + <%= link_to 'Add Tutorial', new_tutorial_path, :class => "btn btn-primary pull-right" %> + <% Tutorial.tag_counts.each do |tag| %> + <%= tag.name %> + <% end %> <% end -%>
-- cgit v1.2.3