Small tweaks to Group page

This commit is contained in:
Robin Ward
2014-02-07 13:46:39 -05:00
parent 130f0e19ec
commit 58247a51e8
3 changed files with 41 additions and 18 deletions

View File

@ -1,8 +1,22 @@
{{#each model}} {{#if model}}
<div class='group-member'> <table class='group-members'>
<span class='last-seen-at'>{{i18n last_seen}} {{date last_seen_at}}</span> <tr>
{{avatar this imageSize="large"}} <th colspan="3" class="seen">{{i18n last_seen}}</th>
<h3>{{#link-to 'user' this}}{{username}}{{/link-to}}</h3> </tr>
<p>{{name}}</p> {{#each model}}
</div> <tr>
{{/each}} <td class='avatar'>
{{avatar this imageSize="large"}}
</td>
<td>
<h3>{{#link-to 'user' this}}{{username}}{{/link-to}}</h3>
<p>{{name}}</p>
</td>
<td>
<span class='last-seen-at'>{{date last_seen_at}}</span>
</td>
</tr>
</div>
{{/each}}
</table>
{{/if}}

View File

@ -47,7 +47,7 @@
<div class='groups'> <div class='groups'>
{{i18n groups.title count=custom_groups.length}}: {{i18n groups.title count=custom_groups.length}}:
{{#each custom_groups}} {{#each custom_groups}}
{{#link-to 'group' this}}{{name}}{{/link-to}} {{#link-to 'group' this class="group-link"}}{{name}}{{/link-to}}
{{/each}} {{/each}}
</div> </div>
{{/if}} {{/if}}

View File

@ -116,17 +116,23 @@
width: 680px; width: 680px;
} }
.group-member { table.group-members {
img { width: 100%;
float: left; th.seen {
margin-right: 10px; text-align: right;
} }
span.last-seen-at { td.avatar {
float: right; width: 60px;
color: #999; }
td {
img {
margin-right: 10px;
}
span.last-seen-at {
float: right;
color: #999;
}
} }
clear: both;
} }
.user-content { .user-content {
@ -204,6 +210,9 @@
h1, h2 {margin-top: 10px;} h1, h2 {margin-top: 10px;}
.group-link {
color: #aae;
}
.bio { .bio {
color: #ddd; color: #ddd;