This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/app/views/discussions/index.rhtml

11 lines
333 B
Plaintext
Raw Permalink Normal View History

<% unless @wiki_pages.empty? -%>
<ul id="discussions">
<% for page in @wiki_pages -%>
<li class="<%= page.owner_type.to_s.empty? ? '' : page.owner_type -%>">
<%= link_to page.title, discussion_path(page) -%> (<%= page.discussions.size -%>)
</li>
<% end %>
</ul>
<%= render :partial => 'shared/pagination_links' %>
<% end -%>