<%= link_to 'Ask A Question', simple_discussion.new_forum_thread_path, class: "btn btn-outline-primary btn-block" %>
Filters
<%= forum_link_to simple_discussion.forum_threads_path, exact: true do %><%= icon "bars" %> All Threads <% end %>
<% if user_signed_in? %>
<%= forum_link_to simple_discussion.mine_forum_threads_path do %><%= icon "user-circle-o" %> My Questions<% end %>
<%= forum_link_to simple_discussion.participating_forum_threads_path do %><%= icon "comments-o" %> Participating<% end %>
<% end %>
<%= forum_link_to simple_discussion.answered_forum_threads_path do %><%= icon "check" %> Answered<% end %>
<%= forum_link_to simple_discussion.unanswered_forum_threads_path do %><%= icon "question" %> Unanswered<% end %>

By Category

<%= forum_link_to simple_discussion.forum_threads_path, exact: true do %><%= icon "circle" %> All<% end %>
<% ForumCategory.sorted.each do |category| %>
<%= forum_link_to simple_discussion.forum_category_forum_threads_path(category) do %> <%= icon "circle", style: "color: #{category.color}" %> <%= category.name %> <% end %>
<% end %>
<% if @forum_thread.present? && @forum_thread.persisted? %>
<%# User has not posted in the thread or subscribed %>
Notifications
<%= link_to simple_discussion.forum_thread_notifications_path(@forum_thread), method: :post, class: "btn btn-secondary btn-sm btn-block mb-2" do %> <% if @forum_thread.subscribed? current_user %> <%= icon "bell-slash" %> Unsubscribe <% else %> <%= icon "bell" %> Subscribe <% end %> <% end %> <%= @forum_thread.subscribed_reason(current_user) %> <% end %>
<%= yield %>
<% parent_layout("application") %>