Move lastmod into alert pages content

This commit is contained in:
Saivann 2013-08-06 13:59:25 -04:00
parent 0a6f4a1021
commit 7ff5b4b4e0
7 changed files with 24 additions and 11 deletions

View file

@ -77,7 +77,6 @@ Network alerts should be placed in `_alerts/YYYY-MM-DD-SHORTITLE.html` and adher
``` ```
--- ---
title: "11/12 March 2013 Chain Fork" title: "11/12 March 2013 Chain Fork"
lastmod: "Fri Mar 16 22:58:00 UTC 2012"
alias: "chainfork" alias: "chainfork"
active: true active: true
banner: "<b>Chain fork</b> - Please stop mining on bitcoin version 0.8.0. Click here for more information." banner: "<b>Chain fork</b> - Please stop mining on bitcoin version 0.8.0. Click here for more information."
@ -89,12 +88,14 @@ A chain fork is happening. Please stop mining on bitcoin version 0.8.0. Your bit
<p> <p>
More information will follow. More information will follow.
</p> </p>
<div style="text-align:right">
<i>This notice last updated: Fri Mar 16 22:58:00 UTC 2012</i>
</div>
``` ```
* `SHORTTITLE` is used to construct the URL. * `SHORTTITLE` is used to construct the URL.
* `title: ...` will be used as the title in the layout. * `title: ...` will be used as the title in the layout.
* `lastmod: ...` will be used as the last modification date in the layout. * `alias: ...` (optional) a short alias for Bitcoin-Qt alerts. Ex. "dos" will produce /dos.html
* `alias: ...` (optional) a short alias to be used for Bitcoin-Qt alerts. Ex. "dos" will produce /dos.html
* `active: ...` (true or false) define if the alert should appear as ongoing in the network status page. * `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 a red alert banner and link to the alert page.

View file

@ -1,6 +1,5 @@
--- ---
title: "February 20, 2012 Protocol Changes" title: "February 20, 2012 Protocol Changes"
lastmod: "Mon Feb 20 00:10:00 UTC 2012"
alias: "feb20" alias: "feb20"
active: false active: false
banner: "" banner: ""
@ -35,3 +34,7 @@ channel</a> on Freenode IRC.
If there are unexpected difficulties this page will be updated with If there are unexpected difficulties this page will be updated with
relevant information. relevant information.
</p> </p>
<div style="text-align:right">
<i>This notice last updated: Mon Feb 20 00:10:00 UTC 2012</i>
</div>

View file

@ -1,6 +1,5 @@
--- ---
title: "Potentially Critical Security Vulnerability" title: "Potentially Critical Security Vulnerability"
lastmod: "Fri Mar 16 22:58:00 UTC 2012"
alias: "critfix" alias: "critfix"
active: false active: false
banner: "" banner: ""
@ -226,3 +225,7 @@ href="https://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.6.0/test/
href="https://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.5.3/"> href="https://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.5.3/">
0.5.3.1 för Windows och 0.5.3 för Linux</a> 0.5.3.1 för Windows och 0.5.3 för Linux</a>
</p> </p>
<div style="text-align:right">
<i>This notice last updated: Fri Mar 16 22:58:00 UTC 2012</i>
</div>

View file

@ -1,6 +1,5 @@
--- ---
title: "CVE-2012-2459: Critical Vulnerability (denial-of-service)" title: "CVE-2012-2459: Critical Vulnerability (denial-of-service)"
lastmod: "Mon May 14 17:00:00 UTC 2012"
alias: "dos" alias: "dos"
active: false active: false
banner: "" banner: ""
@ -60,3 +59,7 @@ Could this bug be used to install malware on my system?
<p> <p>
No. No.
</p> </p>
<div style="text-align:right">
<i>This notice last updated: Mon May 14 17:00:00 UTC 2012</i>
</div>

View file

@ -1,6 +1,5 @@
--- ---
title: "11/12 March 2013 Chain Fork Information" title: "11/12 March 2013 Chain Fork Information"
lastmod: "16 May 2013 01:37 UTC"
alias: "chainfork" alias: "chainfork"
active: false active: false
banner: "" banner: ""
@ -36,3 +35,7 @@ The core developers have investigated what caused the old versions to reject the
blocks, and have released a 0.8.1 version that avoids creating blocks that are incompatible with blocks, and have released a 0.8.1 version that avoids creating blocks that are incompatible with
older versions. <a href="https://en.bitcoin.it/wiki/BIP_50">A full post-mortem document has been published</a>. older versions. <a href="https://en.bitcoin.it/wiki/BIP_50">A full post-mortem document has been published</a>.
</p> </p>
<div style="text-align:right">
<i>This notice last updated: 16 May 2013 01:37 UTC</i>
</div>

View file

@ -1,6 +1,5 @@
--- ---
title: "15 May 2013 Upgrade Deadline" title: "15 May 2013 Upgrade Deadline"
lastmod: "10 May 2013 21:30 UTC"
alias: "may15" alias: "may15"
active: false active: false
banner: "" banner: ""
@ -67,3 +66,7 @@ that bug, we determined that the bug can happen even if the entire network was
still running old versions of Bitcoin-Qt/bitcoind. Therefore, the only option is to still running old versions of Bitcoin-Qt/bitcoind. Therefore, the only option is to
require everybody to either upgrade or workaround the bug. require everybody to either upgrade or workaround the bug.
</p> </p>
<div style="text-align:right">
<i>This notice last updated: 10 May 2013 21:30 UTC</i>
</div>

View file

@ -10,8 +10,5 @@ lang: en
<div class="alerttext"> <div class="alerttext">
<h1>{{ page.title }}<br><small>{{ page.date | date:"%e %B %Y" }}</small></h1> <h1>{{ page.title }}<br><small>{{ page.date | date:"%e %B %Y" }}</small></h1>
{{ content }} {{ content }}
<div style="text-align:right">
<i>This notice last updated: {{ page.lastmod }}</i>
</div>
</div> </div>
<a href="/en/alerts">Go back to the network alerts history</a> <a href="/en/alerts">Go back to the network alerts history</a>