From 5293a1a50b32d258dd6f56a43e69cc89b244de0f Mon Sep 17 00:00:00 2001 From: James Kolpack Date: Fri, 25 Sep 2015 11:20:55 -0400 Subject: [PATCH] Add fuel log to the nav --- Web/Scripts/Shared/Site.js | 3 ++- Web/Views/Shared/_Layout.cshtml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Web/Scripts/Shared/Site.js b/Web/Scripts/Shared/Site.js index eb3186f..161e45c 100644 --- a/Web/Scripts/Shared/Site.js +++ b/Web/Scripts/Shared/Site.js @@ -93,7 +93,8 @@ $(function() { // Add active class to nav $(function() { - var idNavActiveRegex = { + var idNavActiveRegex = { + 'fuellog-nav': /\/fuellog/i, 'log-nav': /\/log|\/City|\/Purpose/i, 'vehicle-nav': /\/vehicle/i, 'user-nav': /\/user/i diff --git a/Web/Views/Shared/_Layout.cshtml b/Web/Views/Shared/_Layout.cshtml index 9425b9e..1587e86 100644 --- a/Web/Views/Shared/_Layout.cshtml +++ b/Web/Views/Shared/_Layout.cshtml @@ -36,7 +36,8 @@ {
  • @Html.ActionLink("Logs", "Index", "Log")
  • @Html.ActionLink("Vehicles", "Index", "Vehicle")
  • -
  • @Html.ActionLink("Users", "Index", "User")
  • +
  • @Html.ActionLink("Users", "Index", "User")
  • +
  • @Html.ActionLink("Fuel Logs", "Index", "FuelLog")
  • }