show applicant count to managers and staff on dashboard
This commit is contained in:
		
							parent
							
								
									61fa1d399b
								
							
						
					
					
						commit
						6e1a2cb2ef
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
					@ -137,6 +137,9 @@
 | 
				
			||||||
                        <dt>
 | 
					                        <dt>
 | 
				
			||||||
                            <a href="{% url team_detail membership.team.slug %}">{{ membership.team.name }}</a>
 | 
					                            <a href="{% url team_detail membership.team.slug %}">{{ membership.team.name }}</a>
 | 
				
			||||||
                            <span class="label">{{ membership.get_state_display }}</span>
 | 
					                            <span class="label">{{ membership.get_state_display }}</span>
 | 
				
			||||||
 | 
					                            {% if membership.state == "manager" or user.is_staff %}
 | 
				
			||||||
 | 
					                                {% if membership.team.applicants %}{{ membership.team.applicants.count }} applicant{{ membership.team.applicants.count|pluralize }}{% endif %}
 | 
				
			||||||
 | 
					                            {% endif %}
 | 
				
			||||||
                        </dt>
 | 
					                        </dt>
 | 
				
			||||||
                    {% endfor %}
 | 
					                    {% endfor %}
 | 
				
			||||||
                </dl>
 | 
					                </dl>
 | 
				
			||||||
| 
						 | 
					@ -146,7 +149,10 @@
 | 
				
			||||||
                <h4>Available Teams</h4>
 | 
					                <h4>Available Teams</h4>
 | 
				
			||||||
                <dl>
 | 
					                <dl>
 | 
				
			||||||
                    {% for team in available_teams %}
 | 
					                    {% for team in available_teams %}
 | 
				
			||||||
                        <dt><a href="{% url team_detail team.slug %}">{{ team }}</a> <span class="label">{{ team.get_access_display }}</span></dt>
 | 
					                        <dt>
 | 
				
			||||||
 | 
					                            <a href="{% url team_detail team.slug %}">{{ team }}</a>
 | 
				
			||||||
 | 
					                            <span class="label">{{ team.get_access_display }}</span>
 | 
				
			||||||
 | 
					                        </dt>
 | 
				
			||||||
                        {% if team.description %}<dd>{{ team.description }}</dd>{% endif %}
 | 
					                        {% if team.description %}<dd>{{ team.description }}</dd>{% endif %}
 | 
				
			||||||
                    {% endfor %}
 | 
					                    {% endfor %}
 | 
				
			||||||
                </dl>
 | 
					                </dl>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue