A British teenager who described himself as a neo-Nazi was sentenced to almost seven years in prison on Tuesday for planning a terrorism attack from his bedroom.