This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new ff7fdf56 Display link to notice file if found
ff7fdf56 is described below
commit ff7fdf56a2280f47aa6633a549f300f278816ec7
Author: Sebb <[email protected]>
AuthorDate: Wed Sep 25 00:14:47 2024 +0100
Display link to notice file if found
---
lib/whimsy/asf/themes.rb | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/whimsy/asf/themes.rb b/lib/whimsy/asf/themes.rb
index c55e309f..44594ac9 100644
--- a/lib/whimsy/asf/themes.rb
+++ b/lib/whimsy/asf/themes.rb
@@ -1,5 +1,7 @@
require 'wunderbar'
+require 'whimsy/asf/status'
+
# Define common page features for whimsy tools using bootstrap styles
class Wunderbar::HtmlMarkup
@@ -64,6 +66,7 @@ class Wunderbar::HtmlMarkup
# Emit a bootstrap navbar with required ASF links
def _whimsy_nav
+ noticetext, noticepath = Status.notice # is there a notice file?
_nav.navbar.navbar_default do
_div.container_fluid do
_div.navbar_header do
@@ -87,6 +90,11 @@ class Wunderbar::HtmlMarkup
_li do
_a 'About Whimsy', href: '/technology'
end
+ if noticetext
+ _li.bg_warning do
+ _a noticetext, href: noticepath
+ end
+ end
end
_ul.nav.navbar_nav.navbar_right do
_li.dropdown do