%h1= t ".title", name: @tag.name

%h2= t ".issues"
.results
  - if @issues.count == 0
    %p= t ".no_results_found"
  - else
    %ol
      - @issues.each do |i|
        %li= link_to i.title, issue_path(i)
%h2= t ".threads"
.results
  - if @threads.count == 0
    %p= t ".no_results_found"
  - else
    %ol
      - @threads.each do |t|
        %li= link_to t.title, thread_path(t)
%h2= t ".library_items"
.results
  - if @library_items.count == 0
    %p= t ".no_results_found"
  - else
    %ol
      - @library_items.each do |item|
        %li= link_to item.title, item.component

%h1= t ".title", name: @tag.name

%h2= t ".issues"
.results
  - if @issues.count == 0
    %p= t ".no_results_found"
  - else
    %ol
      - @issues.each do |i|
        %li= link_to i.title, issue_path(i)
%h2= t ".threads"
.results
  - if @threads.count == 0
    %p= t ".no_results_found"
  - else
    %ul.thread-list
      = render partial: "message_threads/compact", collection: @threads, as: :thread
%h2= t ".library_items"
.results
  - if @library_items.count == 0
    %p= t ".no_results_found"
  - else
    %ol
      - @library_items.each do |item|
        %li= link_to item.title, item.component

Use the thread compact partial for displaying the list of threads.
Use the thread compact partial for displaying the list of threads.
