summaryrefslogtreecommitdiff
path: root/app/views/tutorials
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2013-01-25 20:59:12 -0700
committermo k <mo@mokhan.ca>2013-01-25 20:59:12 -0700
commited7b321283324bfc58ea2a43dfadf795d51938bb (patch)
tree24d89186e3ba7256f3a96c982d1e30345c017d61 /app/views/tutorials
parent4a93f27d60ef74d179d6b0e40556b4176fc29aab (diff)
add list of tags to top of tutorials page.
Diffstat (limited to 'app/views/tutorials')
-rw-r--r--app/views/tutorials/index.html.erb5
1 files changed, 4 insertions, 1 deletions
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 @@
</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">