update hmtl

prod
Razmig Sarkissian 2 years ago
parent 5f3205f248
commit 81645239d7
  1. 5
      scores/static/scores/style.css
  2. 25
      scores/templates/scores/index.html
  3. 4
      scores/templates/scores/match.html
  4. 28
      scores/templates/scores/tournament.html

@ -102,8 +102,9 @@ td {
.match { .match {
/* display: inline-block; */ /* display: inline-block; */
display:inline-block; display:inline-block;
width: 30%; width: 28%;
padding: 0px 20px; padding: 0px 20px;
vertical-align: top; /* here */
} }
@ -130,7 +131,7 @@ td {
.steamname { .steamname {
width: 100%; width: 100%;
font-size: 200%; font-size: 150%;
} }
.smatch { .smatch {

@ -24,26 +24,26 @@
<div style="width: 100%;"> <div style="width: 100%;">
<div style="float: left;"> <div style="float: left;">
<h1>{{ match.title }}</h1> <h3>{{ match.title }}</h3>
</div> </div>
{% if match.isMatch or match.isBracket %} {% if match.isMatch or match.isBracket %}
{% if match.isMatch %} {% if match.isMatch %}
<div style="float: right;"> <div style="float: right;">
<h1><a href="/match/{{ match.id }}/">TERRAIN #{{ match.court }}</a><h1> <h3><a href="/match/{{ match.id }}/">TERRAIN #{{ match.court }}</a><h3>
</div> </div>
{% else %} {% else %}
<div style="float: right;"> <div style="float: right;">
<h1><a href="/match/{{ match.id }}/">POULE #{{ match.poule|floatformat:0 }}</a><h1> <h3><a href="/match/{{ match.id }}/">POULE #{{ match.poule|floatformat:0 }}</a><h3>
</div> </div>
{% endif %} {% endif %}
{% else %} {% else %}
{% if match.isStatistic %} {% if match.isStatistic %}
<div style="float: right;"> <div style="float: right;">
<h1><a href="/match/{{ match.id }}/">STATISTIQUES</a><h1> <h3><a href="/match/{{ match.id }}/">STATISTIQUES</a><h3>
</div> </div>
{% else %} {% else %}
<div style="float: right;"> <div style="float: right;">
<h1><a href="/match/{{ match.id }}/">#{{ match.court }}</a><h1> <h3><a href="/match/{{ match.id }}/">#{{ match.court }}</a><h3>
</div> </div>
{% endif %} {% endif %}
@ -104,10 +104,12 @@
{% endif %} {% endif %}
<!-- <p id="demo"></p> --> <!-- <p id="demo"></p> -->
{% if match.isMatch or match.isBracket %}
<p class="duration"> <p class="duration">
<div class="small"> {{ match.durationPrefix }}</div> <div class="small"> {{ match.durationPrefix }}</div>
<div class="big">{{ match.duration }}</div> <div class="big">{{ match.duration }}</div>
</p> </p>
{% endif %}
</div> </div>
{% endfor %} {% endfor %}
@ -120,26 +122,26 @@
<div style="width: 100%;"> <div style="width: 100%;">
<div style="float: left;"> <div style="float: left;">
<h1>{{ match.title }}</h1> <h3>{{ match.title }}</h3>
</div> </div>
{% if match.isMatch or match.isBracket %} {% if match.isMatch or match.isBracket %}
{% if match.isMatch %} {% if match.isMatch %}
<div style="float: right;"> <div style="float: right;">
<h1><a href="/match/{{ match.id }}/">TERRAIN #{{ match.court }}</a><h1> <h3><a href="/match/{{ match.id }}/">TERRAIN #{{ match.court }}</a><h3>
</div> </div>
{% else %} {% else %}
<div style="float: right;"> <div style="float: right;">
<h1><a href="/match/{{ match.id }}/">POULE #{{ match.poule|floatformat:0 }}</a><h1> <h3><a href="/match/{{ match.id }}/">POULE #{{ match.poule|floatformat:0 }}</a><h3>
</div> </div>
{% endif %} {% endif %}
{% else %} {% else %}
{% if match.isStatistic %} {% if match.isStatistic %}
<div style="float: right;"> <div style="float: right;">
<h1><a href="/match/{{ match.id }}/">STATISTIQUES</a><h1> <h3><a href="/match/{{ match.id }}/">STATISTIQUES</a><h3>
</div> </div>
{% else %} {% else %}
<div style="float: right;"> <div style="float: right;">
<h1><a href="/match/{{ match.id }}/">#{{ match.court }}</a><h1> <h3><a href="/match/{{ match.id }}/">#{{ match.court }}</a><h3>
</div> </div>
{% endif %} {% endif %}
@ -198,11 +200,12 @@
{% endif %} {% endif %}
<!-- <p id="demo"></p> --> {% if match.isMatch or match.isBracket %}
<p class="duration"> <p class="duration">
<div class="small"> {{ match.durationPrefix }}</div> <div class="small"> {{ match.durationPrefix }}</div>
<div class="big">{{ match.duration }}</div> <div class="big">{{ match.duration }}</div>
</p> </p>
{% endif %}
<div class="clear" /> <div class="clear" />
</div> </div>

@ -16,6 +16,7 @@
<main class="page-body"> <main class="page-body">
{% autoescape off %} {% autoescape off %}
<div class="scenter">{{ match.tournament.name }}</div>
<div class="scontainer"> <div class="scontainer">
<div class="smatch"> <div class="smatch">
@ -79,11 +80,12 @@
{% endif %} {% endif %}
<!-- <p id="demo"></p> --> {% if match.isMatch or match.isBracket %}
<p class="duration"> <p class="duration">
<div class="small"> {{ match.durationPrefix }}</div> <div class="small"> {{ match.durationPrefix }}</div>
<div class="sbig">{{ match.duration }}</div> <div class="sbig">{{ match.duration }}</div>
</p> </p>
{% endif %}
</div> </div>

@ -19,32 +19,32 @@
<div class="container"> <div class="container">
<div class="bigcenter">{{ tournament.name }}</div> <div class="center">{{ tournament.name }}</div>
{% for match in live_matches %} {% for match in live_matches %}
<div class="match"> <div class="match">
<div style="width: 100%;"> <div style="width: 100%;">
<div style="float: left;"> <div style="float: left;">
<h1>{{ match.title }}</h1> <h4>{{ match.title }}</h4>
</div> </div>
{% if match.isMatch or match.isBracket %} {% if match.isMatch or match.isBracket %}
{% if match.isMatch %} {% if match.isMatch %}
<div style="float: right;"> <div style="float: right;">
<h1><a href="/match/{{ match.id }}/">TERRAIN #{{ match.court }}</a><h1> <h3><a href="/match/{{ match.id }}/">TERRAIN #{{ match.court }}</a><h3>
</div> </div>
{% else %} {% else %}
<div style="float: right;"> <div style="float: right;">
<h1><a href="/match/{{ match.id }}/">POULE #{{ match.poule|floatformat:0 }}</a><h1> <h3><a href="/match/{{ match.id }}/">POULE #{{ match.poule|floatformat:0 }}</a><h3>
</div> </div>
{% endif %} {% endif %}
{% else %} {% else %}
{% if match.isStatistic %} {% if match.isStatistic %}
<div style="float: right;"> <div style="float: right;">
<h1><a href="/match/{{ match.id }}/">STATISTIQUES</a><h1> <h3><a href="/match/{{ match.id }}/">STATISTIQUES</a><h3>
</div> </div>
{% else %} {% else %}
<div style="float: right;"> <div style="float: right;">
<h1><a href="/match/{{ match.id }}/">#{{ match.court }}</a><h1> <h3><a href="/match/{{ match.id }}/">#{{ match.court }}</a><h3>
</div> </div>
{% endif %} {% endif %}
@ -103,10 +103,13 @@
{% endif %} {% endif %}
<!-- <p id="demo"></p> --> <!-- <p id="demo"></p> -->
{% if match.isMatch or match.isBracket %}
<p class="duration"> <p class="duration">
<div class="small"> {{ match.durationPrefix }}</div> <div class="small"> {{ match.durationPrefix }}</div>
<div class="big">{{ match.duration }}</div> <div class="big">{{ match.duration }}</div>
</p> </p>
{% endif %}
</div> </div>
{% endfor %} {% endfor %}
@ -115,26 +118,26 @@
<div style="width: 100%;"> <div style="width: 100%;">
<div style="float: left;"> <div style="float: left;">
<h1>{{ match.title }}</h1> <h3>{{ match.title }}</h3>
</div> </div>
{% if match.isMatch or match.isBracket %} {% if match.isMatch or match.isBracket %}
{% if match.isMatch %} {% if match.isMatch %}
<div style="float: right;"> <div style="float: right;">
<h1><a href="/match/{{ match.id }}/">TERRAIN #{{ match.court }}</a><h1> <h3><a href="/match/{{ match.id }}/">TERRAIN #{{ match.court }}</a><h3>
</div> </div>
{% else %} {% else %}
<div style="float: right;"> <div style="float: right;">
<h1><a href="/match/{{ match.id }}/">POULE #{{ match.poule|floatformat:0 }}</a><h1> <h3><a href="/match/{{ match.id }}/">POULE #{{ match.poule|floatformat:0 }}</a><h3>
</div> </div>
{% endif %} {% endif %}
{% else %} {% else %}
{% if match.isStatistic %} {% if match.isStatistic %}
<div style="float: right;"> <div style="float: right;">
<h1><a href="/match/{{ match.id }}/">STATISTIQUES</a><h1> <h3><a href="/match/{{ match.id }}/">STATISTIQUES</a><h3>
</div> </div>
{% else %} {% else %}
<div style="float: right;"> <div style="float: right;">
<h1><a href="/match/{{ match.id }}/">#{{ match.court }}</a><h1> <h3><a href="/match/{{ match.id }}/">#{{ match.court }}</a><h3>
</div> </div>
{% endif %} {% endif %}
@ -193,11 +196,12 @@
{% endif %} {% endif %}
<!-- <p id="demo"></p> --> {% if match.isMatch or match.isBracket %}
<p class="duration"> <p class="duration">
<div class="small"> {{ match.durationPrefix }}</div> <div class="small"> {{ match.durationPrefix }}</div>
<div class="big">{{ match.duration }}</div> <div class="big">{{ match.duration }}</div>
</p> </p>
{% endif %}
</div> </div>
{% endfor %} {% endfor %}

Loading…
Cancel
Save