#30: if #exists and !#found there should be a unique class #exists for this case

This commit is contained in:
koksnuss 2020-05-18 23:21:53 +02:00
parent 369579069d
commit 304d9acf03
3 changed files with 5 additions and 1 deletions

View File

@ -132,6 +132,8 @@ function render_response(data, td, set) {
td_class = 'brass'; td_class = 'brass';
} else if (set['found'] && set['found_by']) { } else if (set['found'] && set['found_by']) {
td_class = 'found'; td_class = 'found';
} else {
td_class = 'exist';
} }
if (set['ec']) { if (set['ec']) {

View File

@ -270,7 +270,7 @@ td.coin {
background-color: white !important; background-color: white !important;
} }
.year { .exist, .year {
background-color: white !important; background-color: white !important;
} }

View File

@ -163,6 +163,8 @@ def show_coin(country, year, stamp, value):
td_class = 'brass' td_class = 'brass'
elif coin.found_by: elif coin.found_by:
td_class = 'found' td_class = 'found'
else:
td_class = 'exist'
if coin.in_collector: if coin.in_collector:
td_class += ' ec' td_class += ' ec'