From 304d9acf03e0464ef836dbcfd27e646d58b45c86 Mon Sep 17 00:00:00 2001 From: koksnuss Date: Mon, 18 May 2020 23:21:53 +0200 Subject: [PATCH] #30: if #exists and !#found there should be a unique class #exists for this case --- coinmanager/coinc/static/coinc/main.js | 2 ++ coinmanager/coinc/static/coinc/styles.css | 2 +- coinmanager/coinc/views.py | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/coinmanager/coinc/static/coinc/main.js b/coinmanager/coinc/static/coinc/main.js index ae967e4..3c97cb9 100644 --- a/coinmanager/coinc/static/coinc/main.js +++ b/coinmanager/coinc/static/coinc/main.js @@ -132,6 +132,8 @@ function render_response(data, td, set) { td_class = 'brass'; } else if (set['found'] && set['found_by']) { td_class = 'found'; + } else { + td_class = 'exist'; } if (set['ec']) { diff --git a/coinmanager/coinc/static/coinc/styles.css b/coinmanager/coinc/static/coinc/styles.css index 2beb09c..05e9391 100644 --- a/coinmanager/coinc/static/coinc/styles.css +++ b/coinmanager/coinc/static/coinc/styles.css @@ -270,7 +270,7 @@ td.coin { background-color: white !important; } -.year { +.exist, .year { background-color: white !important; } diff --git a/coinmanager/coinc/views.py b/coinmanager/coinc/views.py index 4b0660f..c7049ee 100644 --- a/coinmanager/coinc/views.py +++ b/coinmanager/coinc/views.py @@ -163,6 +163,8 @@ def show_coin(country, year, stamp, value): td_class = 'brass' elif coin.found_by: td_class = 'found' + else: + td_class = 'exist' if coin.in_collector: td_class += ' ec'