Rename disinclude to exclude and style as soft badge

This commit is contained in:
tyuXX 2026-10-21 18:51:26 +00:00
parent d0fd394fbd
commit 573a249580
3 changed files with 39 additions and 17 deletions

View file

@ -192,7 +192,7 @@
<% } %>
<% if (item.excluded) { %>
<span class="badge badge-excluded">Disincluded</span>
<span class="badge badge-excluded">Excluded</span>
<% } else if (item.completed) { %>
<span class="badge badge-completed">Done</span>
<% } else if (item.status === 'next-week') { %>
@ -207,11 +207,11 @@
<button
type="button"
class="btn-disinclude"
class="btn-exclude"
data-id="<%= item.id %>"
title="<%= item.excluded ? 'Restore this homework to your active list' : 'Disinclude this homework (e.g. from another class)' %>"
title="<%= item.excluded ? 'Restore this homework to your active list' : 'Exclude this homework (e.g. from another class)' %>"
>
<%= item.excluded ? 'Restore' : 'Disinclude' %>
<%= item.excluded ? 'Restore' : 'Exclude' %>
</button>
</div>
</div>