Sha256: 3383c9bcff1c7bc10117464be475d76d5571f468742d8901d3f0a5a76763a7ee

Contents?: true

Size: 1.63 KB

Versions: 14

Compression:

Stored size: 1.63 KB

Contents

<%= content_tag :article,
                id:    dom_id(topic),
                class: ['thredded--topics--topic', topic_css_classes(topic)],
                data: {topic: topic.id, messageboard: topic.messageboard_id} do %>
  <div class="thredded--topics--posts-count"><%= topic.posts_count %></div>

  <div class="thredded--topics--follow-info" title="<%= topic_follow_reason_text topic.follow_reason %>">
    <svg class="thredded--topics--follow-icon" viewBox="0 0 116 121" role="img">
      <% if topic.followed? %>
        <use xlink:href="#thredded-follow-icon"></use>
      <% else %>
        <use xlink:href="#thredded-unfollow-icon"></use>
      <% end %>
    </svg>
  </div>

  <h1 class="thredded--topics--title">
    <%= link_to topic.title, topic.path %>
  </h1>

  <% if topic.categories.any? %>
    <ul class="thredded--topics--categories">
      <%= render topic.categories %>
    </ul>
  <% end %>

  <cite class="thredded--topics--updated-by">
    <%= time_ago topic.last_post_at %>
    <%= user_link topic.last_user %>
  </cite>

  <cite class="thredded--topics--started-by">
    <%= time_ago topic.created_at %>
    <%= user_link topic.user %>
  </cite>

  <% if topic.blocked? && topic.can_moderate? %>
    <span class="thredded--topics--moderation-state thredded--alert thredded--alert-danger">
      <%= render 'thredded/shared/content_moderation_blocked_state', moderation_record: topic.last_moderation_record %>
    </span>
  <% end %>
<% end %>

<% if local_assigns[:sticky_topics_divider] &&
    !topic_iteration.last? && topic.sticky? && !topics[topic_counter + 1].sticky? %>
  <%= render 'thredded/topics/sticky_topics_divider' %>
<% end %>

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
thredded-0.15.3 app/views/thredded/topics/_topic.html.erb
thredded-0.15.2 app/views/thredded/topics/_topic.html.erb
thredded-0.15.1 app/views/thredded/topics/_topic.html.erb
threddedDANIEL-0.14.5 app/views/thredded/topics/_topic.html.erb
thredded-0.14.4 app/views/thredded/topics/_topic.html.erb
thredded-0.14.3 app/views/thredded/topics/_topic.html.erb
thredded-0.14.2 app/views/thredded/topics/_topic.html.erb
thredded-0.14.1 app/views/thredded/topics/_topic.html.erb
thredded-0.14.0 app/views/thredded/topics/_topic.html.erb
thredded-0.13.8 app/views/thredded/topics/_topic.html.erb
thredded-0.13.7 app/views/thredded/topics/_topic.html.erb
thredded-0.13.6 app/views/thredded/topics/_topic.html.erb
thredded-0.13.5 app/views/thredded/topics/_topic.html.erb
thredded-0.13.4 app/views/thredded/topics/_topic.html.erb