mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 08:22:10 +01:00 
			
		
		
		
	Display pools table
This commit is contained in:
		@@ -24,6 +24,15 @@
 | 
			
		||||
                        {% trans "No solution was uploaded yet." %}
 | 
			
		||||
                    {% endfor %}
 | 
			
		||||
                </dd>
 | 
			
		||||
 | 
			
		||||
                {% if participation.pools.all %}
 | 
			
		||||
                    <dt class="col-sm-2">{% trans "Pools:" %}</dt>
 | 
			
		||||
                    <dd class="col-sm-10">
 | 
			
		||||
                        {% for pool in participation.pools.all %}
 | 
			
		||||
                            <a href="{{ pool.get_absolute_url }}" data-turbolinks="false">{{ pool }}{% if not forloop.last %}, {% endif %}</a>
 | 
			
		||||
                        {% endfor %}
 | 
			
		||||
                    </dd>
 | 
			
		||||
                {% endif %}
 | 
			
		||||
            </dl>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="card-footer text-center">
 | 
			
		||||
 
 | 
			
		||||
@@ -60,4 +60,15 @@
 | 
			
		||||
    <div id="teams_table">
 | 
			
		||||
        {% render_table teams %}
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <hr>
 | 
			
		||||
 | 
			
		||||
    <h3>{% trans "Pools" %}</h3>
 | 
			
		||||
    <div id="pools_table">
 | 
			
		||||
        {% render_table pools %}
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    {% if user.registration.is_admin %}
 | 
			
		||||
        <a class="btn btn-block btn-success" href="#">{% trans "Add new pool" %}</a>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user