no need for an alert when no history present

This commit is contained in:
Andrew Croce 2018-09-13 14:46:44 -04:00 committed by dandds
parent b473a87eea
commit 5018ff39fe
2 changed files with 47 additions and 48 deletions

View File

@ -49,7 +49,7 @@
border-top: 1px dashed $color-gray-light;
&:first-child {
border-top-style: solid;
border-top: none;
}
@include media($medium-screen) {

View File

@ -154,13 +154,13 @@
</section>
<section>
{% if reviews %}
<div class='panel'>
<header class='panel__heading'>
<header class='panel__heading panel__heading--divider'>
<h2 class='h3 request-approval__columns__heading'>CCPO Activity Log</h2>
</header>
<div class='approval-log'>
{% if reviews %}
<ol>
{% for review in reviews %}
<li>
@ -198,14 +198,13 @@
</li>
{% endfor %}
</ol>
</div>
</div>
{% else %}
{{ Alert('CCPO Activity Log',
message='No CCPO approvals or request changes have been recorded yet.',
level='warning'
) }}
<div class='panel__content'>
<p class='h4'>No CCPO approvals or request changes have been recorded yet.</p>
</div>
{% endif %}
</div>
</div>
</section>
</article>