| 
									
										
										
										
											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-11-30 21:15:47 -05:00
										 |  |  |     <link rel="stylesheet" type="text/css" href="{{ static_autoversion("styles/hostGame.css") }}" /> | 
					
						
							|  |  |  |     <script type="application/ecmascript" src="{{ static_autoversion("assets/hostGame.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-12-03 01:55:06 -05:00
										 |  |  |     {% include 'header/oceanHeader.html' %} | 
					
						
							| 
									
										
										
										
											2020-10-25 11:49:12 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-30 21:15:47 -05:00
										 |  |  |     <div id="host-game-wrapper"> | 
					
						
							|  |  |  |         <div id="host-game" class="grass-island {% if rooms %}wider{% endif %}"> | 
					
						
							|  |  |  |             <h1>Host Game</h1> | 
					
						
							| 
									
										
										
										
											2020-12-02 23:05:37 -05:00
										 |  |  |             <p> | 
					
						
							|  |  |  |                 To host a game, you need to upload a .multidata file or a .zip file<br /> | 
					
						
							|  |  |  |                 created by the multiworld generator. | 
					
						
							|  |  |  |             </p> | 
					
						
							| 
									
										
										
										
											2020-11-30 21:15:47 -05:00
										 |  |  |             <div id="host-game-form-wrapper"> | 
					
						
							|  |  |  |                 <form id="host-game-form" method="post" enctype="multipart/form-data"> | 
					
						
							| 
									
										
										
										
											2020-07-18 16:25:07 -04:00
										 |  |  |                     <input id="file-input" type="file" name="file"> | 
					
						
							|  |  |  |                 </form> | 
					
						
							| 
									
										
										
										
											2020-11-30 21:15:47 -05:00
										 |  |  |                 <button id="host-game-button">Upload</button> | 
					
						
							| 
									
										
										
										
											2020-07-18 16:25:07 -04:00
										 |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2020-06-22 20:25:24 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-18 16:25:07 -04:00
										 |  |  |             {% if rooms %} | 
					
						
							| 
									
										
										
										
											2020-11-30 21:15:47 -05:00
										 |  |  |                 <h4>Your Rooms:</h4> | 
					
						
							|  |  |  |                 <table id="host-game-table" class="table"> | 
					
						
							| 
									
										
										
										
											2020-07-21 23:15:19 +02:00
										 |  |  |                     <thead> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th>Seed</th> | 
					
						
							|  |  |  |                             <th>Room</th> | 
					
						
							|  |  |  |                             <th>Players</th> | 
					
						
							| 
									
										
										
										
											2020-11-30 21:15:47 -05:00
										 |  |  |                             <th>Created (UTC)</th> | 
					
						
							|  |  |  |                             <th>Last Activity (UTC)</th> | 
					
						
							| 
									
										
										
										
											2020-07-21 23:15:19 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |                         </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-11-30 21:15:47 -05:00
										 |  |  |                             <td><a href="{{ url_for("viewSeed", seed=room.seed.id) }}">{{ room.seed.id|suuid }}</a> | 
					
						
							| 
									
										
										
										
											2020-07-27 05:04:49 +02:00
										 |  |  |                             </td> | 
					
						
							| 
									
										
										
										
											2020-11-30 21:15:47 -05:00
										 |  |  |                             <td><a href="{{ url_for("hostRoom", 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
										 |  |  |             {% endif %} | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2020-10-25 11:49:12 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-30 21:15:47 -05:00
										 |  |  |     {% include 'islandFooter.html' %} | 
					
						
							| 
									
										
										
										
											2020-07-18 16:25:07 -04:00
										 |  |  | {% endblock %} |