diff --git a/Teknik/Areas/About/Controllers/AboutController.cs b/Teknik/Areas/About/Controllers/AboutController.cs index 014b860..50bc8f4 100644 --- a/Teknik/Areas/About/Controllers/AboutController.cs +++ b/Teknik/Areas/About/Controllers/AboutController.cs @@ -14,7 +14,7 @@ namespace Teknik.Areas.About.Controllers public ActionResult Index() { ViewBag.Title = "About - " + Config.Title; - ViewBag.Message = "What is Teknik?"; + ViewBag.Description = "What is Teknik?"; return View(new AboutViewModel()); } diff --git a/Teknik/Areas/Contact/Controllers/ContactController.cs b/Teknik/Areas/Contact/Controllers/ContactController.cs index 8e85975..1806383 100644 --- a/Teknik/Areas/Contact/Controllers/ContactController.cs +++ b/Teknik/Areas/Contact/Controllers/ContactController.cs @@ -21,7 +21,7 @@ namespace Teknik.Areas.Contact.Controllers public ActionResult Index() { ViewBag.Title = "Contact - " + Config.Title; - ViewBag.Message = "Contact Teknik Support"; + ViewBag.Description = "Contact Teknik Support"; return View(new ContactViewModel()); } diff --git a/Teknik/Areas/Error/Controllers/ErrorController.cs b/Teknik/Areas/Error/Controllers/ErrorController.cs index 54340e3..3fa19b8 100644 --- a/Teknik/Areas/Error/Controllers/ErrorController.cs +++ b/Teknik/Areas/Error/Controllers/ErrorController.cs @@ -14,6 +14,7 @@ namespace Teknik.Areas.Error.Controllers public ActionResult Exception(Exception exception) { ViewBag.Title = "Exception - " + Config.Title; + ViewBag.Description = "Just a boring 'ol exception. Nothing to see here, move along."; if (Response != null) Response.StatusCode = 200; @@ -28,6 +29,7 @@ namespace Teknik.Areas.Error.Controllers public ActionResult General(Exception exception) { ViewBag.Title = "Http Exception - " + Config.Title; + ViewBag.Description = "There has been a Http exception. Run!"; ErrorViewModel model = new ErrorViewModel(); model.Description = exception.Message; @@ -40,7 +42,7 @@ namespace Teknik.Areas.Error.Controllers public ActionResult Http403(Exception exception) { ViewBag.Title = "403 - " + Config.Title; - ViewBag.Message = "Access Denied"; + ViewBag.Description = "Access Denied"; ErrorViewModel model = new ErrorViewModel(); model.Exception = exception; @@ -52,7 +54,7 @@ namespace Teknik.Areas.Error.Controllers public ActionResult Http404(Exception exception) { ViewBag.Title = "404 - " + Config.Title; - ViewBag.Message = "Uh Oh, can't find it!"; + ViewBag.Description = "Uh Oh, can't find it!"; ErrorViewModel model = new ErrorViewModel(); model.Exception = exception; @@ -64,7 +66,7 @@ namespace Teknik.Areas.Error.Controllers public ActionResult Http500(Exception exception) { ViewBag.Title = "500 - " + Config.Title; - ViewBag.Message = "Something Borked"; + ViewBag.Description = "Something Borked"; ErrorViewModel model = new ErrorViewModel(); model.Exception = exception; diff --git a/Teknik/Areas/Privacy/Controllers/PrivacyController.cs b/Teknik/Areas/Privacy/Controllers/PrivacyController.cs index 4f572fb..0a45377 100644 --- a/Teknik/Areas/Privacy/Controllers/PrivacyController.cs +++ b/Teknik/Areas/Privacy/Controllers/PrivacyController.cs @@ -15,7 +15,7 @@ namespace Teknik.Areas.Privacy.Controllers public ActionResult Index() { ViewBag.Title = "Privacy Policy - " + Config.Title; - ViewBag.Message = "Teknik privacy policy."; + ViewBag.Description = "Teknik privacy policy."; return View(new PrivacyViewModel()); } diff --git a/Teknik/Areas/Profile/Controllers/ProfileController.cs b/Teknik/Areas/Profile/Controllers/ProfileController.cs index cabb06c..8904732 100644 --- a/Teknik/Areas/Profile/Controllers/ProfileController.cs +++ b/Teknik/Areas/Profile/Controllers/ProfileController.cs @@ -35,14 +35,14 @@ namespace Teknik.Areas.Profile.Controllers ProfileViewModel model = new ProfileViewModel(); ViewBag.Title = "User Does Not Exist - " + Config.Title; - ViewBag.Message = "The User does not exist"; + ViewBag.Description = "The User does not exist"; User user = db.Users.Where(u => u.Username == username).FirstOrDefault(); if (user != null) { ViewBag.Title = username + "'s Profile - " + Config.Title; - ViewBag.Message = "Viewing " + username + "'s Profile"; + ViewBag.Description = "Viewing " + username + "'s Profile"; model.UserID = user.UserId; model.Username = user.Username; @@ -79,14 +79,14 @@ namespace Teknik.Areas.Profile.Controllers SettingsViewModel model = new SettingsViewModel(); ViewBag.Title = "User Does Not Exist - " + Config.Title; - ViewBag.Message = "The User does not exist"; + ViewBag.Description = "The User does not exist"; User user = db.Users.Where(u => u.Username == username).FirstOrDefault(); if (user != null) { ViewBag.Title = "Settings - " + Config.Title; - ViewBag.Message = "Your " + Config.Title + " Settings"; + ViewBag.Description = "Your " + Config.Title + " Settings"; model.UserID = user.UserId; model.Username = user.Username; diff --git a/Teknik/Areas/Transparency/Controllers/TransparencyController.cs b/Teknik/Areas/Transparency/Controllers/TransparencyController.cs index c0bb2a4..1492f72 100644 --- a/Teknik/Areas/Transparency/Controllers/TransparencyController.cs +++ b/Teknik/Areas/Transparency/Controllers/TransparencyController.cs @@ -18,7 +18,7 @@ namespace Teknik.Areas.Transparency.Controllers public ActionResult Index() { ViewBag.Title = "Transparency - " + Config.Title; - ViewBag.Message = "Teknik transparency and statistics."; + ViewBag.Description = "Teknik transparency and statistics."; TransparencyViewModel model = new TransparencyViewModel(); Upload.Models.Upload upload = db.Uploads.OrderByDescending(u => u.UploadId).FirstOrDefault(); diff --git a/Teknik/Controllers/DefaultController.cs b/Teknik/Controllers/DefaultController.cs index fc2797f..08dbf8c 100644 --- a/Teknik/Controllers/DefaultController.cs +++ b/Teknik/Controllers/DefaultController.cs @@ -37,7 +37,7 @@ namespace Teknik.Controllers public DefaultController() { ViewBag.Title = Config.Title; - ViewBag.Message = Config.Description; + ViewBag.Description = Config.Description; if (Response != null) { diff --git a/Teknik/Views/Shared/_Layout.cshtml b/Teknik/Views/Shared/_Layout.cshtml index 7922651..59dd5ed 100644 --- a/Teknik/Views/Shared/_Layout.cshtml +++ b/Teknik/Views/Shared/_Layout.cshtml @@ -9,7 +9,7 @@ - +