From 2d36e364648f060bdae86f6759b491bd6cb26995 Mon Sep 17 00:00:00 2001 From: Saivann Date: Sun, 5 Jul 2015 21:11:23 -0400 Subject: [PATCH] Allow to set styles for alert banner --- README.md | 3 ++- _alerts/2015-07-04-spv-mining.html | 1 + _layouts/base.html | 2 +- _less/screen.less | 9 +++++++++ _plugins/alerts.rb | 6 +++++- 5 files changed, 18 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index db7a40c5..15fe83f3 100644 --- a/README.md +++ b/README.md @@ -560,7 +560,8 @@ More information will follow. * `title: ...` will be used as the title in the layout. * `alias: ...` (optional) a short alias for Bitcoin Core alerts. Ex. "dos" will produce /dos.html * `active: ...` (true or false) define if the alert should appear as ongoing in the network status page. -* `banner: ...` (optional) a short text that will be displayed in a red alert banner and link to the alert page. +* `banner: ...` (optional) a short text that will be displayed in an alert banner and link to the alert page. +* `bannerclass: ...` (optional) a CSS class that sets the color of the banner. Possible values: alert (default red), warning (orange), success (green), info (blue). * `last updated: ...` should be kept up to date and be in RFC 2822 format ( date -uR ). ## Wallets diff --git a/_alerts/2015-07-04-spv-mining.html b/_alerts/2015-07-04-spv-mining.html index 123cb5b0..4e0423f5 100644 --- a/_alerts/2015-07-04-spv-mining.html +++ b/_alerts/2015-07-04-spv-mining.html @@ -3,6 +3,7 @@ title: "Some Miners Generating Invalid Blocks" alias: "spv-mining" active: true banner: "WARNING: many wallets currently vulnerable to double-spending of confirmed transactions (click here to read)" +bannerclass: "alert" ---

This document is being updated as new information arrives. Last update: 2015-07-04 16:00 UTC

diff --git a/_layouts/base.html b/_layouts/base.html index cfb237fd..2a1acbc5 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -23,7 +23,7 @@
{% if site.ALERT %} -