summaryrefslogtreecommitdiffstats
path: root/templates/index.html
blob: 3258d08fd1f9e7e45a2a185f321a4a811d6adf21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>bitvend - The Bitcoin Vending Machine</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="stylesheet" href="/static/css/bootstrap.css" media="screen">
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="../bower_components/html5shiv/dist/html5shiv.js"></script>
      <script src="../bower_components/respond/dest/respond.min.js"></script>
    <![endif]-->

    <style>
        body {
            margin-top: 80px;
        }
    </style>
  </head>
  <body>
      <div class="navbar navbar-default navbar-fixed-top">
          <div class="container">
              <div class="navbar-header">
                  <a href="../" class="navbar-brand">bitvend - bitcoin vending machine</a>
                  <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main">
                      <span class="icon-bar"></span>
                      <span class="icon-bar"></span>
                      <span class="icon-bar"></span>
                  </button>
              </div>
          </div>
      </div>

      <div class="container">
          {% for item in items %}
          <div class="col-md-3">
              <div class="well vend-item">
                  <img src="{{ item.image }}"  class="img-responsive" />
                  <span class="label label-default pull-right">{{ '%1.2fzł'|format(item.value/100) }} / {{ format_btc(from_local_currency(item.value)) }}</span>
                  <big>{{ item.name }}</big>
                  <img src="https://blockchain.info/qr?data=bitcoin:12ihVyoAGRci1K5hGQaQveEy7ThfwXfNSS&amount={{ from_local_currency(item.value) }}&size=288" class="img-responsive" />
              </div>
          </div>
          {% endfor %}
      </div>
  </body>
</html>