mirror of
https://github.com/wekan/wekan.git
synced 2025-12-23 19:00:12 +01:00
Add message from service administrator
This commit is contained in:
parent
eb945f26a3
commit
aa1876f94c
10 changed files with 135 additions and 4 deletions
|
|
@ -10,8 +10,22 @@ Template.header.helpers({
|
|||
appIsOffline() {
|
||||
return !Meteor.status().connected;
|
||||
},
|
||||
|
||||
hasAnnouncement() {
|
||||
const notice = Notices.findOne();
|
||||
return notice && notice.enabled;
|
||||
},
|
||||
|
||||
announcement() {
|
||||
$('.announcement').show();
|
||||
const notice = Notices.findOne();
|
||||
return notice && notice.body;
|
||||
},
|
||||
});
|
||||
|
||||
Template.header.events({
|
||||
'click .js-create-board': Popup.open('headerBarCreateBoard'),
|
||||
'click .js-close-announcement'() {
|
||||
$('.announcement').hide();
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue