diff --git a/static/app.js b/static/app.js index 9f24956..3e39f89 100644 --- a/static/app.js +++ b/static/app.js @@ -1044,7 +1044,7 @@ (info.morning_items || []).forEach(function(mi){ items.push({pillar: p, text: mi.text, type: 'morning'}); }); } if (blueprintFilter === 'all' || blueprintFilter === 'evening') { - (info.evening_items || []).forEach(function(ei){ items.push({pillar: p, text: ei.mistake || ei.improvement, type: 'evening'}); }); + (info.evening_items || []).forEach(function(ei){ items.push({pillar: p, text: ei.mistake || ei.improvement, improvement: ei.improvement, type: 'evening'}); }); } if (blueprintFilter === 'all' || blueprintFilter === 'study') { (info.study_items || []).forEach(function(si){ items.push({pillar: p, text: si.name, type: 'study', done: si.done, note: si.note}); }); @@ -1064,13 +1064,15 @@ var html = ''; items.forEach(function(item){ var dot = ''; - var noteHtml = item.type === 'study' && item.note ? '' + esc(item.note) + '' : ''; + var extra = ''; + if (item.type === 'study' && item.note) extra = '' + esc(item.note) + ''; + if (item.type === 'evening' && item.improvement) extra = '→ ' + esc(item.improvement) + ''; html += '