Cleanup
This commit is contained in:
parent
11a621fd50
commit
1b7f642da6
|
@ -97,8 +97,4 @@ export default Ember.Component.extend({
|
|||
return this.get('placement') === 'topic-list-top';
|
||||
}.property('placement'),
|
||||
|
||||
hasAd: function() {
|
||||
return ((this.get('adDetails.description') || '').length > 0);
|
||||
}.property('adDetails')
|
||||
|
||||
});
|
||||
|
|
|
@ -1,31 +1,29 @@
|
|||
{{#if showAd}}
|
||||
{{#if hasAd}}
|
||||
{{#if site.mobileView}}
|
||||
{{#if displayPostBottom}}
|
||||
{{partial "components/codefund/post-bottom"}}
|
||||
{{/if}}
|
||||
{{#if displayTopicAbovePostStream}}
|
||||
{{partial "components/codefund/topic-above-post-stream"}}
|
||||
{{/if}}
|
||||
{{#if displayTopicAboveSuggested}}
|
||||
{{partial "components/codefund/topic-above-suggested"}}
|
||||
{{/if}}
|
||||
{{#if displayTopicListTop}}
|
||||
{{partial "components/codefund/topic-list-top"}}
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{#if displayPostBottom}}
|
||||
{{partial "components/codefund/post-bottom"}}
|
||||
{{/if}}
|
||||
{{#if displayTopicAbovePostStream}}
|
||||
{{partial "components/codefund/topic-above-post-stream"}}
|
||||
{{/if}}
|
||||
{{#if displayTopicAboveSuggested}}
|
||||
{{partial "components/codefund/topic-above-suggested"}}
|
||||
{{/if}}
|
||||
{{#if displayTopicListTop}}
|
||||
{{partial "components/codefund/topic-list-top"}}
|
||||
{{/if}}
|
||||
{{#if site.mobileView}}
|
||||
{{#if displayPostBottom}}
|
||||
{{partial "components/codefund/post-bottom"}}
|
||||
{{/if}}
|
||||
{{#if displayTopicAbovePostStream}}
|
||||
{{partial "components/codefund/topic-above-post-stream"}}
|
||||
{{/if}}
|
||||
{{#if displayTopicAboveSuggested}}
|
||||
{{partial "components/codefund/topic-above-suggested"}}
|
||||
{{/if}}
|
||||
{{#if displayTopicListTop}}
|
||||
{{partial "components/codefund/topic-list-top"}}
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{#if displayPostBottom}}
|
||||
{{partial "components/codefund/post-bottom"}}
|
||||
{{/if}}
|
||||
{{#if displayTopicAbovePostStream}}
|
||||
{{partial "components/codefund/topic-above-post-stream"}}
|
||||
{{/if}}
|
||||
{{#if displayTopicAboveSuggested}}
|
||||
{{partial "components/codefund/topic-above-suggested"}}
|
||||
{{/if}}
|
||||
{{#if displayTopicListTop}}
|
||||
{{partial "components/codefund/topic-list-top"}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
Loading…
Reference in New Issue