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 +++++++++++++++++++++++++ Project-Unite/Views/Shared/_LoginPartial.cshtml | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) (limited to 'Project-Unite/Views') 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

diff --git a/Project-Unite/Views/Shared/_LoginPartial.cshtml b/Project-Unite/Views/Shared/_LoginPartial.cshtml index 4acf09b..2a92827 100644 --- a/Project-Unite/Views/Shared/_LoginPartial.cshtml +++ b/Project-Unite/Views/Shared/_LoginPartial.cshtml @@ -15,7 +15,7 @@