[Fixes #6440] Last Login and Created Date

Fixes issue #6440.  Only display last login or created date for users when there is a value to display
This commit is contained in:
Gustavo Tandeciarz
2016-02-20 15:06:56 -05:00
parent a2344de0a1
commit 4ba75cc9db

View File

@@ -87,10 +87,14 @@
}
</td>
<td>
@Display(New.DateTimeRelative(dateTimeUtc: entry.User.CreatedUtc))
@if (entry.User.CreatedUtc != null) {
@Display(New.DateTimeRelative(dateTimeUtc: entry.User.CreatedUtc))
}
</td>
<td>
@Display(New.DateTimeRelative(dateTimeUtc: entry.User.LastLoginUtc))
@if (entry.User.LastLoginUtc != null) {
@Display(New.DateTimeRelative(dateTimeUtc: entry.User.LastLoginUtc))
}
</td>
</tr>
userIndex++;
@@ -100,4 +104,4 @@
@Display(Model.Pager)
</fieldset>
}
}