mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
enable discussions in sidenav
This commit is contained in:
parent
1827749611
commit
4b7b6819db
@ -31,14 +31,13 @@
|
||||
<% end %>
|
||||
</li>
|
||||
|
||||
<!--
|
||||
<li>
|
||||
<%= link_to thredded_path do %>
|
||||
<i class="material-icons grey-text">
|
||||
forum
|
||||
</i>
|
||||
Discussions
|
||||
<###
|
||||
<%
|
||||
unread_threads = Thredded::Topic
|
||||
.followed_by(current_user)
|
||||
.unread(current_user)
|
||||
@ -48,8 +47,7 @@
|
||||
.for_user(current_user)
|
||||
.unread(current_user)
|
||||
.count
|
||||
###>
|
||||
<% unread_threads = 0; private_messages = 0 %>
|
||||
%>
|
||||
<% if unread_threads > 0 || private_messages > 0 %>
|
||||
<span class="badge <%= 'blue white-text' if private_messages > 0 %>">
|
||||
<%= unread_threads %><%= "/#{private_messages}" if private_messages > 0 %>
|
||||
@ -57,7 +55,6 @@
|
||||
<% end %>
|
||||
<% end %>
|
||||
</li>
|
||||
-->
|
||||
|
||||
<li>
|
||||
<%= link_to notes_path do %>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user