misc: use new gadjo's model to display announce infos (#23196)
This commit is contained in:
parent
9968c3c893
commit
58bc5c436e
|
@ -166,19 +166,10 @@ form ul li label {
|
|||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
div.announce_block {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.announce_dashboard {
|
||||
background: #eee;
|
||||
font-size: 1.1em;
|
||||
margin-left: 0.5em;
|
||||
padding: 0.3rem;
|
||||
width: 15%;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.announce_dashboard p {
|
||||
|
@ -197,4 +188,5 @@ div.announce_block {
|
|||
div.announce_preview {
|
||||
width: 84%;
|
||||
overflow: hidden;
|
||||
clear: both;
|
||||
}
|
||||
|
|
|
@ -17,12 +17,13 @@
|
|||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div class="announce_block">
|
||||
<div class="announce_preview">
|
||||
{{ object.text|safe }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% if object.publication_time or object.expiration_time or broadcasts %}
|
||||
{% block sidebar %}
|
||||
<aside id="sidebar">
|
||||
<div class="announce_dashboard">
|
||||
{% if object.publication_time %}
|
||||
<p>
|
||||
|
@ -47,6 +48,5 @@
|
|||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</aside>
|
||||
{% endblock %}
|
||||
|
|
Reference in New Issue