Common
This commit is contained in:
		@ -22,16 +22,20 @@
 | 
			
		||||
                <tr>
 | 
			
		||||
                    <td class="border-right" data-checkbox>
 | 
			
		||||
                        <div class="form-check text-center"> 
 | 
			
		||||
                            <input type="checkbox" class="form-check-input" data-user-id="{{ container.user.id }}">
 | 
			
		||||
                            <input type="checkbox" class="form-check-input" data-user-id="{{ container.user.id if container.user else '' }}">
 | 
			
		||||
                        </div>
 | 
			
		||||
                    </td>
 | 
			
		||||
                    <td class="text-center">
 | 
			
		||||
                        {{ container.id }}
 | 
			
		||||
                    </td>
 | 
			
		||||
                    <td class="text-center">
 | 
			
		||||
                        <a href="{{ url_for('admin.users_detail', user_id=container.user.id) }}">
 | 
			
		||||
                            {{ container.user.name | truncate(12) }}
 | 
			
		||||
                        </a>
 | 
			
		||||
                        {% if container.user %}
 | 
			
		||||
                            <a href="{{ url_for('admin.users_detail', user_id=container.user.id) }}">
 | 
			
		||||
                                {{ container.user.name | truncate(12) }}
 | 
			
		||||
                            </a>
 | 
			
		||||
                        {% else %}
 | 
			
		||||
                            <span class="text-muted">无关联用户</span>
 | 
			
		||||
                        {% endif %}
 | 
			
		||||
                    </td>
 | 
			
		||||
                    <td class="text-center">
 | 
			
		||||
                        <a href="{{ url_for('admin.challenges_detail', challenge_id=container.challenge.id) }}">
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user