mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 19:37:55 +08:00
some cleanup thanks to eviltrout
This commit is contained in:
parent
5c923fef58
commit
bc31d25132
|
@ -7,5 +7,6 @@ export default Ember.Component.extend({
|
|||
@computed('categories.[].uploaded_logo.url')
|
||||
anyLogos() {
|
||||
return this.get("categories").any((c) => { return !Ember.isEmpty(c.get('uploaded_logo.url')); });
|
||||
return this.get("categories").any(c => !Ember.isEmpty(c.get('uploaded_logo.url')));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,18 +1,16 @@
|
|||
{{#if categories}}
|
||||
{{#each categories as |c|}}
|
||||
<div class='category-box'>
|
||||
<a href={{c.url}}>
|
||||
{{#if c.uploaded_logo.url}}
|
||||
{{cdn-img src=c.uploaded_logo.url class="logo"}}
|
||||
{{/if}}
|
||||
{{#each categories as |c|}}
|
||||
<div class='category-box'>
|
||||
<a href={{c.url}}>
|
||||
{{#if c.uploaded_logo.url}}
|
||||
{{cdn-img src=c.uploaded_logo.url class="logo"}}
|
||||
{{/if}}
|
||||
|
||||
<div class='details'>
|
||||
<h3>{{c.name}}</h3>
|
||||
<div class='description'>
|
||||
{{{c.description_excerpt}}}
|
||||
</div>
|
||||
<div class='details'>
|
||||
<h3>{{c.name}}</h3>
|
||||
<div class='description'>
|
||||
{{{c.description_excerpt}}}
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
{{/each}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user