This commit is contained in:
Eric Berry 2018-06-12 15:21:23 -06:00
parent 11a621fd50
commit 1b7f642da6
2 changed files with 25 additions and 31 deletions

View File

@ -97,8 +97,4 @@ export default Ember.Component.extend({
return this.get('placement') === 'topic-list-top'; return this.get('placement') === 'topic-list-top';
}.property('placement'), }.property('placement'),
hasAd: function() {
return ((this.get('adDetails.description') || '').length > 0);
}.property('adDetails')
}); });

View File

@ -1,31 +1,29 @@
{{#if showAd}} {{#if showAd}}
{{#if hasAd}} {{#if site.mobileView}}
{{#if site.mobileView}} {{#if displayPostBottom}}
{{#if displayPostBottom}} {{partial "components/codefund/post-bottom"}}
{{partial "components/codefund/post-bottom"}} {{/if}}
{{/if}} {{#if displayTopicAbovePostStream}}
{{#if displayTopicAbovePostStream}} {{partial "components/codefund/topic-above-post-stream"}}
{{partial "components/codefund/topic-above-post-stream"}} {{/if}}
{{/if}} {{#if displayTopicAboveSuggested}}
{{#if displayTopicAboveSuggested}} {{partial "components/codefund/topic-above-suggested"}}
{{partial "components/codefund/topic-above-suggested"}} {{/if}}
{{/if}} {{#if displayTopicListTop}}
{{#if displayTopicListTop}} {{partial "components/codefund/topic-list-top"}}
{{partial "components/codefund/topic-list-top"}} {{/if}}
{{/if}} {{else}}
{{else}} {{#if displayPostBottom}}
{{#if displayPostBottom}} {{partial "components/codefund/post-bottom"}}
{{partial "components/codefund/post-bottom"}} {{/if}}
{{/if}} {{#if displayTopicAbovePostStream}}
{{#if displayTopicAbovePostStream}} {{partial "components/codefund/topic-above-post-stream"}}
{{partial "components/codefund/topic-above-post-stream"}} {{/if}}
{{/if}} {{#if displayTopicAboveSuggested}}
{{#if displayTopicAboveSuggested}} {{partial "components/codefund/topic-above-suggested"}}
{{partial "components/codefund/topic-above-suggested"}} {{/if}}
{{/if}} {{#if displayTopicListTop}}
{{#if displayTopicListTop}} {{partial "components/codefund/topic-list-top"}}
{{partial "components/codefund/topic-list-top"}}
{{/if}}
{{/if}} {{/if}}
{{/if}} {{/if}}
{{/if}} {{/if}}