mirror of
https://github.com/evilhero/mylar
synced 2025-01-03 05:24:43 +00:00
FIX: Progress Bar colors match index
FIX: Progress Bar colors match index, #2282
This commit is contained in:
parent
f4ea76345a
commit
9fb9ab4d73
1 changed files with 10 additions and 2 deletions
|
@ -51,6 +51,14 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
%for comic in comics:
|
%for comic in comics:
|
||||||
<%
|
<%
|
||||||
|
|
||||||
|
if comic['percent'] == 101:
|
||||||
|
css = '<div class=\"progress-container warning\">'
|
||||||
|
if comic['percent'] == 100:
|
||||||
|
css = '<div class=\"progress-container complete\">'
|
||||||
|
if comic['percent'] < 100:
|
||||||
|
css = '<div class=\"progress-container missing\">'
|
||||||
|
|
||||||
if comic['Status'] == 'Paused':
|
if comic['Status'] == 'Paused':
|
||||||
grade = 'X'
|
grade = 'X'
|
||||||
elif comic['Status'] == 'Loading':
|
elif comic['Status'] == 'Loading':
|
||||||
|
@ -79,7 +87,7 @@
|
||||||
<td class="hidden" id="stat_title">${comic['Status']}</td>
|
<td class="hidden" id="stat_title">${comic['Status']}</td>
|
||||||
<td id="latest">${comic['LatestIssue']} (${comic['LatestDate']})</td>
|
<td id="latest">${comic['LatestIssue']} (${comic['LatestDate']})</td>
|
||||||
<td id="publisher">${comic['ComicPublisher']}</td>
|
<td id="publisher">${comic['ComicPublisher']}</td>
|
||||||
<td id="have" valign="center"><span title="${comic['percent']}"></span><div class="progress-container"><div style="width:${comic['percent']}%"><div style="width:${comic['percent']}%"><div class="havetracks">${comic['haveissues']}/${comic['totalissues']}</div></div></div></td>
|
<td id="have" valign="center"><span title="${comic['percent']}"></span>${css}<div style="width:${comic['percent']}%"><div style="width:${comic['percent']}%"><div class="havetracks">${comic['haveissues']}/${comic['totalissues']}</div></div></div></td>
|
||||||
<td id="lastupdated">${comic['DateAdded']}</td>
|
<td id="lastupdated">${comic['DateAdded']}</td>
|
||||||
</tr>
|
</tr>
|
||||||
%endfor
|
%endfor
|
||||||
|
|
Loading…
Reference in a new issue