Sha256: b0ff740d232a1ca5ddbad7b4937d27f345c5da6994a1ee44b2dcd95b5ef4f330

Contents?: true

Size: 808 Bytes

Versions: 2

Compression:

Stored size: 808 Bytes

Contents

layout: two-columns
--- |
<div class="entry">
<% if mode == :all_tags %>

<div class="body">
  <h3>All Tags</h3>
  <ul>
  <% tags.each do |tag| %>
    <li><%= link_to tag.name, :tag=>tag %>, <%= tag.posts.length %> posts, <%= tag.pages.length %> pages.</li>
  <% end %>
  </ul>
</div>

<% else %>

<% if tag.has_posts? %>
  <h3>Posts tagged "<%= tag.name %>"</h3>
  <div class="body">
  
  <ul>
  <% tag.posts.each do |post| %>
    <li><b><%= link_to post.title, :post=>post %></b> on <%= post.publish_date.to_s %></li>
  <% end %>
  </ul>
  </div>
<% end %>
<% if tag.has_pages? %>

  <h3>Pages tagged with "<%= tag.name %>"</h3>
  <div class="body">
  <ul>
  <% tag.pages.each do |page| %>
    <li><b><%= link_to page.title, :page=>page %></b></li>
  <% end %>
  </ul>
  </div>
<% end %>

<% end %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bloggit-1.0.3 test/fixtures/test.blog/themes/default/templates/tag_archive.rhtml
bloggit-1.0.7 test/fixtures/test.blog/themes/default/templates/tag_archive.rhtml