| 
									
										
										
										
											2020-12-05 14:59:29 -05:00
										 |  |  | {% extends 'tablepage.html' %} | 
					
						
							| 
									
										
										
										
											2020-12-04 18:22:12 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | {% block head %} | 
					
						
							|  |  |  |     {{ super() }} | 
					
						
							| 
									
										
										
										
											2021-12-22 20:15:56 -05:00
										 |  |  |     <title>User Content</title> | 
					
						
							| 
									
										
										
										
											2021-05-13 00:41:49 +02:00
										 |  |  |     <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename="styles/userContent.css") }}" /> | 
					
						
							| 
									
										
										
										
											2022-04-03 20:16:15 -04:00
										 |  |  |     <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename="styles/markdown.css") }}" /> | 
					
						
							| 
									
										
										
										
											2021-05-13 00:41:49 +02:00
										 |  |  |     <script type="application/ecmascript" src="{{ url_for('static', filename="assets/userContent.js") }}"></script> | 
					
						
							| 
									
										
										
										
											2020-12-04 18:22:12 -05:00
										 |  |  | {% endblock %} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block body %} | 
					
						
							|  |  |  |     {% include 'header/oceanHeader.html' %} | 
					
						
							| 
									
										
										
										
											2022-04-03 20:16:15 -04:00
										 |  |  |     <div id="user-content-wrapper" class="markdown"> | 
					
						
							| 
									
										
										
										
											2020-12-04 18:22:12 -05:00
										 |  |  |         <div id="user-content" class="grass-island"> | 
					
						
							|  |  |  |             <h1>User Content</h1> | 
					
						
							|  |  |  |             Below is a list of all the content you have generated on this site. Rooms and seeds are listed separately. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             <h2>Your Rooms</h2> | 
					
						
							|  |  |  |             {% if rooms %} | 
					
						
							| 
									
										
										
										
											2020-12-05 14:59:29 -05:00
										 |  |  |                 <table id="rooms-table" class="table"> | 
					
						
							| 
									
										
										
										
											2020-12-04 18:22:12 -05:00
										 |  |  |                     <thead> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th>Seed</th> | 
					
						
							|  |  |  |                             <th>Room</th> | 
					
						
							|  |  |  |                             <th class="center">Players</th> | 
					
						
							|  |  |  |                             <th>Created (UTC)</th> | 
					
						
							|  |  |  |                             <th>Last Activity (UTC)</th> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                     </thead> | 
					
						
							|  |  |  |                     <tbody> | 
					
						
							|  |  |  |                         {% for room in rooms %} | 
					
						
							|  |  |  |                             <tr> | 
					
						
							| 
									
										
										
										
											2021-11-25 20:48:58 +01: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> | 
					
						
							| 
									
										
										
										
											2022-01-08 17:11:39 +01:00
										 |  |  |                                 <td>{{ room.seed.slots|length }}</td> | 
					
						
							| 
									
										
										
										
											2020-12-04 18:22:12 -05:00
										 |  |  |                                 <td>{{ room.creation_time.strftime("%Y-%m-%d %H:%M") }}</td> | 
					
						
							|  |  |  |                                 <td>{{ room.last_activity.strftime("%Y-%m-%d %H:%M") }}</td> | 
					
						
							|  |  |  |                             </tr> | 
					
						
							|  |  |  |                         {% endfor %} | 
					
						
							|  |  |  |                     </tbody> | 
					
						
							|  |  |  |                 </table> | 
					
						
							|  |  |  |             {% else %} | 
					
						
							|  |  |  |                 You have not created any rooms yet! | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |             <h2>Your Seeds</h2> | 
					
						
							|  |  |  |             {% if seeds %} | 
					
						
							| 
									
										
										
										
											2020-12-05 14:59:29 -05:00
										 |  |  |                 <table id="seeds-table" class="table"> | 
					
						
							| 
									
										
										
										
											2020-12-04 18:22:12 -05:00
										 |  |  |                     <thead> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th>Seed</th> | 
					
						
							|  |  |  |                             <th class="center">Players</th> | 
					
						
							|  |  |  |                             <th>Created (UTC)</th> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                     </thead> | 
					
						
							|  |  |  |                     <tbody> | 
					
						
							|  |  |  |                         {% for seed in seeds %} | 
					
						
							|  |  |  |                             <tr> | 
					
						
							| 
									
										
										
										
											2021-11-25 20:48:58 +01:00
										 |  |  |                                 <td><a href="{{ url_for("view_seed", seed=seed.id) }}">{{ seed.id|suuid }}</a></td> | 
					
						
							| 
									
										
										
										
											2022-01-08 17:11:39 +01:00
										 |  |  |                                 <td>{% if seed.multidata %}{{ seed.slots|length }}{% else %}1{% endif %} | 
					
						
							| 
									
										
										
										
											2020-12-04 18:22:12 -05:00
										 |  |  |                                 </td> | 
					
						
							|  |  |  |                                 <td>{{ seed.creation_time.strftime("%Y-%m-%d %H:%M") }}</td> | 
					
						
							|  |  |  |                             </tr> | 
					
						
							|  |  |  |                         {% endfor %} | 
					
						
							|  |  |  |                     </tbody> | 
					
						
							|  |  |  |                 </table> | 
					
						
							|  |  |  |             {% else %} | 
					
						
							|  |  |  |                 You have no generated any seeds yet! | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | {% endblock %} |