Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions app/models/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ export default class Group extends ModelBase.extend({
fastboot : service(),


name : attr('string'),
about : attr('string'),
logoUrl : attr('string'),
bannerUrl : attr('string'),
createdAt : attr('moment', { readOnly: true }),
modifiedAt : attr('moment'),
deletedAt : attr('moment'),
followerCount : attr('number'),
socialLinks : attr(),
name : attr('string'),
about : attr('string'),
logoUrl : attr('string'),
bannerUrl : attr('string'),
thumbnailImageUrl : attr('string', { readOnly: true }),
createdAt : attr('moment', { readOnly: true }),
modifiedAt : attr('moment'),
deletedAt : attr('moment'),
followerCount : attr('number'),
socialLinks : attr(),
/**
* Relationships
*/
Expand Down
2 changes: 1 addition & 1 deletion app/templates/components/group-card.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{#unless this.device.isMobile}}
<div class="ui card three wide computer six wide tablet column">
<a class="image" href={{href-to 'group-public' @group.id}}>
<Widgets::SafeImage @src={{if @group.bannerUrl @group.bannerUrl "/images/group.png"}} />
<Widgets::SafeImage @src={{if @group.thumbnailImageUrl @group.thumbnailImageUrl "/images/group.png"}} />
</a>
</div>
{{/unless}}
Expand Down