| 
									
										
										
										
											2020-07-21 23:15:19 +02:00
										 |  |  | {% extends 'tablepage.html' %} | 
					
						
							| 
									
										
										
										
											2020-07-18 16:25:07 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-20 20:03:06 +02:00
										 |  |  | {% block head %} | 
					
						
							| 
									
										
										
										
											2020-07-21 23:15:19 +02:00
										 |  |  |     {{ super() }} | 
					
						
							| 
									
										
										
										
											2020-06-20 20:03:06 +02:00
										 |  |  |     <title>Upload Multidata</title> | 
					
						
							| 
									
										
										
										
											2020-08-02 19:10:42 -04:00
										 |  |  |     <link rel="stylesheet" type="text/css" href="{{ static_autoversion("styles/uploads.css") }}" /> | 
					
						
							|  |  |  |     <script type="application/ecmascript" src="{{ static_autoversion("assets/uploads.js") }}"></script> | 
					
						
							| 
									
										
										
										
											2020-06-20 20:03:06 +02:00
										 |  |  | {% endblock %} | 
					
						
							| 
									
										
										
										
											2020-07-18 16:25:07 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-20 20:03:06 +02:00
										 |  |  | {% block body %} | 
					
						
							| 
									
										
										
										
											2020-07-18 16:25:07 -04:00
										 |  |  |     <div id="uploads-wrapper"> | 
					
						
							|  |  |  |         <div id="uploads" class="main-content"> | 
					
						
							|  |  |  |             <h3>Upload Multidata</h3> | 
					
						
							|  |  |  |             <p>To host a game, you need up upload a .multidata file or a .zip file created by the | 
					
						
							|  |  |  |                 multiworld generator.</p> | 
					
						
							|  |  |  |             <div id="uploads-form-wrapper"> | 
					
						
							|  |  |  |                 <form id="upload-form" method="post" enctype="multipart/form-data"> | 
					
						
							|  |  |  |                     <input id="file-input" type="file" name="file"> | 
					
						
							|  |  |  |                 </form> | 
					
						
							|  |  |  |                 <button id="upload-button">Upload</button> | 
					
						
							|  |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2020-06-22 20:25:24 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-18 16:25:07 -04:00
										 |  |  |             {% if rooms %} | 
					
						
							|  |  |  |                 <p>Your Rooms:</p> | 
					
						
							| 
									
										
										
										
											2020-07-23 03:21:26 -04:00
										 |  |  |                 <table id="uploads-table" class="table"> | 
					
						
							| 
									
										
										
										
											2020-07-21 23:15:19 +02:00
										 |  |  |                     <thead> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th>Seed</th> | 
					
						
							|  |  |  |                             <th>Room</th> | 
					
						
							|  |  |  |                             <th>Players</th> | 
					
						
							|  |  |  |                             <th>Created</th> | 
					
						
							|  |  |  |                             <th>Last Activity</th> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                     </thead> | 
					
						
							|  |  |  |                     <tbody> | 
					
						
							| 
									
										
										
										
											2020-07-18 16:25:07 -04:00
										 |  |  |                     {% for room in rooms %} | 
					
						
							| 
									
										
										
										
											2020-07-21 23:15:19 +02:00
										 |  |  |                         <tr> | 
					
						
							| 
									
										
										
										
											2020-07-27 05:04:49 +02:00
										 |  |  |                             <td><a href="{{ url_for("view_seed", seed=room.seed.id) }}">{{ room.seed.id|suuid }}</a> | 
					
						
							|  |  |  |                             </td> | 
					
						
							|  |  |  |                             <td><a href="{{ url_for("host_room", room=room.id) }}">{{ room.id|suuid }}</a></td> | 
					
						
							| 
									
										
										
										
											2020-07-21 23:15:19 +02:00
										 |  |  |                             <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> | 
					
						
							| 
									
										
										
										
											2020-07-18 16:25:07 -04:00
										 |  |  |                     {% endfor %} | 
					
						
							| 
									
										
										
										
											2020-07-21 23:15:19 +02:00
										 |  |  |                     </tbody> | 
					
						
							|  |  |  |                 </table> | 
					
						
							| 
									
										
										
										
											2020-07-18 16:25:07 -04:00
										 |  |  |             {% else %} | 
					
						
							|  |  |  |                 <p>No rooms owned by you were found. Upload a file to get started.</p> | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | {% endblock %} |