mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-04 02:34:13 +02:00
chat
This commit is contained in:
parent
1648eeffab
commit
82a82d2aff
7 changed files with 152 additions and 43 deletions
|
|
@ -89,6 +89,28 @@ impl Page for DemoPage {
|
|||
}
|
||||
}
|
||||
}
|
||||
p.demo-info {
|
||||
span { (self.demo.map) }
|
||||
span.time { (self.demo.duration()) }
|
||||
}
|
||||
p.demo-download {
|
||||
a.button.button-primary href = (self.demo.url) download = (self.demo.name) { "Download" }
|
||||
a.button href = (self.demo.viewer_url()) { "View" }
|
||||
details.chat {
|
||||
summary.button.button-tertiary { "Toggle Chat" }
|
||||
div {
|
||||
table.chat {
|
||||
@for chat in &self.demo.chat {
|
||||
tr {
|
||||
td.user { (chat.from) }
|
||||
td.message { (chat.text) }
|
||||
td.duration { (chat.time()) }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue