added control view
This commit is contained in:
44
templates/home/control.html
Normal file
44
templates/home/control.html
Normal file
@ -0,0 +1,44 @@
|
||||
{% extends "/shared/_layout.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="content">
|
||||
<h1><span class="font-semi-bold">Gambling Foo</span> <span class="smaller">A RESTful gaming service</span></h1>
|
||||
<p class="lead">
|
||||
Play a nice game of cards?<br>
|
||||
<br>
|
||||
<strong>Control view</strong>
|
||||
<br>
|
||||
|
|
||||
{% for card in deck %}
|
||||
<strong>>{{loop.index}}: {{card}} </strong> |
|
||||
{% endfor %}
|
||||
|
||||
<li>
|
||||
<strong>Trump Card: {{trump_card}}</strong><br>
|
||||
<strong>Trump Color: {{trump_color}}</strong><br>
|
||||
</li>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>Deal cards</strong><br>
|
||||
<a href="/control/deal/1">deal 1</a>
|
||||
<a href="/control/deal/2">deal 2</a>
|
||||
<a href="/control/deal/5">deal 5</a>
|
||||
<a href="/control/deal/10">deal 10</a>
|
||||
<a href="/control/deal/12">deal 12</a>
|
||||
<a href="/control/deal/20">deal 20</a>
|
||||
</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<p class="disclaimer">
|
||||
Spam Bacon Sausage + Spam
|
||||
Spam Spam Spam Spam Spam
|
||||
Spam Baked Beans Spam
|
||||
Spam Spam + Spam
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
{% endblock %}
|
@ -8,14 +8,17 @@
|
||||
Play a nice game of cards?<br>
|
||||
<br>
|
||||
<strong>Player {{player}} view</strong>
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<ul>
|
||||
{% for card in cards %}
|
||||
<li>
|
||||
<strong>>card {{loop.index}} is: {{card}} </strong><br>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<li>
|
||||
<strong>Trump Card: {{trump_card}}</strong><br>
|
||||
<strong>Trump Color: {{trump_color}}</strong><br>
|
||||
</li>
|
||||
<!--
|
||||
<li>
|
||||
<strong>Movie by IMDB code</strong><br>
|
||||
@ -34,7 +37,7 @@
|
||||
<a href="/api/movie/genre/sci-fi">GET /api/movie/genre/{genre}</a>
|
||||
</li>
|
||||
-->
|
||||
</table>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<p class="disclaimer">
|
||||
|
Reference in New Issue
Block a user