Commit ed7b3212

mo k <mo@mokhan.ca>
2013-01-26 03:59:12
add list of tags to top of tutorials page.
1 parent 4a93f27
Changed files (1)
app
views
app/views/tutorials/index.html.erb
@@ -13,7 +13,10 @@
 </script>
 <% 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| %>
+    <a href="?tags=<%= tag.name %>"><span class="label"><%= tag.name %></span></a>
+  <% end %>
 <% end -%>
 <div id="tutorials-div" class="row">
   <div class="span12">