Skip to content

Commit

Permalink
Add clear warning to EIPs which are not Living or Final (#3663)
Browse files Browse the repository at this point in the history
* Add clear warning to EIPs which are not Living or Final

* Expand EIP notices to all not yet finalized

* Use more encouraging language

Co-authored-by: Alex Beregszaszi <[email protected]>

Co-authored-by: Alex Beregszaszi <[email protected]>
  • Loading branch information
feld and axic authored Jul 22, 2021
1 parent d7239c2 commit 36edc77
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
22 changes: 22 additions & 0 deletions _layouts/eip.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@
layout: default
---

{% if page.status == "Draft" %}
<div class="draft">
⚠️ This EIP is not recommended for general use or implementation as it is likely to change.
</div>
{% elsif page.status == "Review" %}
<div class="review">
📖 This EIP is in the review stage. It is subject to changes and feedback is appreciated.
</div>
{% elsif page.status == "Last Call" %}
<div class="lastcall">
📢 This EIP is in the last call for review stage. The authors wish to finalize the EIP and appreciate feedback.
</div>
{% elsif page.status == "Stagnant" %}
<div class="stagnant">
🚧 This EIP had no activity for at least 6 months.
</div>
{% elsif page.status == "Withdrawn" %}
<div class="withdrawn">
🛑 This EIP has been withdrawn.
</div>
{% endif %}

<div class="home">
<h1 class="page-heading">
EIP-{{ page.eip | xml_escape }}: {{ page.title | xml_escape }}
Expand Down
39 changes: 39 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,42 @@ main.page-content {
max-width: unset;
}
}

.status {
border-radius: 6px;
line-height: 18px;
overflow: hidden;
padding: 12px;
display: inline-block;
margin-bottom: 15px;
}

.draft {
@extend .status;
background-color: #fffbea;
border: solid 1px #f1c40f;
}

.review {
@extend .status;
background-color: #f0f7fb;
border: solid 1px #3498db;
}

.lastcall {
@extend .status;
background-color: #e7f6f0;
border: solid 1px #27ae60;
}

.stagnant {
@extend .status;
background-color: #ffdead;
border: solid 1px #ff6700;
}

.withdrawn {
@extend .status;
background-color: #f9e7e5;
border: solid 1px #c0392b;
}

0 comments on commit 36edc77

Please sign in to comment.