User management
This commit is contained in:
		| @@ -0,0 +1,27 @@ | ||||
| table.table.table-striped.table-hover | ||||
|   thead | ||||
|     tr | ||||
|       th scope="col" | ||||
|         | Id | ||||
|       th scope="col" | ||||
|         | Name | ||||
|       th scope="col" | ||||
|         | Admin? | ||||
|       th scope="col" | ||||
|         | # contests | ||||
|   tbody | ||||
|     - @users.each do |user| | ||||
|       tr scope="row" | ||||
|         td | ||||
|           = user.id | ||||
|         td | ||||
|           = user.username | ||||
|         td | ||||
|           = user.admin ? "Yes" : "No" | ||||
|         td | ||||
|           = user.contests.length | ||||
|          | ||||
| .row | ||||
|   .col | ||||
|     a.btn.btn-primary href=new_user_path | ||||
|       | New user | ||||
		Reference in New Issue
	
	Block a user