Sha256: 3621acca12e6983395f54b96519fb01b666c8e0f27c0ad8f9e2556ac36a4c4a7

Contents?: true

Size: 826 Bytes

Versions: 8

Compression:

Stored size: 826 Bytes

Contents

<%# @param post [Thredded::PostView] %>
<%# @param user [Thredded.user_class] optional %>
<%# @param post_user_link [String] optional %>
<% topic = post.to_model.postable %>
<% user ||= post.user %>
<% post_user_link ||= user_link(user) %>
<header>
  <%= image_tag Thredded.avatar_url.call(user), class: 'thredded--post--avatar' if user %>
  <h2 class="thredded--post--user-and-topic">
    <%=
      topic_link = link_to(topic.title, post.permalink_path)
      if topic.first_post == post.to_model
        t 'thredded.users.user_started_topic_html', user_link: post_user_link, topic_link: topic_link
      else
        t 'thredded.users.user_posted_in_topic_html', user_link: post_user_link, topic_link: topic_link
      end
    %>
  </h2>
  <p class="thredded--post--created-at"><%= time_ago post.created_at %></p>
</header>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
thredded-1.1.0 app/views/thredded/posts_common/_header_with_user_and_topic.html.erb
thredded-1.0.1 app/views/thredded/posts_common/_header_with_user_and_topic.html.erb
thredded-1.0.0 app/views/thredded/posts_common/_header_with_user_and_topic.html.erb
thredded-0.16.16 app/views/thredded/posts_common/_header_with_user_and_topic.html.erb
thredded-0.16.15 app/views/thredded/posts_common/_header_with_user_and_topic.html.erb
thredded-0.16.14 app/views/thredded/posts_common/_header_with_user_and_topic.html.erb
thredded-0.16.13 app/views/thredded/posts_common/_header_with_user_and_topic.html.erb
thredded-0.16.12 app/views/thredded/posts_common/_header_with_user_and_topic.html.erb