mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
alerts
This commit is contained in:
parent
3381409392
commit
366ac64f89
2 changed files with 22 additions and 1 deletions
15
README.md
15
README.md
|
@ -8,3 +8,18 @@ Requires [Jekyll](https://github.com/mojombo/jekyll)
|
|||
* run jekyll
|
||||
* output will be in \_site/
|
||||
|
||||
## Advanced Usage
|
||||
|
||||
### Alerts
|
||||
|
||||
You can easily put alerts on the homepage by changing the ALERT and ALERT\_CLASS variables in index.html.
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
ALERT_CLASS: error
|
||||
ALERT: <strong>Security alert:</strong> Please upgrade to 0.3.25 as soon as possible!
|
||||
```
|
||||
|
||||
|
||||
will produce a red alert box. Possible classes are: error (red), info (blue), success (green) and warning (yellow)
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
---
|
||||
DOWNLOAD_VERSION: 0.3.24
|
||||
ALERT_CLASS:
|
||||
ALERT:
|
||||
---
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
@ -50,7 +52,11 @@ DOWNLOAD_VERSION: 0.3.24
|
|||
<div id="masthead">
|
||||
<div class="inner">
|
||||
<div class="container">
|
||||
|
||||
{% if page.ALERT %}
|
||||
<div class="alert-message {{ page.ALERT_CLASS }}">
|
||||
{{ page.ALERT }}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="row">
|
||||
<div class="span11 primarybox">
|
||||
<h1>Bitcoin <small>P2P Digital Currency</small></h1>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue