Merge pull request #6114 from edx/waheed/tnl892-fix-css-background-image-for-important-visual-indicator
Added IMG tag instead of css background property for important visual indicator.
This commit is contained in:
@@ -205,13 +205,17 @@
|
|||||||
|
|
||||||
&.graded {
|
&.graded {
|
||||||
> a {
|
> a {
|
||||||
background-image: url('../images/graded.png');
|
> img {
|
||||||
background-repeat: no-repeat;
|
margin: auto;
|
||||||
background-position: 97% center;
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
right: 7px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active > a {
|
&.active > a {
|
||||||
@include background-image(url('../images/graded.png'), linear-gradient(top, #e6e6e6, #d6d6d6));
|
background: linear-gradient(to bottom, #e6e6e6, #d6d6d6);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,6 +34,10 @@
|
|||||||
due_date = '' if len(formatted_string)==0 else _('due {date}').format(date=formatted_string)
|
due_date = '' if len(formatted_string)==0 else _('due {date}').format(date=formatted_string)
|
||||||
%>
|
%>
|
||||||
<p class="subtitle">${section['format']} ${due_date}</p>
|
<p class="subtitle">${section['format']} ${due_date}</p>
|
||||||
|
|
||||||
|
% if 'graded' in section and section['graded']:
|
||||||
|
<img src="/static/images/graded.png" alt="Graded Section">
|
||||||
|
% endif
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
% endfor
|
% endfor
|
||||||
|
|||||||
Reference in New Issue
Block a user