Permalink
Browse files

Added tags to views

  • Loading branch information...
1 parent a976125 commit 22a264ae63a651cf5e5fb37c8bc70cea37f24451 @cpursley committed Dec 6, 2012
@@ -2,9 +2,8 @@
<div class="entry"><% @dreams.each do |dream| %>
<div class="matter">
<h2><%= link_to dream.title, dream %></h2>
- <div class="meta"><i class="icon-calendar"></i> <%= dream.created_at.strftime("%B %d, %Y") %> - <i class="icon-folder-open"></i> tag, tag - <i class="icon-comment"></i><%= dream.comments.count %></div>
+ <div class="meta"><i class="icon-calendar"></i> <%= dream.created_at.strftime("%B %d, %Y") %> - <i class="icon-folder-open"></i> <%= raw dream.tag_list.map { |t| link_to t, tag_path(t) }.join(', ') %> - <i class="icon-comment"></i><%= dream.comments.count %></div>
<p><%= dream.teaser %></p>
- <p><%= raw dream.tag_list.map { |t| link_to t, tag_path(t) }.join(', ') %></p>
</br>
</div>
<% end %>
@@ -2,11 +2,10 @@
<div class="entry">
<div class="matter">
- <div class="meta"><i class="icon-calendar"></i><%= @dream.created_at.strftime("%B %d, %Y") %> - <i class="icon-folder-open"></i> tag, tag - <i class="icon-comment"></i><%= @dream.comments.count %></div>
+ <div class="meta"><i class="icon-calendar"></i><%= @dream.created_at.strftime("%B %d, %Y") %> - <i class="icon-folder-open"></i> <%= raw @dream.tag_list.map { |t| link_to t, tag_path(t) }.join(', ') %> - <i class="icon-comment"></i><%= @dream.comments.count %></div>
<div class="comment-author"><strong>By <%=@dream.user.fullname %></strong></div><br>
<p><%= @dream.body %></p>
- <p><%= raw @dream.tag_list.map { |t| link_to t, tag_path(t) }.join(', ') %></p>
</div>
</div>
Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 22a264a

Please sign in to comment.