Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add links to merged scoreboards #59

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion assets/ananke/css/archive.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
}

.archive-link {
padding: 0 0.75rem;
text-align: center;
width: 3em;
width: 0;
white-space: nowrap;
}

.archive th {
Expand Down
2 changes: 2 additions & 0 deletions data/archive/dapc/2021.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ links:
photos: https://ch.tudelft.nl/media/photos/?type_0=gallery&album_gallery_id_0=70
website:
result: /archive/2021/dapc/scoreboard.html
scoreboards:
Merged: /archive/2021/dapc/full-scoreboard.html
3 changes: 3 additions & 0 deletions data/archive/fpc/2024.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ links:
photos: #https://ch.tudelft.nl/media/photos/?type_0=gallery&album_gallery_id_0=235
website:
result: /archive/2024/fpc/scoreboard/
scoreboards:
Merged: /archive/2024/fpc/merged-scoreboard/
Online: /archive/2024/fpc/online-scoreboard/
31 changes: 23 additions & 8 deletions layouts/partials/archive-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,31 @@
{{end}}
</td>
<td class="archive-link">
{{if .links.result }}
<a href="{{.links.result}}" target="_blank">
<span class="material-symbols-outlined icon" title="Scoreboard">
scoreboard
</span>
</a>
{{end}}
<div class="flex">
{{if .links.result}}
<a href="{{.links.result}}" target="_blank">
<span class="material-symbols-outlined icon" title="Scoreboard">
scoreboard
</span>
</a>
{{end}}
{{if .links.scoreboards}}
<div onmouseleave="this.children[1].style.display='none'" class="relative">
<span class="material-symbols-outlined icon" title="More" style="cursor:pointer"
onmouseenter="this.nextElementSibling.style.display='block'">
arrow_drop_down
</span>
<div class="absolute bg-white pa2 ba br3" style="display:none;top:1.5rem;right:0">
{{range $k, $v := .links.scoreboards}}
<a href="{{$v}}" target="_blank">{{$k}}</a><br />
{{end}}
</div>
</div>
{{end}}
</div>
</td>
<td class="archive-link">
{{if .links.photos }}
{{if .links.photos}}
<a href="{{.links.photos}}" target="_blank">
<span class="material-symbols-outlined icon" title="Photos">
photo_library
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file not shown.
5 changes: 5 additions & 0 deletions static/archive/2024/fpc/online-scoreboard/flags/4x3/de.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions static/archive/2024/fpc/online-scoreboard/flags/4x3/nl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions static/archive/2024/fpc/online-scoreboard/flags/4x3/pl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3,294 changes: 3,294 additions & 0 deletions static/archive/2024/fpc/online-scoreboard/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading
Loading