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;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.announce_block {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.announce_dashboard {
|
.announce_dashboard {
|
||||||
background: #eee;
|
|
||||||
font-size: 1.1em;
|
font-size: 1.1em;
|
||||||
margin-left: 0.5em;
|
margin-left: 0.5em;
|
||||||
padding: 0.3rem;
|
padding: 0.3rem;
|
||||||
width: 15%;
|
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
top: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.announce_dashboard p {
|
.announce_dashboard p {
|
||||||
|
@ -197,4 +188,5 @@ div.announce_block {
|
||||||
div.announce_preview {
|
div.announce_preview {
|
||||||
width: 84%;
|
width: 84%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,12 +17,13 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="announce_block">
|
|
||||||
<div class="announce_preview">
|
<div class="announce_preview">
|
||||||
{{ object.text|safe }}
|
{{ object.text|safe }}
|
||||||
</div>
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% if object.publication_time or object.expiration_time or broadcasts %}
|
{% block sidebar %}
|
||||||
|
<aside id="sidebar">
|
||||||
<div class="announce_dashboard">
|
<div class="announce_dashboard">
|
||||||
{% if object.publication_time %}
|
{% if object.publication_time %}
|
||||||
<p>
|
<p>
|
||||||
|
@ -47,6 +48,5 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
</aside>
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Reference in New Issue