+ @if (_envelopeReceiver is not null) {
+
+ @(_envelopeReceiver.Envelope?.Title ?? "Dokument")
+
+ @if (!string.IsNullOrWhiteSpace(_envelopeReceiver.Envelope?.User?.FullName) || !string.IsNullOrWhiteSpace(_envelopeReceiver.Envelope?.User?.Email)) {
+
+ Von
+ @if (!string.IsNullOrWhiteSpace(_envelopeReceiver.Envelope?.User?.FullName)) {
+ @_envelopeReceiver.Envelope.User.FullName
+ }
+ @if (!string.IsNullOrWhiteSpace(_envelopeReceiver.Envelope?.User?.Email)) {
+ <@_envelopeReceiver.Envelope.User.Email>
+ }
+ @if (_envelopeReceiver.Envelope?.AddedWhen != null) {
+ ยท @_envelopeReceiver.Envelope.AddedWhen.ToString("dd.MM.yyyy")
+ }
+
+ }
+ } else {
+
Dokumentenansicht
+ }
+
+ @* Right: Badges + Logout *@
+
@if (_envelopeReceiver is not null) {
- @* Compact badges row *@
-
+
@if (!string.IsNullOrWhiteSpace(_envelopeReceiver.Name)) {
-
-
+
}
- @* Logout button *@
- @if (!string.IsNullOrWhiteSpace(EnvelopeKey)) {
-
- }
+ @* Logout button *@
+ @if (!string.IsNullOrWhiteSpace(EnvelopeKey)) {
+
+ }
+
+
+ @* Row 2: Messages (visible text) *@
+ @if (_envelopeReceiver is not null && (!string.IsNullOrWhiteSpace(_envelopeReceiver.Envelope?.Message) || !string.IsNullOrWhiteSpace(_envelopeReceiver.PrivateMessage))) {
+
+ @if (!string.IsNullOrWhiteSpace(_envelopeReceiver.Envelope?.Message)) {
+
+ ๐ง
+ @_envelopeReceiver.Envelope.Message
+
+ }
+ @if (!string.IsNullOrWhiteSpace(_envelopeReceiver.PrivateMessage)) {
+
+ ๐
+ @_envelopeReceiver.PrivateMessage
+
+ }
+
+ }