2020-04-29 00:24:24 +08:00
|
|
|
<div class="published-page-wrapper">
|
2020-04-09 00:52:36 +08:00
|
|
|
<div class="published-page-header">
|
|
|
|
<h1 class="published-page-title"><%= @topic.title %></h1>
|
|
|
|
|
|
|
|
<div class="published-page-author">
|
2020-04-13 23:57:27 +08:00
|
|
|
<img width="45" height="45" src="<%= @topic.user.avatar_template.gsub('{size}', '90') %>" class="avatar">
|
2020-04-09 00:52:36 +08:00
|
|
|
<div class="published-page-author-details">
|
|
|
|
<div class="username"><%= @topic.user.username %></div>
|
|
|
|
<div class="topic-created-at"><%= short_date(@topic.created_at) %></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-26 05:47:05 +08:00
|
|
|
<%- if @topic.first_post.present? %>
|
|
|
|
<div class="published-page-body">
|
|
|
|
<%= @topic.first_post.cooked.html_safe %>
|
|
|
|
</div>
|
|
|
|
<%- end -%>
|
2020-04-09 00:52:36 +08:00
|
|
|
</div>
|