UX: group member page improvements

This commit is contained in:
Arpit Jalan 2015-07-06 16:48:27 +05:30
parent ac574039a6
commit 8abf923b81
4 changed files with 15 additions and 14 deletions

View File

@ -21,4 +21,3 @@ export default Ember.ObjectController.extend({
}
}
});

View File

@ -1,19 +1,17 @@
{{#if model}}
<table class='group-members'>
<tr>
<th colspan="3" class="seen">{{i18n 'last_seen'}}</th>
<th colspan="2">{{i18n 'last_post'}}</th>
<th>{{i18n 'last_seen'}}</th>
</tr>
{{#each model.members as |m|}}
<tr>
<td class='avatar'>
{{avatar m imageSize="large"}}
<td class='avatar'>{{user-small user=m}}</td>
<td>
<span class="text">{{bound-date m.last_posted_at}}</span>
</td>
<td>
<h3>{{#link-to 'user' m}}{{m.username}}{{/link-to}}</h3>
<p>{{m.name}}</p>
</td>
<td>
<span class='last-seen-at'>{{bound-date m.last_seen_at}}</span>
<span class="text">{{bound-date m.last_seen_at}}</span>
</td>
</tr>
{{/each}}

View File

@ -115,19 +115,24 @@
overflow: hidden;
text-overflow: ellipsis;
}
th.seen {
th {
padding: 0.5em;
text-align: right;
border-bottom: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
}
td.avatar {
width: 60px;
}
td {
padding: 0.5em;
border-bottom: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
img {
margin-right: 10px;
}
span.last-seen-at {
span.text {
float: right;
color: $primary;
font-size: 1.2em;
color: dark-light-diff($primary, $secondary, 50%, -50%);
}
}
}

View File

@ -1,4 +1,3 @@
class GroupUserSerializer < BasicUserSerializer
attributes :name, :last_seen_at
attributes :name, :last_posted_at, :last_seen_at
end