1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-02-25 17:36:31 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Nicolas Margulies
d6645900d3 PC Kfet can see kfet memberships to accurately display non-Kfet members in blue 2024-01-11 21:01:55 +01:00
Nicolas Margulies
e35847ebd8 Show old people with PC Kfet 2024-01-11 20:37:35 +01:00
Nicolas Margulies
57268bc9c2 Styling and catching late registrations as old 2024-01-11 19:48:41 +01:00
4 changed files with 26 additions and 4 deletions

View File

@ -78,8 +78,8 @@ def get_row_class(record):
elif record.note.balance < 0:
c += " table-danger"
# MODE VIEUXCON=ON
if (datetime.datetime.utcnow().timestamp() - record.note.created_at.timestamp()) > 3600 * 24 * 365 * 3:
c += " font-weight-bold"
if (datetime.datetime.utcnow().timestamp() - record.note.created_at.timestamp()) > 3600 * 24 * 365 * 2.5:
c += " font-weight-bold underline"
return c

View File

@ -3111,6 +3111,22 @@
"description": "Voir ceux nous ayant pour ami, pour toujours"
}
},
{
"model": "permission.permission",
"pk": 199,
"fields": {
"model": [
"member",
"membership"
],
"query": "{\"club\": 2}",
"type": "view",
"mask": 1,
"field": "",
"permanent": false,
"description": "Voir les adhérents Kfet"
}
},
{
"model": "permission.role",
"pk": 1,
@ -3593,7 +3609,9 @@
168,
176,
177,
197
178,
197,
199
]
}
},

View File

@ -3,6 +3,10 @@
text-decoration: underline;
}
.underline {
text-decoration: underline;
}
/* Opaque tooltip with white background */
.tooltip.show {
opacity: 1;

View File

@ -102,7 +102,7 @@ function displayStyle (note) {
else if (balance < 0) { css += ' text-warning' }
if (!note.email_confirmed) { css += ' bg-primary' }
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
}