<%= t('community') %>

<%= link_to t('ask_a_question'), simple_discussion.new_forum_thread_path, class: "btn btn-outline-primary btn-block" %>
<%= t('filters') %>
<%= forum_link_to simple_discussion.forum_threads_path, exact: true do %> <%= icon "bars" %> <%= t('.all_threads') %> <% end %>
<% if user_signed_in? %>
<%= forum_link_to simple_discussion.mine_forum_threads_path do %><%= icon "user-circle-o" %> <%= t('.my_questions') %> <% end %>
<%= forum_link_to simple_discussion.participating_forum_threads_path do %> <%= icon "comments-o" %> <%= t('.participating') %> <% end %>
<% end %>
<%= forum_link_to simple_discussion.answered_forum_threads_path do %> <%= icon "check" %> <%= t('.answered') %> <% end %>
<%= forum_link_to simple_discussion.unanswered_forum_threads_path do %> <%= icon "question" %> <%= t('.unanswered') %> <% end %>

<%= t('.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 %>
<%= t('.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" %> <%= t('.suscribe') %> <% end %> <% end %> <%= @forum_thread.subscribed_reason(current_user) %> <% end %>
<%= yield %>
<% parent_layout("application") %>