mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-26 17:32:22 +00:00
Styling and catching late registrations as old
This commit is contained in:
parent
ab6c943126
commit
57268bc9c2
@ -78,8 +78,8 @@ def get_row_class(record):
|
|||||||
elif record.note.balance < 0:
|
elif record.note.balance < 0:
|
||||||
c += " table-danger"
|
c += " table-danger"
|
||||||
# MODE VIEUXCON=ON
|
# MODE VIEUXCON=ON
|
||||||
if (datetime.datetime.utcnow().timestamp() - record.note.created_at.timestamp()) > 3600 * 24 * 365 * 3:
|
if (datetime.datetime.utcnow().timestamp() - record.note.created_at.timestamp()) > 3600 * 24 * 365 * 2.5:
|
||||||
c += " font-weight-bold"
|
c += " font-weight-bold underline"
|
||||||
return c
|
return c
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.underline {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
/* Opaque tooltip with white background */
|
/* Opaque tooltip with white background */
|
||||||
.tooltip.show {
|
.tooltip.show {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
@ -102,7 +102,7 @@ function displayStyle (note) {
|
|||||||
else if (balance < 0) { css += ' text-warning' }
|
else if (balance < 0) { css += ' text-warning' }
|
||||||
if (!note.email_confirmed) { css += ' bg-primary' }
|
if (!note.email_confirmed) { css += ' bg-primary' }
|
||||||
else if (!note.is_active || (note.membership && note.membership.date_end < new Date().toISOString())) { css += ' bg-info' }
|
else if (!note.is_active || (note.membership && note.membership.date_end < new Date().toISOString())) { css += ' bg-info' }
|
||||||
if (((Date.now() - Date.parse(note.created_at))/ms_per_year) > 3) { css += 'font-weight-bold' }
|
if (((Date.now() - Date.parse(note.created_at))/ms_per_year) > 2.5) { css += ' font-weight-bold underline' }
|
||||||
return css
|
return css
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user