mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
fix demo title
This commit is contained in:
parent
667f5eae04
commit
d595089c7c
1 changed files with 7 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ pub struct DemoPage {
|
|||
|
||||
impl Page for DemoPage {
|
||||
fn title(&self) -> Cow<'static, str> {
|
||||
format!("{} - demos.tf", self.demo.name).into()
|
||||
format!("{} - demos.tf", self.demo.server).into()
|
||||
}
|
||||
|
||||
fn render(&self) -> Markup {
|
||||
|
|
@ -55,7 +55,9 @@ impl Page for DemoPage {
|
|||
tr {
|
||||
td.team.red {}
|
||||
@if let Some(player) = player_pair.as_ref().left() {
|
||||
td.name.red { (player.name) }
|
||||
td.name.red {
|
||||
a href = (player.steam_id.profile_link()) { (player.name) }
|
||||
}
|
||||
td.stat.red { (player.kills.unwrap_or_default()) }
|
||||
td.stat.red { (player.assists.unwrap_or_default()) }
|
||||
td.stat.red { (player.deaths.unwrap_or_default()) }
|
||||
|
|
@ -72,7 +74,9 @@ impl Page for DemoPage {
|
|||
td.stat.blue { (player.deaths.unwrap_or_default()) }
|
||||
td.stat.blue { (player.assists.unwrap_or_default()) }
|
||||
td.stat.blue { (player.kills.unwrap_or_default()) }
|
||||
td.name.blue { (player.name) }
|
||||
td.name.blue {
|
||||
a href = (player.steam_id.profile_link()) { (player.name) }
|
||||
}
|
||||
} @else {
|
||||
td.class {}
|
||||
td.stat.blue {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue