Skip to content

Commit

Permalink
re-add deleted demo warning
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Nov 29, 2024
1 parent 89eb985 commit 9f5ae29
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ impl Page for DemoPage {
fn render(&self) -> Markup {
let style_url = ClassIconsStyle::url();
html! {
@if self.demo.url.is_empty() {
h3.warning { "This demo has been deleted and is no longer available for download." }
}
h2 { (self.demo.server) " - " (self.demo.red) " vs " (self.demo.blu) }
h3 { (self.demo.name) }
p {
Expand Down
7 changes: 7 additions & 0 deletions style/pages/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ table.players {
width: 40px;
vertical-align: top;
}

& .class {
width: 40px;
}
Expand Down Expand Up @@ -242,4 +243,10 @@ details.chat {
& > div {
padding-top: 45px;
}
}

h3.warning {
background-color: var(--button-critical);
margin: 0 -30px;
padding: 30px;
}

0 comments on commit 9f5ae29

Please sign in to comment.