Add small announcement on /qa/.

This commit is contained in:
ccd0 2019-08-18 01:47:12 -07:00
parent 78b5ef6042
commit 19deb7c065
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,9 @@
PSA =
init: ->
return unless g.SITE.software is 'yotsuba'
if g.BOARD.ID is 'qa'
announcement = <%= html('Stay in touch with your <a href="https://www.4chan-x.net/qa_friends.html" target="_blank" rel="noopener">/qa/ friends</a>!') %>
return unless announcement
el = $.el 'div', {className: 'fcx-announcement'}, announcement
$.onExists doc, '.boardBanner', (banner) ->
$.after banner, el

View File

@ -2433,3 +2433,11 @@ a:only-of-type > .remove {
.postJumper > .next {
font-size: 120%;
}
/* PSA */
.fcx-announcement {
text-align: center;
}
.fcx-announcement a {
text-decoration: underline;
}

View File

@ -668,6 +668,7 @@ Main =
['Index Navigation', Nav]
['Keybinds', Keybinds]
['Banner', Banner]
['Announcements', PSA]
['Flash Features', Flash]
['Reply Pruning', ReplyPruning]
['Mod Contact Links', ModContact]