indentlabs/notebook

View on GitHub
app/views/thredded/topics/_followers.html.erb

Summary

Maintainability
Test Coverage
<% if Thredded.show_topic_followers %>
  <div class="thredded--topic-followers">
    <% if topic.followers.present? %>
      <%# t('thredded.topics.followed_by') %>
      <span class="tooltipped" data-tooltip="<%= pluralize topic.followers.count, 'person' %> will be notified of any updates to this thread." data-position="right">
        <i class="material-icons tiny" style="position: relative; top: 2px;">people_alt</i>
        <%= pluralize topic.followers.count, 'follower' %>
      </span>
      <%# topic.followers.each do |user| %>
        <%#= user_link(user) %>
      <%# end %>
    <% else %>
      <%= t('thredded.topics.followed_by_noone')%>
    <% end %>
  </div>
<% end %>