loading.html 908 Bytes
Newer Older
zauberstuhl's avatar
zauberstuhl committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<main role="main">
  <section class="mt-4 text-center">
    <div class="container">
      <h1 class="jumbotron-heading">Unmappd - Your beer map</h1>
{{if gt .CurrentUser.ID 0}}
        <object data="/assets/images/waiting.svg" type="image/svg+xml"></object>
        <p class="lead text-muted">Your checkins being processed..</p>
{{else}}
        <p class="lead text-muted">No data is available for this user! Please login at least once.</p>
        <form method="GET" action="https://untappd.com/oauth/authenticate">
          <input type="hidden" name="client_id" value="{{.Viper.GetString "clientID"}}"/>
          <input type="hidden" name="response_type" value="code"/>
          <input type="hidden" name="redirect_url" value="{{.Viper.GetString "redirectUrl"}}"/>
          <button class="btn btn-primary" type="submit">Login &amp; pull</button>
        </form>
{{end}}
    </div>
  </section>
</main>