From e4a501c0260458e99be9ac557df380a1aaf9e6b2 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 18 May 2017 16:33:27 -0400 Subject: notifications page --- Project-Unite/Views/Manage/Index.cshtml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'Project-Unite/Views/Manage') diff --git a/Project-Unite/Views/Manage/Index.cshtml b/Project-Unite/Views/Manage/Index.cshtml index 198180f..cff7179 100644 --- a/Project-Unite/Views/Manage/Index.cshtml +++ b/Project-Unite/Views/Manage/Index.cshtml @@ -95,6 +95,38 @@

Send me notifications through email when I'm inactive

Check this option to allow us to email you when you receive a notification and you haven't logged in for a week.

@Html.CheckBoxFor(Model=>Model.EmailOnNotifications) + @{ + var notes = Model.Notifications.Where(x=>x.IsRead==false).OrderByDescending(x=>x.Timestamp); + } +

Unread Notifications

+ @if (notes.Count() > 0) + { +

Below is a list of all unread notifications.

+ + + +
+ Notification +
+ @foreach(var note in notes) + { +
+ @if (!string.IsNullOrWhiteSpace(note.AvatarUrl)) + { + + } +
@note.Title
+

@note.Description

+ Read +
+ } + } + else + { +

You have no notifications.

+ }

Privacy & Security

-- cgit v1.2.3