 
 apiOffline =
   News: "/news"
+
+teacherLoggedIn =
+  Problems: "/problems"
+  Scoreboard: "/scoreboard"
+  Stats: "/stats"
+  About:
+    FAQ: "/faq"
+    Sponsors: "/sponsors"
+    News: "/news"
+  Logout: "/logout"
 
 userLoggedIn =
   Problems: "/problems"

    News: "/news"
  Login: "/login"

teacherLoggedIn =
  Problems: "/problems"
  Scoreboard: "/scoreboard"
  Stats: "/stats"
  About:
    FAQ: "/faq"
    Sponsors: "/sponsors"
    News: "/news"
  Logout: "/logout"


loadNavbar = (renderNavbarLinks, renderNestedNavbarLinks) ->

  navbarLayout = {

  apiCall "GET", "/api/user/status", {}
  .done (data) ->
    navbarLayout.links = userNotLoggedIn
    
    console.log data
    if data["status"] == 1
      if data.data["teacher"]
        navbarLayout.links = teacherLoggedIn
      else if data.data["logged_in"]
        navbarLayout.links = userLoggedIn
    console.log navbarLayout.links
    $("#navbar-links").html renderNavbarLinks(navbarLayout)

  .fail ->
