mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
First attempt: Move username on top of embedded posts
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<header>
|
||||
<header class='embedded'>
|
||||
<% if @topic_view.topic.posts_count < 2 %>
|
||||
<%= link_to(I18n.t('embed.start_discussion'), @topic_view.topic.url, class: 'button', target: '_blank') %>
|
||||
<% elsif @topic_view.topic.posts_count > 10 %>
|
||||
@@ -17,11 +17,14 @@
|
||||
|
||||
<div class='author'>
|
||||
<a href='/users/<%= post.username %>' target="_blank"><img src='<%= post.user.small_avatar_url %>'></a>
|
||||
<h3 class='username'>
|
||||
<a href='/users/<%= post.username %>' target="_blank" class='<% if post.user.staff? %>staff<% end %><% if post.user.new_user? %>new-user<% end %>'><%= post.user.username %></a>
|
||||
</h3>
|
||||
</div>
|
||||
<div class='cooked'>
|
||||
<h3 class='username'>
|
||||
<a href='/users/<%= post.username %>' target="_blank" class='<% if post.user.staff? %>staff<% end %><% if post.user.new_user? %>new-user<% end %>'><%= post.user.username %></a>
|
||||
<%- if post.user.title.present? %>
|
||||
<span class='title'><%= post.user.title %></span>
|
||||
<%- end %>
|
||||
</h3>
|
||||
<%= raw post.cooked %>
|
||||
|
||||
<%- if post.reply_count > 0 %>
|
||||
|
||||
Reference in New Issue
Block a user