Sha256: 494b3e81f946b64d11fe6a8194ecb104ad9e269578c6f8424eb7fbe493eae0d1
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
<%= cache forum_thread do %> <div class="forum-thread"> <div class="row"> <div class="col-sm-1 text-center"> <%= avatar_tag(forum_thread.user.email) %> </div> <div class="col"> <h4> <% if forum_thread.solved? %> <span class="text-success"><%= icon "check-circle" %></span> <% end %> <%= link_to simple_discussion.forum_thread_path(forum_thread) do %> <%= icon "thumb-tack", class: "text-muted" if forum_thread.pinned? %> <%= forum_thread.title %> <% end %> </h4> <div class="thread-details"> <strong><%= category_link(forum_thread.forum_category) %></strong> • <%= t('asked_time_ago', time: time_ago_in_words(forum_thread.created_at), author: forum_thread.user.name) %> </div> <p class="text-muted"><%= truncate(forum_thread.forum_posts.first.body, length: 200) %></p> </div> <div class="col-sm-2 text-center"> <%= link_to simple_discussion.forum_thread_path(forum_thread), class: "thread-posts-count" do %> <span class="count"><%= forum_thread.forum_posts_count %></span> <small><%= t("post", count: forum_thread.forum_posts_count) %></small> <% end %> </div> </div> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_discussion-1.0.1 | app/views/simple_discussion/forum_threads/_forum_thread.html.erb |
simple_discussion-1.0.0 | app/views/simple_discussion/forum_threads/_forum_thread.html.erb |