@if (notifications != null)
{
+
+
@if (filter == "to")
@@ -159,22 +164,41 @@ else
|
|
- @context.FromDisplayName |
- @context.Subject |
- @string.Format("{0:dd-MMM-yyyy HH:mm:ss}", @context.CreatedOn) |
+
+ @if (context.IsRead)
+ {
+ @context.FromDisplayName |
+ @context.Subject |
+ @string.Format("{0:dd-MMM-yyyy HH:mm:ss}", @context.CreatedOn) |
+ }
+ else
+ {
+ @context.FromDisplayName |
+ @context.Subject |
+ @string.Format("{0:dd-MMM-yyyy HH:mm:ss}", @context.CreatedOn) |
+ }
|
@{
- string input = "___";
- if (context.Body.Contains(input))
- {
- context.Body = context.Body.Split(input)[0];
- context.Body = context.Body.Replace("\n", "");
- context.Body = context.Body.Replace("\r", "");
- } }
- @(context.Body.Length > 100 ? (context.Body.Substring(0, 97) + "...") : context.Body)
+ string input = "___";
+ if (context.Body.Contains(input))
+ {
+ context.Body = context.Body.Split(input)[0];
+ context.Body = context.Body.Replace("\n", "");
+ context.Body = context.Body.Replace("\r", "");
+ }
+ notificationSummary = context.Body.Length > 100 ? (context.Body.Substring(0, 97) + "...") : context.Body;
+ }
+ @if (context.IsRead)
+ {
+ @notificationSummary
+ }
+ else
+ {
+ @notificationSummary
+ }
|
@@ -192,22 +216,42 @@ else
|
|
- @context.ToDisplayName |
- @context.Subject |
- @string.Format("{0:dd-MMM-yyyy HH:mm:ss}", @context.CreatedOn) |
+
+ @if (context.IsRead)
+ {
+ @context.ToDisplayName |
+ @context.Subject |
+ @string.Format("{0:dd-MMM-yyyy HH:mm:ss}", @context.CreatedOn) |
+ }
+ else
+ {
+ @context.ToDisplayName |
+ @context.Subject |
+ @string.Format("{0:dd-MMM-yyyy HH:mm:ss}", @context.CreatedOn) |
+ }
+
|
@{
- string input = "___";
- if (context.Body.Contains(input))
- {
- context.Body = context.Body.Split(input)[0];
- context.Body = context.Body.Replace("\n", "");
- context.Body = context.Body.Replace("\r", "");
- } }
- @(context.Body.Length > 100 ? (context.Body.Substring(0, 97) + "...") : context.Body)
+ string input = "___";
+ if (context.Body.Contains(input))
+ {
+ context.Body = context.Body.Split(input)[0];
+ context.Body = context.Body.Replace("\n", "");
+ context.Body = context.Body.Replace("\r", "");
+ }
+ notificationSummary = context.Body.Length > 100 ? (context.Body.Substring(0, 97) + "...") : context.Body;
+ }
+ @if (context.IsRead)
+ {
+ @notificationSummary
+ }
+ else
+ {
+ @notificationSummary
+ }
|
@@ -217,11 +261,6 @@ else
}
-
-
}
@@ -246,6 +285,7 @@ else
private string category = string.Empty;
private string filter = "to";
private List