mirror of
https://github.com/TangentFoxy/memex.git
synced 2024-11-22 04:54:23 +00:00
Add SHOWDONE to settings.
This commit is contained in:
parent
cfa64acd6a
commit
ae855de9b2
@ -16,6 +16,7 @@ const SETTINGS =
|
|||||||
SHOWNOTE: true,
|
SHOWNOTE: true,
|
||||||
SHOWQOTE: true,
|
SHOWQOTE: true,
|
||||||
SHOWTERM: true,
|
SHOWTERM: true,
|
||||||
|
SHOWDONE: false,
|
||||||
SHOWPROG: true,
|
SHOWPROG: true,
|
||||||
SHOWIMAG: true,
|
SHOWIMAG: true,
|
||||||
SHOWFILE: true,
|
SHOWFILE: true,
|
||||||
|
@ -291,16 +291,19 @@ function View()
|
|||||||
menuContent += `</div>`;
|
menuContent += `</div>`;
|
||||||
|
|
||||||
// DONE
|
// DONE
|
||||||
menuContent += `<div class="menu-itemgroup">`;
|
if (SETTINGS.SHOWDONE)
|
||||||
menuContent += `<a href='#done-true' class="menu-item">`;
|
{
|
||||||
menuContent += `<div class="menu-itemcount">${value.done}</div>`;
|
menuContent += `<div class="menu-itemgroup">`;
|
||||||
menuContent += `<i class="menu-itemicon fas fa-check"></i>`;
|
menuContent += `<a href='#done-true' class="menu-item">`;
|
||||||
menuContent += `</a>`;
|
menuContent += `<div class="menu-itemcount">${value.done}</div>`;
|
||||||
menuContent += `<a href='#done-false' class="menu-item">`;
|
menuContent += `<i class="menu-itemicon fas fa-check"></i>`;
|
||||||
menuContent += `<div class="menu-itemcount">${value.total - value.done}</div>`;
|
menuContent += `</a>`;
|
||||||
menuContent += `<i class="menu-itemicon fas fa-times"></i>`;
|
menuContent += `<a href='#done-false' class="menu-item">`;
|
||||||
menuContent += `</a>`;
|
menuContent += `<div class="menu-itemcount">${value.total - value.done}</div>`;
|
||||||
menuContent += `</div>`;
|
menuContent += `<i class="menu-itemicon fas fa-times"></i>`;
|
||||||
|
menuContent += `</a>`;
|
||||||
|
menuContent += `</div>`;
|
||||||
|
}
|
||||||
|
|
||||||
menuContent += `<div class="menu-itemgroup">`;
|
menuContent += `<div class="menu-itemgroup">`;
|
||||||
for (let ty = 0; ty < Math.min(value.types.length, SETTINGS.STATSNUMTYPE); ty++)
|
for (let ty = 0; ty < Math.min(value.types.length, SETTINGS.STATSNUMTYPE); ty++)
|
||||||
|
Loading…
Reference in New Issue
Block a user