Rename notice -> announcement

This commit is contained in:
nztqa 2017-10-01 12:43:15 +09:00
parent aa1876f94c
commit a88ac6113e
9 changed files with 39 additions and 39 deletions

View file

@ -12,14 +12,14 @@ Template.header.helpers({
},
hasAnnouncement() {
const notice = Notices.findOne();
return notice && notice.enabled;
const announcements = Announcements.findOne();
return announcements && announcements.enabled;
},
announcement() {
$('.announcement').show();
const notice = Notices.findOne();
return notice && notice.body;
const announcements = Announcements.findOne();
return announcements && announcements.body;
},
});