Sha256: af1f3054e770645d2b8d2aa2275434264d613b1b2768e293b87aabdbe05b47a3

Contents?: true

Size: 719 Bytes

Versions: 5

Compression:

Stored size: 719 Bytes

Contents

<% current = current_page_unread_topics? %>
<% if unread_topics_count > 0 || current %>
  <li class="thredded--user-navigation--unread-topics thredded--user-navigation--item<%= ' thredded--is-current' if current %>">
    <%= link_to current ? nav_back_path(messageboard) : unread_topics_path(messageboard: messageboard), rel: 'nofollow' do %>
      <%= inline_svg 'thredded/follow.svg', class: 'thredded--icon' %>
      <span class="thredded--nav-text"><%= t('thredded.nav.unread_topics') %></span>
      <% if unread_followed_topics_count > 0 -%>
        <span class="thredded--user-navigation--unread-topics--followed-count"><%= unread_followed_topics_count %></span>
      <% end -%>
    <% end %>
  </li>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thredded-0.16.0 app/views/thredded/shared/nav/_unread_topics.html.erb
thredded-0.15.5 app/views/thredded/shared/nav/_unread_topics.html.erb
thredded-0.15.4 app/views/thredded/shared/nav/_unread_topics.html.erb
thredded-0.15.3 app/views/thredded/shared/nav/_unread_topics.html.erb
thredded-0.15.2 app/views/thredded/shared/nav/_unread_topics.html.erb