     logTimeModel = new LogTimeModel({repositoryId, issueNumber})
     @changeView(new LogTimeGithubView(model : logTimeModel))
     @changeActiveNavbarItem("/log")
+    @changeNavbarDate()
     @changeTitle("Log time")
 
 

    @$mainContainer = $("#main-container")


  user : (date) ->

    userModel = new UserViewModel(date : date)
    @showReport(userModel)
    @changeActiveNavbarItem("/")
    @changeTitle("Me")




    $navbar = $("#main-nav")
    $navbar.find(".active").removeClass("active")
    
    if url == "/"
      url = "/me"

    if url
      $navbar.find("a[href^=\"#{url}\"]").closest("li").addClass("active")

    return


  changeNavbarDate : (date) ->

    $navbarItems = $("#main-nav li").slice(0, 3)
    $navbarItems.each(->
      $a = $(this).find("a")
      newHref = $a.attr("href").replace(/^(\/[a-z]+)(.*)$/, (full, match1, part2) ->
        if date?
          "#{match1}/#{date}"
        else
          match1
      )
      $a.attr("href", newHref)
    )
    return


