starting reworking
This commit is contained in:
		@@ -14,10 +14,19 @@
 | 
			
		||||
                <strong>>{{loop.index}}: {{card}} </strong> |
 | 
			
		||||
                {% endfor %}
 | 
			
		||||
 | 
			
		||||
                <li>
 | 
			
		||||
                <br>
 | 
			
		||||
                    <strong>Trump Card: {{trump_card}}</strong><br>
 | 
			
		||||
                    <strong>Trump Color: {{trump_color}}</strong><br>
 | 
			
		||||
                </li>
 | 
			
		||||
                <br>
 | 
			
		||||
                {% if trick_finished %}
 | 
			
		||||
                Winner: {{trick_winner}} with Card {{highest_card}}
 | 
			
		||||
                <a href="/control/next_trick/">start next trick</a>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
                {% if hand_finished %}
 | 
			
		||||
                Winner: {{trick_winner}} with Card {{highest_card}}
 | 
			
		||||
                <a href="/control/next_hand/">start next hand</a>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
<!--
 | 
			
		||||
            <ul>
 | 
			
		||||
                <li>
 | 
			
		||||
                    <strong>Deal cards</strong><br>
 | 
			
		||||
@@ -30,6 +39,7 @@
 | 
			
		||||
                    <a href="/control/deal/20">deal 20</a>
 | 
			
		||||
                </li>
 | 
			
		||||
            </ul>
 | 
			
		||||
-->
 | 
			
		||||
            </p>
 | 
			
		||||
 | 
			
		||||
            <p class="disclaimer">
 | 
			
		||||
 
 | 
			
		||||
@@ -7,10 +7,17 @@
 | 
			
		||||
            <p class="lead">
 | 
			
		||||
                Play a nice game of cards?<br>
 | 
			
		||||
                <br>
 | 
			
		||||
                <strong>Player {{player}} view</strong><br>
 | 
			
		||||
                <strong>Player {{player+1}} view</strong><br>
 | 
			
		||||
                <strong> Table </strong><br>
 | 
			
		||||
                {% for key,value in played_cards.items() %}
 | 
			
		||||
                  || {{key.name}}: {{value}}
 | 
			
		||||
                {% for player,card in played_cards %}
 | 
			
		||||
                  ||
 | 
			
		||||
                  {% if player.id == active_player %}
 | 
			
		||||
                  <font color="red">
 | 
			
		||||
                  {% endif %}
 | 
			
		||||
                  {{player.name}}: {{card}}
 | 
			
		||||
                  {% if player.id == active_player %}
 | 
			
		||||
                  </font>
 | 
			
		||||
                  {% endif %}
 | 
			
		||||
                {% endfor %}
 | 
			
		||||
                ||
 | 
			
		||||
                <br>
 | 
			
		||||
@@ -24,11 +31,18 @@
 | 
			
		||||
                {% for card in cards %}
 | 
			
		||||
                    <li>
 | 
			
		||||
                        <strong>>card {{loop.index}} is: {{card}} </strong><br>
 | 
			
		||||
                         {% if playerActive %}
 | 
			
		||||
                         {% if playerActive and not choose_trump_color %}
 | 
			
		||||
                            <a href="/player/{{player}}/play/{{loop.index0}}">play card {{loop.index}}<{{card}}></a>
 | 
			
		||||
                        {% endif %}
 | 
			
		||||
                    </li>
 | 
			
		||||
                {% endfor %}
 | 
			
		||||
                {% if choose_trump_color %}
 | 
			
		||||
                <strong>Choose Trump Color:</strong>
 | 
			
		||||
                <a href="/player/{{player}}/set_trump/r">Red></a>
 | 
			
		||||
                <a href="/player/{{player}}/set_trump/g">Green></a>
 | 
			
		||||
                <a href="/player/{{player}}/set_trump/b">Blue></a>
 | 
			
		||||
                <a href="/player/{{player}}/set_trump/y">Yellow ></a>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
            <!--
 | 
			
		||||
                <li>
 | 
			
		||||
                    <strong>Movie by IMDB code</strong><br>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user