mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 02:03:45 +08:00
e1f8014acd
If the feature is enabled, staff members can construct a URL and publish a topic for others to browse without the regular Discourse chrome. This is useful if you want to use Discourse like a CMS and publish topics as articles, which can then be embedded into other systems.
20 lines
635 B
Plaintext
20 lines
635 B
Plaintext
<div class="published-page">
|
|
<div class="published-page-header">
|
|
<h1 class="published-page-title"><%= @topic.title %></h1>
|
|
|
|
<div class="published-page-author">
|
|
<img src="<%= @topic.user.small_avatar_url %>" class="avatar">
|
|
<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>
|
|
|
|
<%- if @topic.first_post.present? %>
|
|
<div class="published-page-body">
|
|
<%= @topic.first_post.cooked.html_safe %>
|
|
</div>
|
|
<%- end -%>
|
|
</div>
|
|
</div>
|