kb: style warning notice on old revisions
This commit is contained in:
parent
8402fcccd7
commit
818c1d0e8b
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
<div class="old-version warning-notice">
|
||||||
<p>
|
<p>
|
||||||
{% trans 'Warning: this is an old version of this page.' %}
|
{% trans 'Warning: this is an old version of this page.' %}
|
||||||
</p>
|
</p>
|
||||||
|
@ -17,6 +18,7 @@
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button>{% trans 'Revert to this version' %}</button>
|
<button>{% trans 'Revert to this version' %}</button>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{block.super}}
|
{{block.super}}
|
||||||
|
|
||||||
|
|
|
@ -534,3 +534,31 @@ div.counter a.button {
|
||||||
div.useful-links {
|
div.useful-links {
|
||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.warning-notice {
|
||||||
|
background: #F9DEDE;
|
||||||
|
margin: 1em 0;
|
||||||
|
padding: 1em;
|
||||||
|
padding-left: 4em;
|
||||||
|
position: relative;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.warning-notice p {
|
||||||
|
margin: 0.5ex 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.warning-notice::before {
|
||||||
|
content: "\f06a";
|
||||||
|
font-family: FontAwesome;
|
||||||
|
font-size: 2em;
|
||||||
|
position: absolute;
|
||||||
|
left: 1ex;
|
||||||
|
top: 0.5ex;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.old-version.warning-notice form {
|
||||||
|
position: absolute;
|
||||||
|
right: 1ex;
|
||||||
|
top: 1ex;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue