Sha256: 599e3dec8ef6f3a8cdaee668b68b3c47e18ebda50c0b1851a9ed41a791c84deb

Contents?: true

Size: 895 Bytes

Versions: 3

Compression:

Stored size: 895 Bytes

Contents

<div class="topic_nav <%= controller_name %>">
  <% cache ['topic-nav-actions', current_user, messageboard] do %>
    <% if can? :create, messageboard.topics.build %>
      <ul class="actions">
        <li class='new_topic'><%= link_to 'new topic', new_messageboard_topic_path(messageboard) %></li>
        <li class='new_private_topic'><%= link_to 'private topic', new_messageboard_private_topic_path(messageboard) %></li>
      </ul>
    <% end %>
  <% end %>

  <ul class="listings">
    <% cache ['topic-nav-list', current_user, messageboard] do %>
      <li class="topic_list"><%= link_to 'topics', messageboard_topics_path %></li>
      <% if can? :list, messageboard.private_topics.build %>
        <li class="private_topic_list"><%= link_to 'private topics', messageboard_private_topics_path %></li>
      <% end %>
    <% end %>

    <%= render 'thredded/search/form' %>
  </ul>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thredded-0.0.12 app/views/thredded/shared/_topic_nav.html.erb
thredded-0.0.10 app/views/thredded/shared/_topic_nav.html.erb
thredded-0.0.9 app/views/thredded/shared/_topic_nav.html.erb