Enha: shorter sse patience; style cleaning
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| {{define "error"}} | ||||
| <a href="/"> | ||||
|     <div id=errorbox class="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4" role="alert"> | ||||
|     <div id=errorbox class="bg-orange-100 border-l-4 border-black text-black p-4" role="alert"> | ||||
|       <p class="font-bold">An error from server</p> | ||||
|       <p>{{.}}</p> | ||||
|       <p>Click this banner to return to main page.</p> | ||||
|   | ||||
							
								
								
									
										11
									
								
								components/journal.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								components/journal.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| {{define "journal"}} | ||||
| <div id="systembox" class="overflow-y-auto max-h-96 border-2 border-gray-300 p-4 rounded-lg space-y-2"> | ||||
|     bot journal: <br> | ||||
|     <ul> | ||||
|     {{range .LogJournal}}  | ||||
|     <li>{{.Username}}: {{.Entry}}</li> | ||||
|     {{end}} | ||||
|     </ul> | ||||
| </div> | ||||
| {{end}} | ||||
|  | ||||
| @@ -53,22 +53,16 @@ | ||||
|   </div> | ||||
|   <hr/> | ||||
|   <div class="grid grid-cols-1 md:grid-cols-5 md:gap-4"> | ||||
|     <div hx-get="/actionhistory" hx-trigger="sse:backlog_{{.Room.ID}}" class="md:col-span-1"> | ||||
|     <div class="md:col-span-1"> | ||||
|       {{template "actionhistory" .Room.ActionHistory}} | ||||
|     </div> | ||||
|     <div id="cardtable" class="md:col-span-3"> | ||||
|       {{template "cardtable" .Room}} | ||||
|     </div> | ||||
|     <div class="hidden md:block md:col-span-1"></div> <!-- Spacer --> | ||||
|   </div> | ||||
|   <div id="systembox" class="overflow-y-auto max-h-96 border-2 border-gray-300 p-4 rounded-lg space-y-2"> | ||||
|     bot thought: <br> | ||||
|     <ul> | ||||
|     {{range .Room.LogJournal}}  | ||||
|     <li>{{.Username}}: {{.Entry}}</li> | ||||
|     {{end}} | ||||
|     </ul> | ||||
|   </div> | ||||
|     <div class="hidden md:block md:col-span-1"> | ||||
|       {{template "journal" .Room}} | ||||
|     </div> <!-- Spacer --> | ||||
|   </div>  | ||||
|   <div> | ||||
|     {{if .Room.IsRunning}} | ||||
|     {{if and (eq .State.Role "guesser") (eq .State.Team .Room.TeamTurn)}} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder