⚒Anvil
Sign in

clo / cl-site public

closed

Add an "announcements" box 27

opened by common-lisp.net

Erik Huelsmann (@ehuelsmann) on GitLab, 2018-10-26.

I'd like the site to have an "announcements" box, normally invisible, but enabled/visible when there's content to show, much as the screenshot below shown from GitLab.

image

Ccommon-lisp.net

Erik Huelsmann (@ehuelsmann) on GitLab, 2018-10-26.

@vdardel, @mmontone, @tplotnikov do you think you can create something like this? Or am I missing that there already is something alike?

Ccommon-lisp.net

Tim Plotnikov (@tplotnikov) on GitLab, 2018-10-26.

@ehuelsmann should it be just a box with some text? Should it be discardable?

Ccommon-lisp.net

Erik Huelsmann (@ehuelsmann) on GitLab, 2018-10-26.

Yup. Just text. Discardable isn't required (although it's probably very nice to offer).

Ccommon-lisp.net

Tim Plotnikov (@tplotnikov) on GitLab, 2018-10-26.

And how this text can be added or removed? Recompiling the site? If its the case, then it is rather easy to implement :) Or should it be dynamic somehow?

Ccommon-lisp.net

Erik Huelsmann (@ehuelsmann) on GitLab, 2018-10-26.

Thinking about it some more: I think it would be practical to load the content dynamically from the url https://common-lisp.net/broadcast.html ; that URL will then be fed through a file on the filesystem of the server outside the tree that's being re-deployed on every site update.

Ccommon-lisp.net

Tim Plotnikov (@tplotnikov) on GitLab, 2018-10-26.

And this url (https://common-lisp.net/broadcast.html) will contain announcement text, right?

Ccommon-lisp.net

Erik Huelsmann (@ehuelsmann) on GitLab, 2018-10-26.

Sorry to be unclear about it: yes, it will contain the annonucement text as an html snippet. The coloring of the broadcast/announcement should come from the page in which it's being inserted though.

Ccommon-lisp.net

Tim Plotnikov (@tplotnikov) on GitLab, 2018-10-26.

Yep, just making sure i understand everything right :) Think i can spend some time on it over the weekend.

Ccommon-lisp.net

Erik Huelsmann (@ehuelsmann) on GitLab, 2018-10-26.

That'd be great! Thanks!

common-lisp.net changed milestone to %2
common-lisp.net mentioned in merge request !76
Ccommon-lisp.net

Philipp Marek (@pmarek) on GitLab, 2018-11-09.

!76 is already merged, can we close this issue?

Ccommon-lisp.net

Erik Huelsmann (@ehuelsmann) on GitLab, 2018-11-09.

yes!

Ccommon-lisp.net

Erik Huelsmann (@ehuelsmann) on GitLab, 2018-11-09.

Done.

common-lisp.net closed

Sign in to comment.