Standardize ALERTs between layouts

This commit is contained in:
Saivann 2013-04-29 23:29:44 -04:00
parent 6c3c65c44a
commit 4ce5098c8c
7 changed files with 40 additions and 25 deletions

View file

@ -44,19 +44,22 @@ Each time that a commit needs to be translated in other languages, a link to thi
### Alerts
You can easily put a global alert on the website by changing the ALERT and ALERT\_CLASS variables in _config.yml.
And you can also set an alert specific to a language by appending the language code to the ALERT.
You can easily put an alert on the website by changing the ALERT and ALERT\_CLASS variables in _config.yml.
You can both set one fallback alert for all languages and many translated alerts for specific languages.
Example:
```
ALERT_CLASS: error
ALERT: <strong>Security alert:</strong> Please upgrade to 0.3.25 as soon as possible!
ALERT_fr: <strong>Alerte de sécurité:</strong> Mettez Bitcoin à jour vers la version 0.3.25 sans délais!
ALERT_CLASS:
all: <strong>Security alert:</strong> Please upgrade to 0.8.1 as soon as possible!
fr: <strong>Alerte de sécurité:</strong> Mettez Bitcoin à jour vers la version 0.8.1 sans délais!
ALERT:
all: error
fr: error
```
will produce an english red alert box for all languages, and a translated red alert box for french language.
Possible classes are: error (red), info (blue), success (green) and warning (yellow)
This will produce an english red alert box for all languages, and a translated red alert box for french language.
Possible classes are: **error** (red), **info** (blue), **success** (green) and **warning** (yellow)
### Release Notes