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
app/assets
javascripts/discourse
models
templates/mobile/list
stylesheets/mobile

View file

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

View file

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

View file

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