// listChampionshipsHandler lists all available Championships known to Server Manager
listChampionshipsHandler lists all available Championships known to Server Manager
// listChampionshipsHandler lists all available Championships known to Server Manager
func listChampionshipsHandler(w http.ResponseWriter, r *http.Request) {
	championships, err := championshipManager.ListChampionships()
	if err != nil {
		logrus.Errorf("couldn't list championships, err: %s", err)
		http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
		return
	}
	ViewRenderer.MustLoadTemplate(w, r, "championships/index.html", map[string]interface{}{
		"championships": championships,
	})
}
func listChampionshipsHandler ( w http . ResponseWriter , r * http . Request ) { championships , err := championshipManager . ListChampionships ( ) if err != nil { logrus . Errorf ( " " , err ) http . Error ( w , http . StatusText ( http . StatusInternalServerError ) , http . StatusInternalServerError ) return } ViewRenderer . MustLoadTemplate ( w , r , " " , map [ string ] interface { } { " " : championships , } ) }
listChampionshipsHandler lists all available Championships known to Server Manager
listChampionshipsHandler lists all available Championships known to Server Manager