Sha256: 4e93c119e92fcf2b935f987a5ded79b4dc692a40a296d6d95ce320808796607e

Contents?: true

Size: 867 Bytes

Versions: 6

Compression:

Stored size: 867 Bytes

Contents

<div class="topic_nav <%= controller_name %>">
  <% cache ['topic-nav-actions', current_user] 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] 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

6 entries across 6 versions & 1 rubygems

Version Path
thredded-0.0.8 app/views/thredded/shared/_topic_nav.html.erb
thredded-0.0.7 app/views/thredded/shared/_topic_nav.html.erb
thredded-0.0.6 app/views/thredded/shared/_topic_nav.html.erb
thredded-0.0.5 app/views/thredded/shared/_topic_nav.html.erb
thredded-0.0.4 app/views/thredded/shared/_topic_nav.html.erb
thredded-0.0.3 app/views/thredded/shared/_topic_nav.html.erb