First attempt: Move username on top of embedded posts

This commit is contained in:
Robin Ward
2014-05-09 15:14:00 -04:00
parent 6b5d9a1ede
commit e713cc40c4
2 changed files with 31 additions and 22 deletions

View File

@@ -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 %>