<div class="container">
    <div class="jumbotron">
        <h1>Welcome to Gonito.net
            $maybe location <- appLocation $ appSettings master
               $if location /= ""
                  \@#{location}
            !
        <p>Gonito (pronounced <i>ɡɔ̃ˈɲitɔ</i>) is a Kaggle<sup><a href="#disclaimer">*</a></sup>-like platform for machine learning competitions.

    <div class="panel panel-default">
        <div class="panel-heading">What's so special about Gonito:
        <ul class="list-group">
            <li class="list-group-item">free & open-source (AGPL), you can use it your own, in your company, at your university, etc. (git repo: <tt><a href="#{browsableGitRepo "gonito"}">git://gonito.net/gonito</a></tt>),
            <li class="list-group-item">git-based (challenges and solutions are submitted only with git),
            <li class="list-group-item">geval — a companion stand-alone tool for evaluation (<tt><a href="#{browsableGitRepo "geval"}">git://gonito.net/geval</a></tt>),
            <li class="list-group-item">special features for organizing classes in machine learning.


    $maybe user <- maybeUser
        $maybe _ <- userPassword $ entityVal user
        $nothing
            <div class="alert alert-info" role="alert">
                <p>
                    <strong>You have an empty password</strong> (probably because you used <a href="https://developer.mozilla.org/en-US/Persona">Persona</a> authentication system before). Get in touch with the site admin to set up the password.
        $maybe _ <- maybeLocalId
            <p>Go to the <a href="@{ListChallengesR}">challenge list</a> and choose a challenge for you!
        $nothing
            <div class="alert alert-info" role="alert">
                <p>
                    <strong>How to setup your account?
                    Click <a href="@{YourAccountR}">your account</a> to setup your name, ID and SSH public key.
    $nothing

        <div class="alert alert-info" role="alert">
            <p>
                <strong>How to log in?</strong> If you already have an account, just click <a href="@{AuthR LoginR}">log in</a>. Otherwise, please get in touch with the site admin#{contactEmailLabel master}.

    <p class="text-muted text-right"><sup>*</sup>Disclaimer: Gonito is neither affiliated with nor endorsed by <a href="https://www.kaggle.com">Kaggle</a>.

    $if not (null starredChallenges)
      <h2>Challenges
      ^{listChallengesCore starredChallenges}

      <p>… and <a href="@{ListChallengesR}">many more</a>!