dashboard: Update

This commit is contained in:
nemunaire 2022-06-08 03:22:29 +02:00
parent 9ea415b857
commit 116c061715
2 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ func declareStaticRoutes(router *gin.RouterGroup, baseURL string) {
if forwarder != nil {
fwd_request(c.Writer, c.Request, *forwarder)
} else {
http.ServeFile(c.Writer, c.Request, path.Join(fic.FilesDir, strings.TrimPrefix(c.Request.URL.Path, path.Join(baseURL, "files"))))
http.ServeFile(c.Writer, c.Request, path.Join(fic.FilesDir, strings.TrimPrefix(c.Request.URL.Path, "/"+path.Join(baseURL, "files"))))
}
})

View File

@ -537,7 +537,7 @@
<div class="carousel-caption d-flex justify-content-between p-1" style="height: inherit">
<div class="align-self-center text-center" ng-repeat="partner in challenge.partners">
<a ng-href="{{ partner.href }}" style="max-height: 100%">
<img src="{{ partner.img }}" alt="{{ partner.alt }}" style="max-width:100%; max-height: 100%">
<img src="{{ partner.img.replace('$FILES$', '/files') }}" alt="{{ partner.alt }}" style="max-width:100%; max-height: 100%">
</a>
</div>
</div>
@ -558,7 +558,7 @@
<div class="carousel-item">
<div class="carousel-caption text-indent" style="padding: 0 10px; display: table; line-height: 1.3">
<p class="text-justify text-bold align-middle" style="display: table-cell; font-size: 111%">
Les {{ teams | objectLength }} équipes doivent, en 4 heures, retracer les attaques à la
Les {{ teams | objectLength }} équipes doivent, en 1 journée, retracer les attaques à la
recherche des données confidentielles exfiltrées.
</p>
</div>
@ -578,7 +578,7 @@
<div class="carousel-caption" style="padding: 5px; display: table">
<p class="text-bold align-middle" style="font-size: 111%; display: table-cell; width: 70%" ng-bind="challenge.subtitle"></p>
<div class="align-middle" style="display: table-cell; width: 30%">
<img src="img/dnred.png" alt="DRNED" style="max-width:100%; max-height: 80px">
<img src="files/partner/dnred.png" alt="DRNED" style="max-width:100%; max-height: 80px">
</div>
</div>
</div>