[Pharo] Personal fitness tracker web app.
Only render non-nil attributes for user.
src/MyFitnessTracker/MFTUser.class.st
@@ -200,12 +200,14 @@
200
200
html tableRow: [
201
201
html tableData: 'date of birth'.
202
202
html tableData: dateOfBirth ].
203
Removed:
html tableRow: [
204
Removed:
html tableData: 'real first name'.
205
Removed:
html tableData: realFirstName ].
206
Removed:
html tableRow: [
207
Removed:
html tableData: 'real last name'.
208
Removed:
html tableData: realLastName ].
203
Added:
realFirstName ifNotEmpty: [
204
Added:
html tableRow: [
205
Added:
html tableData: 'real first name'.
206
Added:
html tableData: realFirstName ] ].
207
Added:
realLastName ifNotEmpty: [
208
Added:
html tableRow: [
209
Added:
html tableData: 'real last name'.
210
Added:
html tableData: realLastName ] ].
209
211
html tableRow: [
210
212
html tableData: 'last login date and time'.
211
213
html tableData: lastLoginDateAndTime ] ]