mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 08:22:10 +01:00 
			
		
		
		
	Display the team ranking
This commit is contained in:
		@@ -10,7 +10,7 @@
 | 
			
		||||
        <div class="card-body">
 | 
			
		||||
            <dl class="row">
 | 
			
		||||
                <dt class="col-sm-3">{% trans "Tournament:" %}</dt>
 | 
			
		||||
                <dd class="col-sm-9">{{ pool.tournament }}</dd>
 | 
			
		||||
                <dd class="col-sm-9"><a href="{{ pool.tournament.get_absolute_url }}">{{ pool.tournament }}</a></dd>
 | 
			
		||||
 | 
			
		||||
                <dt class="col-sm-3">{% trans "Round:" %}</dt>
 | 
			
		||||
                <dd class="col-sm-9">{{ pool.get_round_display }}</dd>
 | 
			
		||||
@@ -34,10 +34,23 @@
 | 
			
		||||
                <dt class="col-sm-3">{% trans "Defended solutions:" %}</dt>
 | 
			
		||||
                <dd class="col-sm-9">
 | 
			
		||||
                    {% for passage in pool.passages.all %}
 | 
			
		||||
                        <a href="{{ passage.defended_solution.get_absolute_url }}" data-turbolinks="false">{{ passage.defended_solution }}{% if not forloop.last %}, {% endif %}</a>
 | 
			
		||||
                        <a href="{{ passage.defended_solution.file.url }}" data-turbolinks="false">{{ passage.defended_solution }}{% if not forloop.last %}, {% endif %}</a>
 | 
			
		||||
                    {% endfor %}
 | 
			
		||||
                </dd>
 | 
			
		||||
            </dl>
 | 
			
		||||
 | 
			
		||||
            <div class="card bg-light shadow">
 | 
			
		||||
                <div class="card-header text-center">
 | 
			
		||||
                    <h5>{% trans "Ranking" %}</h5>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="card-body">
 | 
			
		||||
                    <ul>
 | 
			
		||||
                        {% for participation, note in notes %}
 | 
			
		||||
                            <li><strong>{{ participation.team }} :</strong> {{ note }}</li>
 | 
			
		||||
                        {% endfor %}
 | 
			
		||||
                    </ul>
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        {% if user.registration.is_admin %}
 | 
			
		||||
            <div class="card-footer text-center">
 | 
			
		||||
 
 | 
			
		||||
@@ -72,6 +72,21 @@
 | 
			
		||||
        <button class="btn btn-block btn-success" data-toggle="modal" data-target="#addPoolModal">{% trans "Add new pool" %}</button>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
 | 
			
		||||
    <hr>
 | 
			
		||||
 | 
			
		||||
    <div class="card bg-light shadow">
 | 
			
		||||
        <div class="card-header text-center">
 | 
			
		||||
            <h5>{% trans "Ranking" %}</h5>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="card-body">
 | 
			
		||||
            <ul>
 | 
			
		||||
                {% for participation, note in notes %}
 | 
			
		||||
                    <li><strong>{{ participation.team }} :</strong> {{ note }}</li>
 | 
			
		||||
                {% endfor %}
 | 
			
		||||
            </ul>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    {% trans "Add pool" as modal_title %}
 | 
			
		||||
    {% trans "Add" as modal_button %}
 | 
			
		||||
    {% url "participation:pool_create" as modal_action %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user