mirror of
https://github.com/wekan/wekan.git
synced 2026-01-31 05:35:16 +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
|
|
@ -49,6 +49,13 @@ template(name="header")
|
|||
if appIsOffline
|
||||
+offlineWarning
|
||||
|
||||
if hasAnnouncement
|
||||
.announcement
|
||||
p
|
||||
i.fa.fa-bullhorn
|
||||
| #{announcement}
|
||||
i.fa.fa-times-circle.js-close-announcement
|
||||
|
||||
template(name="offlineWarning")
|
||||
.offline-warning
|
||||
p
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -197,6 +197,7 @@
|
|||
li
|
||||
height: 28px
|
||||
|
||||
.announcement,
|
||||
.offline-warning
|
||||
width: 100%
|
||||
text-align: center
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue