Fix for IDeletable
This commit is contained in:
@ -18,6 +18,15 @@
|
||||
|
||||
[Parameter]
|
||||
public DateTime ModifiedOn { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public string DeletedBy { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public DateTime? DeletedOn { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public bool IsDeleted { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public string Style { get; set; }
|
||||
@ -54,5 +63,19 @@
|
||||
}
|
||||
text += "</p>";
|
||||
}
|
||||
|
||||
if (!String.IsNullOrEmpty(DeletedBy) || DeletedOn.HasValue)
|
||||
{
|
||||
text += "<p style=\"" + Style + "\">Deleted ";
|
||||
if (!String.IsNullOrEmpty(DeletedBy))
|
||||
{
|
||||
text += " by <b>" + DeletedBy + "</b>";
|
||||
}
|
||||
if (DeletedOn != null)
|
||||
{
|
||||
text += " on <b>" + DeletedOn.Value.ToString("MMM dd yyyy HH:mm:ss") + "</b>";
|
||||
}
|
||||
text += "</p>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user