Skip to content

Commit 4fc8d72

Browse files
committed
Show big, giant warning on out-of-date documents that have been submitted to the IETF
1 parent 872362c commit 4fc8d72

File tree

5 files changed

+50
-9
lines changed

5 files changed

+50
-9
lines changed

_includes/copyrights.html

-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@
1313
</div>
1414
{% endfor %}
1515
</div>
16-

_includes/ietfwarning.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<div class="warning">
2+
<p>NOTE: This document is being persued as an Internet-Draft for standardisation with the IETF.</p>
3+
<p>This page is out of date, and you should look here for the document that replaces this:</p>
4+
<p>
5+
<a href="{{ page.ietf }}">[Internet-Draft]</a> -
6+
<a href="{{ page.ietf-html-editors-copy }}">[Editor's HTML Draft]</a> -
7+
<a href="{{ page.ietf-txt-editors-copy }}">[Editor's TXT Draft]</a> -
8+
<a href="https://github.com/DanielOaks/irc-rfcs">[Github]</a>
9+
</p>
10+
</div>

_layouts/default.html

+18-1
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,28 @@
2828
{% endif %}
2929
{% if page.ietf %}
3030
<div id="ietftag">
31-
<span class="detail">This document is now being worked on as an<br/>Internet-Draft which you can find <a href="{{ page.ietf }}">here</a> and <a href="{{ page.ietf-editors-copy }}">here</a></span>
31+
<span class="detail">This document is now being worked on as an<br/>Internet-Draft which you can find <a href="{{ page.ietf }}">here</a> and <a href="{{ page.ietf-html-editors-copy }}">here</a></span>
3232
</div>
3333
{% endif %}
34+
3435
<a onclick="toggledarkmode()" id="darkmodebtn"><i class="fa fa-sun-o show-when-dark"></i><i class="fa fa-moon-o show-when-light"></i></a>
3536
<div id="show-toc" onclick=""><div onclick="">Table of Contents</div></div>
3637
<div id="toc-popup" style="display: none"><div onclick="">
3738
<h2>Table of Contents</h2>
3839
<div onclick="" id="table-of-contents"></div>
3940
</div></div>
41+
42+
{% if page.ietf %}
43+
<div id="hovering-ietf-warning" onclick="disableietf();"><div>
44+
<p>This document is <strong style="color: #441f00;">out of date</strong> and is now being persued as an Internet-Draft for standardisation with the IETF. You should look here for the document that replaces this:</p>
45+
<p>
46+
<a href="{{ page.ietf }}">[Internet-Draft]</a> -
47+
<a href="{{ page.ietf-html-editors-copy }}">[Editor's HTML Draft]</a> -
48+
<a href="{{ page.ietf-txt-editors-copy }}">[Editor's TXT Draft]</a> -
49+
<a href="https://github.com/DanielOaks/irc-rfcs">[Github]</a>
50+
</p>
51+
</div></div>
52+
{% endif %}
4053

4154
<div id="nav"><div>
4255
<nav>
@@ -78,5 +91,9 @@ <h1>{{ page.title }}</h1>
7891
document.cookie = "darkmode=false";
7992
}
8093
}
94+
95+
function disableietf() {
96+
document.getElementById('hovering-ietf-warning').classList.add('displaynone');
97+
}
8198
</script>
8299
</html>

css/screen.sass

+18
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,21 @@ html, body
9999
h1
100100
page-break-before: always
101101

102+
#hovering-ietf-warning
103+
background: rgba(20,20,20,0.75)
104+
position: fixed
105+
top: 0
106+
left: 0
107+
width: 100%
108+
height: 100%
109+
> div
110+
max-width: calc(100% - 2rem)
111+
width: 37rem
112+
background: #fbfbfb
113+
margin: 7rem auto 1rem
114+
padding: 1.5rem 1.85rem
115+
border-radius: 1.5rem
116+
102117
#toc-popup
103118
background: rgba(20,20,20,0.75)
104119
position: fixed
@@ -191,6 +206,9 @@ li
191206
&:last-child
192207
margin-bottom: 0
193208

209+
.displaynone
210+
display: none
211+
194212
.warning, .note
195213
color: #fff
196214
border-radius: 1rem

ctcp.md

+4-7
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ copyrights:
1111
org_link: "http://ircdocs.horse/"
1212
1313
editor: true
14-
ietf: https://tools.ietf.org/html/draft-oakley-irc-ctcp-01
15-
ietf-editors-copy: https://rawgit.com/DanielOaks/irc-rfcs/master/dist/draft-oakley-irc-ctcp-latest.html
14+
ietf: https://tools.ietf.org/html/draft-oakley-irc-ctcp-02
15+
ietf-html-editors-copy: https://rawgit.com/DanielOaks/irc-rfcs/master/dist/draft-oakley-irc-ctcp-latest.html
16+
ietf-txt-editors-copy: https://rawgit.com/DanielOaks/irc-rfcs/master/dist/draft-oakley-irc-ctcp-latest.txt
1617
---
1718

1819
{% include copyrights.html %}
@@ -22,11 +23,7 @@ ietf-editors-copy: https://rawgit.com/DanielOaks/irc-rfcs/master/dist/draft-oakl
2223
<p>If something written in here isn't interoperable with an IRC client you know of, please <a href="https://github.com/ircdocs/modern-irc/issues">open an issue</a>.</p>
2324
</div>
2425

25-
<div class="warning">
26-
<p>NOTE: This document is being persued as an Internet Draft for standardisation with the IETF.</p>
27-
<p>This page is out of date, and you should look here for the new document I'm working on:</p>
28-
<p><a href="https://github.com/DanielOaks/irc-rfcs">[Github]</a> - <a href="https://rawgit.com/DanielOaks/irc-rfcs/master/dist/draft-oakley-irc-ctcp-latest.html">[Editor's HTML Draft]</a> - <a href="https://rawgit.com/DanielOaks/irc-rfcs/master/dist/draft-oakley-irc-ctcp-latest.txt">[Editor's TXT Draft]</a> - <a href="https://tools.ietf.org/html/draft-oakley-irc-ctcp-01">[Internet-Draft]</a></p>
29-
</div>
26+
{% include ietfwarning.html %}
3027

3128
<div id="printable-toc" style="display: none"></div>
3229

0 commit comments

Comments
 (0)