2020-04-05 16:00:48 +02:00
|
|
|
{% 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>
|
2020-04-06 22:42:31 +02:00
|
|
|
<strong>Player {{player}} view</strong><br>
|
|
|
|
<strong> Table </strong><br>
|
2020-04-12 15:27:05 +02:00
|
|
|
{% for key,value in played_cards.items() %}
|
|
|
|
|| {{key.name}}: {{value}}
|
|
|
|
{% endfor %}
|
|
|
|
||
|
2020-04-06 22:42:31 +02:00
|
|
|
<br>
|
|
|
|
<strong> Your cards: </strong>
|
2020-04-05 23:27:33 +02:00
|
|
|
<ul>
|
2020-04-06 22:42:31 +02:00
|
|
|
<li>
|
|
|
|
<strong>Trump Card: {{trump_card}}</strong><br>
|
|
|
|
<strong>Trump Color: {{trump_color}}</strong><br>
|
|
|
|
</li>
|
|
|
|
|
2020-04-05 16:00:48 +02:00
|
|
|
{% for card in cards %}
|
|
|
|
<li>
|
|
|
|
<strong>>card {{loop.index}} is: {{card}} </strong><br>
|
2020-04-12 15:27:05 +02:00
|
|
|
{% if playerActive %}
|
|
|
|
<a href="/player/{{player}}/play/{{loop.index0}}">play card {{loop.index}}<{{card}}></a>
|
|
|
|
{% endif %}
|
2020-04-05 16:00:48 +02:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
2020-04-06 22:42:31 +02:00
|
|
|
<!--
|
2020-04-05 16:00:48 +02:00
|
|
|
<li>
|
|
|
|
<strong>Movie by IMDB code</strong><br>
|
|
|
|
<a href="/api/movie/tt0096754">GET /api/movie/{imdb_number}</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<strong>Top 10 Movies (by IMDB score)</strong><br>
|
|
|
|
<a href="/api/movie/top">GET /api/movie/top</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<strong>All genres</strong><br>
|
|
|
|
<a href="/api/movie/genre/all">GET /api/movie/genre/all</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<strong>Top movies for a given genres</strong><br>
|
|
|
|
<a href="/api/movie/genre/sci-fi">GET /api/movie/genre/{genre}</a>
|
|
|
|
</li>
|
|
|
|
-->
|
2020-04-05 23:27:33 +02:00
|
|
|
</ul>
|
2020-04-05 16:00:48 +02:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p class="disclaimer">
|
|
|
|
Spam Bacon Sausage + Spam
|
|
|
|
Spam Spam Spam Spam Spam
|
|
|
|
Spam Baked Beans Spam
|
|
|
|
Spam Spam + Spam
|
|
|
|
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|