Skip to content

Commit

Permalink
layout improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
c7h committed Aug 16, 2014
1 parent c673509 commit ff4e460
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 27,7 @@
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="/">Home</a></li>
<li><a href="/ranking">Ranking</a></li>
<li><a href="/ranking/10">Ranking</a></li>
</ul>

</div>
Expand Down
8 changes: 4 additions & 4 deletions templates/main.html
Original file line number Diff line number Diff line change
@@ -1,7 1,7 @@

{% extends "base.html" %}

{% block title %} {{ players[0].id }} vs. {{ players[1].id }} {{ super() }}{% endblock %}
{% block title %} {{ players[0].name }} vs. {{ players[1].name }} {{ super() }}{% endblock %}


{% block content %}
Expand All @@ -15,8 15,8 @@
<img alt="Player1" src="/static/face/{{ players[0].imgurl }}" />
<div class="caption">
<h3>
{{ players[0].name }}
<span class="badge">{{ players[1].score }}</span>
<a href="/player/{{ players[0].id }}">{{ players[0].name }}</a>
<span class="badge">{{ players[0].score }}</span>
</h3>
<p>
<form method="POST">
Expand All @@ -33,7 33,7 @@ <h3>
<img alt="Player2" src="/static/face/{{ players[1].imgurl }}" />
<div class="caption">
<h3>
{{ players[1].name }}
<a href="/player/{{ players[1].id }}">{{ players[1].name }}</a>
<span class="badge">{{ players[1].score }}</span>
</h3>
<p>
Expand Down
6 changes: 3 additions & 3 deletions templates/overview.html
Original file line number Diff line number Diff line change
@@ -1,20 1,20 @@

{% extends "base.html" %}

{% block title %} {{ player.id }} {{ super() }}{% endblock %}
{% block title %} {{ player.name }} {{ super() }}{% endblock %}

{% block content %}

<div class="container">
<div class="row clearfix">
<div class="col-md-12 column">
<h3>
{{ player.id }}
{{ player.name }}
</h3>
<div class="row clearfix">
<div class="col-md-8 column">
<div class="thumbnail">
<img class="img-rounded" alt="{{ player.id }}" src="{{ player.imgurl }}" />
<img class="img-rounded" alt="{{ player.name }}" src="/static/face/{{ player.imgurl }}" />
</div>
</div>
<div class="col-md-4 column">
Expand Down
4 changes: 2 additions & 2 deletions templates/ranking.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 37,7 @@ <h3 class="text-center text-muted">
</tr>
</thead>
<tbody>
{% for player in players %}
{% for player in players|reverse %}
<tr>
<td>
{{ loop.index }}
Expand All @@ -46,7 46,7 @@ <h3 class="text-center text-muted">
{{ player.score }}
</td>
<td>
<a href="/player/{{ player.name }}">{{ player.name }}</a>
<a href="/player/{{ player.id }}">{{ player.name }}</a>
</td>
<td>
{{ player.matches }}
Expand Down

0 comments on commit ff4e460

Please sign in to comment.