mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 09:12:11 +01:00 
			
		
		
		
	Styling and catching late registrations as old
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user