Sha256: be4148f29dc35838b07dfbd22c1dbdc7726cf2d0fea5fc8892da5e1971d99e8d

Contents?: true

Size: 581 Bytes

Versions: 33

Compression:

Stored size: 581 Bytes

Contents

<%-
  set_title "#{Blog.first.title}: #{@blog_category ? @blog_category.name : ''}"
  @meta_description = @blog_category.description
-%>

<%- unless @blog_category.all_posts.empty? -%>
<ul>
  <%- @blog_category.all_posts.each do |post| -%>
  <li>
    <%= link_to post.title, post.path -%><br />
    <%= post.summary -%>
  </li>
  <%- end -%>
</ul>
<%- end -%>

<%- unless @blog_category.children.empty? -%>
  <p>Subcategories</p>

  <ul>
  <%- @blog_category.children.each do |category| -%>
    <li><%= link_to category.name, category.url -%></li>
  <%- end -%>
  </ul>
<%- end -%>

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
blog_logic-1.4.15 app/views/blog_categories/show.html.erb
blog_logic-1.4.14 app/views/blog_categories/show.html.erb
blog_logic-1.4.13 app/views/blog_categories/show.html.erb
blog_logic-1.4.12 app/views/blog_categories/show.html.erb
blog_logic-1.4.11 app/views/blog_categories/show.html.erb
blog_logic-1.4.10 app/views/blog_categories/show.html.erb
blog_logic-1.4.9 app/views/blog_categories/show.html.erb
blog_logic-1.4.8 app/views/blog_categories/show.html.erb
blog_logic-1.4.7 app/views/blog_categories/show.html.erb
blog_logic-1.4.6 app/views/blog_categories/show.html.erb
blog_logic-1.4.5 app/views/blog_categories/show.html.erb
blog_logic-1.4.4 app/views/blog_categories/show.html.erb
blog_logic-1.4.3 app/views/blog_categories/show.html.erb
blog_logic-1.4.2 app/views/blog_categories/show.html.erb
blog_logic-1.4.1 app/views/blog_categories/show.html.erb
blog_logic-1.4.0 app/views/blog_categories/show.html.erb
blog_logic-1.3.1 app/views/blog_categories/show.html.erb
blog_logic-1.3.0 app/views/blog_categories/show.html.erb
blog_logic-1.2.4 app/views/blog_categories/show.html.erb
blog_logic-1.2.3 app/views/blog_categories/show.html.erb