Enha: state to hold room_id instead of whole room
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{{define "room"}}
|
||||
<div id="hello-user">
|
||||
<p>Hello {{.Username}}</p>
|
||||
<p>Hello {{.State.Username}}</p>
|
||||
</div>
|
||||
<hr />
|
||||
<div class="flex justify-center">
|
||||
@ -11,6 +11,6 @@
|
||||
</div>
|
||||
<hr />
|
||||
<div id="cardtable">
|
||||
{{template "cardtable" .}}
|
||||
{{template "cardtable" .Room}}
|
||||
</div>
|
||||
{{end}}
|
||||
|
Reference in New Issue
Block a user