FIX: used 'pin' terminology instead of 'feature topic'

This commit is contained in:
Régis Hanol 2015-03-20 11:43:05 +01:00
parent e70597a0d0
commit 18f4f60956
4 changed files with 7 additions and 13 deletions

View file

@ -29,23 +29,19 @@ export default ObjectController.extend(ModalFunctionality, {
}.property("categoryLink", "pinnedInCategoryCount"),
onShow() {
const self = this;
this.set("loading", true);
return Discourse.ajax("/topics/feature_stats.json", {
data: { category_id: this.get("category.id") }
}).then(function(result) {
}).then(result => {
if (result) {
self.setProperties({
this.setProperties({
pinnedInCategoryCount: result.pinned_in_category_count,
pinnedGloballyCount: result.pinned_globally_count,
bannerCount: result.banner_count,
});
}
}).finally(function() {
self.set("loading", false);
});
}).finally(() => this.set("loading", false));
},
_forwardAction(name) {

View file

@ -58,9 +58,9 @@
<div class="feature-section">
<div class="button">
{{#if isBanner}}
{{d-button action="removeBanner" icon="bullhorn" label="topic.actions.remove_banner" class="btn-primary"}}
{{d-button action="removeBanner" icon="thumb-tack" label="topic.actions.remove_banner" class="btn-primary"}}
{{else}}
{{d-button action="makeBanner" icon="bullhorn" label="topic.actions.make_banner" class="btn-primary"}}
{{d-button action="makeBanner" icon="thumb-tack" label="topic.actions.make_banner" class="btn-primary"}}
{{/if}}
</div>
<div class="desc">

View file

@ -30,9 +30,9 @@
{{#if visible}}
<li>
{{#if isFeatured}}
{{d-button action="showFeatureTopic" icon="bullhorn" label="topic.actions.remove_feature" class="btn-admin"}}
{{d-button action="showFeatureTopic" icon="thumb-tack" label="topic.actions.unpin" class="btn-admin"}}
{{else}}
{{d-button action="showFeatureTopic" icon="bullhorn" label="topic.actions.feature" class="btn-admin"}}
{{d-button action="showFeatureTopic" icon="thumb-tack" label="topic.actions.pin" class="btn-admin"}}
{{/if}}
</li>
{{/if}}

View file

@ -988,8 +988,6 @@ en:
open: "Open Topic"
close: "Close Topic"
auto_close: "Auto Close"
feature: "Feature Topic"
remove_feature: "Remove Feature"
make_banner: "Banner Topic"
remove_banner: "Remove Banner Topic"
pin: "Pin Topic"