UX: Add post action text in non-JS topic view
This commit is contained in:
parent
da4fc2e8a1
commit
3d52f690b3
|
@ -47,10 +47,16 @@
|
||||||
<div class='creator'>
|
<div class='creator'>
|
||||||
<span>
|
<span>
|
||||||
<a href='<%= Discourse.base_uri %>/u/<%= u.username %>'><b itemprop='author'><%= u.username %></b></a>
|
<a href='<%= Discourse.base_uri %>/u/<%= u.username %>'><b itemprop='author'><%= u.username %></b></a>
|
||||||
<%= "(#{u.name})" if (SiteSetting.display_name_on_posts && SiteSetting.enable_names? && !u.name.blank?) %>
|
<%= "(#{u.name})" if (SiteSetting.display_name_on_posts && SiteSetting.enable_names? && !u.name.blank?) %>
|
||||||
<time datetime='<%= post.created_at.to_formatted_s(:iso8601) %>' itemprop='datePublished'>
|
<%
|
||||||
<%= post.created_at %>
|
who_username = post.custom_fields["action_code_who"] || ""
|
||||||
</time>
|
if post.action_code
|
||||||
|
%>
|
||||||
|
<%= t("js.action_codes.#{post.action_code}", when: "", who: who_username).html_safe %>
|
||||||
|
<% end %>
|
||||||
|
<time datetime='<%= post.created_at.to_formatted_s(:iso8601) %>' itemprop='datePublished'>
|
||||||
|
<%= post.created_at %>
|
||||||
|
</time>
|
||||||
</span>
|
</span>
|
||||||
<span itemprop='position'>#<%= post.post_number %></span>
|
<span itemprop='position'>#<%= post.post_number %></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue