Restore columns to /uploads, fix styling for table, re-enable sorting
This commit is contained in:
		
							parent
							
								
									929239004d
								
							
						
					
					
						commit
						f2afd1eef9
					
				|  | @ -31,14 +31,18 @@ | ||||||
| 
 | 
 | ||||||
| #host-game-table{ | #host-game-table{ | ||||||
|     margin-right: auto; |     margin-right: auto; | ||||||
|     text-align: center |     text-align: left; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | #host-game-table th{ | ||||||
|  |     padding: 0; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| #host-game-table td{ | #host-game-table td{ | ||||||
|     padding-left: 20px; |     padding: 6px 20px 0 0; | ||||||
|     padding-right: 20px; |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| #host-game-table.dataTable{ | #host-game-table.dataTable{ | ||||||
|     width: unset; |     width: unset; | ||||||
|  | 
 | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -25,12 +25,16 @@ | ||||||
|             </div> |             </div> | ||||||
| 
 | 
 | ||||||
|             {% if rooms %} |             {% if rooms %} | ||||||
|                 <h4>Your Rooms:</h4> |                 <h4>Your Games:</h4> | ||||||
|                 <table id="host-game-table"> |                 <table id="host-game-table" class="table"> | ||||||
|                     <thead> |                     <thead> | ||||||
|                         <tr> |                         <tr> | ||||||
|                             <th>Seed</th> |                             <th>Seed</th> | ||||||
|                             <th>Room</th> |                             <th>Room</th> | ||||||
|  |                             <th>Players</th> | ||||||
|  |                             <th>Created (UTC)</th> | ||||||
|  |                             <th>Last Activity (UTC)</th> | ||||||
|  | 
 | ||||||
|                         </tr> |                         </tr> | ||||||
|                     </thead> |                     </thead> | ||||||
|                     <tbody> |                     <tbody> | ||||||
|  | @ -39,6 +43,10 @@ | ||||||
|                             <td><a href="{{ url_for("viewSeed", seed=room.seed.id) }}">{{ room.seed.id|suuid }}</a> |                             <td><a href="{{ url_for("viewSeed", seed=room.seed.id) }}">{{ room.seed.id|suuid }}</a> | ||||||
|                             </td> |                             </td> | ||||||
|                             <td><a href="{{ url_for("hostRoom", room=room.id) }}">{{ room.id|suuid }}</a></td> |                             <td><a href="{{ url_for("hostRoom", room=room.id) }}">{{ room.id|suuid }}</a></td> | ||||||
|  |                             <td>{{ room.seed.multidata.names[0]|length }} Total: | ||||||
|  |                                 {{ room.seed.multidata.names[0]|join(", ")|truncate(256, False, " ...") }}</td> | ||||||
|  |                             <td>{{ room.creation_time.strftime("%Y-%m-%d %H:%M") }}</td> | ||||||
|  |                             <td>{{ room.last_activity.strftime("%Y-%m-%d %H:%M") }}</td> | ||||||
|                         </tr> |                         </tr> | ||||||
|                     {% endfor %} |                     {% endfor %} | ||||||
|                     </tbody> |                     </tbody> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue