Skip to content

Commit

Permalink
Merge pull request #19 from WISVCH/achive_links
Browse files Browse the repository at this point in the history
  • Loading branch information
mpsijm authored Sep 2, 2022
2 parents 5340915 + d0730af commit 7212411
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 19 deletions.
10 changes: 6 additions & 4 deletions assets/ananke/css/archive.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
}

.icon {
width: 2.5em;
text-align: center;
vertical-align: middle;
height: 100%;
font-size: larger;
}

.archive-link {
text-align: center;
width: 3em;
}

.archive th {
text-align: left;
color: #000;
}
22 changes: 11 additions & 11 deletions layouts/partials/archive-table.html
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
<tr>
<td><strong>{{ .contest.name }}</strong></td>
<td>{{ .contest.date }}</td>
<td class="link">
<td class="archive-link">
{{if .links.website }}
<a href="{{.links.website}}">
<a href="{{.links.website}}" target="_blank">
<span class="material-symbols-outlined icon" title="Website">
link
</span>
</a>
{{end}}
</td>
<td class="archive-link ">
<td class="archive-link">
{{if .resources.problems}}
<a href="/archive/{{.contest.year}}/{{.contest.type}}/{{.resources.problems}}">
<a href="/archive/{{.contest.year}}/{{.contest.type}}/{{.resources.problems}}" target="_blank">
<span class="material-symbols-outlined icon" title="Problem Set">
description
</span>
</a>
{{end}}
</td>
<td class="link">
<td class="archive-link">
{{if .resources.slides}}
<a href="/archive/{{.contest.year}}/{{.contest.type}}/{{.resources.slides}}">
<a href="/archive/{{.contest.year}}/{{.contest.type}}/{{.resources.slides}}" target="_blank">
<span class="material-symbols-outlined icon" title="Presentation">
co_present
</span>
</a>
{{end}}
</td>
<td class="link">
<td class="archive-link">
{{if .resources.data}}
<a href="/archive/{{.contest.year}}/{{.contest.type}}/{{.resources.data}}">
<span class="material-symbols-outlined icon" title="All Data and Solutions">
Expand All @@ -37,18 +37,18 @@
</a>
{{end}}
</td>
<td class="link">
<td class="archive-link">
{{if .links.result }}
<a href="{{.links.result}}">
<a href="{{.links.result}}" target="_blank">
<span class="material-symbols-outlined icon" title="Scoreboard">
scoreboard
</span>
</a>
{{end}}
</td>
<td class="link">
<td class="archive-link">
{{if .links.photos }}
<a href="{{.links.photos}}">
<a href="{{.links.photos}}" target="_blank">
<span class="material-symbols-outlined icon" title="Photos">
photo_library
</span>
Expand Down
6 changes: 5 additions & 1 deletion layouts/shortcodes/bapc-archive.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<table class="archive helvetica">
<tr><th>Name</th><th>Date</th></tr>
<thead>
<tr><th>Name</th><th>Date</th></tr>
</thead>
<tbody>
{{ range sort $.Site.Data.archive.bapc "contest.year" "desc" }}
{{ partial "archive-table" . }}
{{ end }}
</tbody>
</table>

6 changes: 5 additions & 1 deletion layouts/shortcodes/dapc-archive.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<table class="archive helvetica">
<tr><th>Name</th><th>Date</th></tr>
<thead>
<tr><th>Name</th><th>Date</th></tr>
</thead>
<tbody>
{{ range sort $.Site.Data.archive.dapc "contest.year" "desc" }}
{{ partial "archive-table" . }}
{{ end }}
</tbody>
</table>

6 changes: 5 additions & 1 deletion layouts/shortcodes/fpc-archive.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<table class="archive helvetica">
<tr><th>Name</th><th>Date</th></tr>
<thead>
<tr><th>Name</th><th>Date</th></tr>
</thead>
<tbody>
{{ range sort $.Site.Data.archive.fpc "contest.year" "desc" }}
{{ partial "archive-table" . }}
{{ end }}
</tbody>
</table>

6 changes: 5 additions & 1 deletion layouts/shortcodes/nwerc-archive.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<table class="archive helvetica">
<tr><th>Name</th><th>Date</th></tr>
<thead>
<tr><th>Name</th><th>Date</th></tr>
</thead>
<tbody>
{{ range sort $.Site.Data.archive.nwerc "contest.year" "desc" }}
{{ partial "archive-table" . }}
{{ end }}
</tbody>
</table>

0 comments on commit 7212411

Please sign in to comment.