UX: use 'last poster' avatar for mobile topics list

This commit is contained in:
Régis Hanol 2015-10-30 16:50:46 +01:00
parent 574805b682
commit bde4bc52d7
3 changed files with 4 additions and 8 deletions

View File

@ -8,7 +8,7 @@ const Topic = RestModel.extend({
message: null,
errorLoading: false,
creator: Ember.computed.alias("posters.firstObject.user"),
lastPoster: Ember.computed.alias("posters.lastObject.user"),
@computed('fancy_title')
fancyTitle(title) {

View File

@ -1,6 +1,6 @@
<td>
<div class='creator pull-left'>
<a href="{{content.lastPostUrl}}">{{avatar topic.creator imageSize="large"}}</a>
<div class='pull-left'>
<a href="{{content.lastPostUrl}}">{{avatar topic.lastPoster imageSize="large"}}</a>
</div>
<div class='right'>

View File

@ -63,12 +63,8 @@
.topic-list {
.creator {
margin-left: 5px;
}
.right {
margin-left: 60px;
margin-left: 55px;
}
> tbody > tr {