Skip to content
Snippets Groups Projects
Verified Commit 290960d3 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

add "external link" icons

parent 7f87707e
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,7 @@ export def generate-page [ ...@@ -36,6 +36,7 @@ export def generate-page [
' <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/contrib/auto-render.min.js" integrity="sha384-hCXGrW6PitJEwbkoStFjeJxv+fSOOQKOPbJxSfM6G5sWZjAyWhXiTIIAmQqnlLlh" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>' ' <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/contrib/auto-render.min.js" integrity="sha384-hCXGrW6PitJEwbkoStFjeJxv+fSOOQKOPbJxSfM6G5sWZjAyWhXiTIIAmQqnlLlh" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>'
' <script src="../katex.js"></script>' ' <script src="../katex.js"></script>'
' <link rel="stylesheet" href="../style.css" type="text/css" />' ' <link rel="stylesheet" href="../style.css" type="text/css" />'
' <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">'
' </head>' ' </head>'
' <body>' ' <body>'
' <div class="header">' ' <div class="header">'
...@@ -49,7 +50,7 @@ export def generate-page [ ...@@ -49,7 +50,7 @@ export def generate-page [
' <p>' ' <p>'
$" ($figure.title)" $" ($figure.title)"
' </p>' ' </p>'
$" <a href=\"($img)\" target=\"_blank\"><img src=\"($img)\" width=80%></a>" $" <a href=\"($img)\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"external-link\"><img src=\"($img)\" width=80%><i class=\"fas fa-external-link-alt\"></i></a>"
'' ''
' <h3>CPU</h3>' ' <h3>CPU</h3>'
' <table>' ' <table>'
...@@ -134,7 +135,7 @@ export def generate-page [ ...@@ -134,7 +135,7 @@ export def generate-page [
' <tbody>' ' <tbody>'
...( ...(
$figure.run $figure.run
| update git { $"<a href=\"https://gitlab.isae-supaero.fr/dragoon/komodo/-/commit/($in)\"><code>($in)</code></a>" } | update git { $"<a href=\"https://gitlab.isae-supaero.fr/dragoon/komodo/-/commit/($in)\" class=\"external-link\"><code>($in)</code><i class=\"fas fa-external-link-alt\"></i></a>" }
| each { | each {
values | each { $"<td><code>($in)</code></td>" } | str join "" | $"<tr>($in)</tr>" values | each { $"<td><code>($in)</code></td>" } | str join "" | $"<tr>($in)</tr>"
} }
......
...@@ -8,12 +8,13 @@ ...@@ -8,12 +8,13 @@
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/contrib/auto-render.min.js" integrity="sha384-hCXGrW6PitJEwbkoStFjeJxv+fSOOQKOPbJxSfM6G5sWZjAyWhXiTIIAmQqnlLlh" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script> <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/contrib/auto-render.min.js" integrity="sha384-hCXGrW6PitJEwbkoStFjeJxv+fSOOQKOPbJxSfM6G5sWZjAyWhXiTIIAmQqnlLlh" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
<script src="katex.js"></script> <script src="katex.js"></script>
<link rel="stylesheet" href="style.css" type="text/css" /> <link rel="stylesheet" href="style.css" type="text/css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head> </head>
<body> <body>
<div class="header"> <div class="header">
<a class="logo">Komodo: Benchmark Results</a> <a class="logo">Komodo: Benchmark Results</a>
<div class="header-right"> <div class="header-right">
<a href="https://gitlab.isae-supaero.fr/dragoon/komodo" target="_blank"><img src="assets/gitlab.png" alt="gitlab.png"></a> <a href="https://gitlab.isae-supaero.fr/dragoon/komodo" target="_blank" rel="noopener noreferrer" class="external-link"><img src="assets/gitlab.png" alt="gitlab.png"><i class="fas fa-external-link-alt"></i></a>
<a href="https://gitlab-pages.isae-supaero.fr/website-e2d907/" >DRAGOON </a> <a href="https://gitlab-pages.isae-supaero.fr/website-e2d907/" >DRAGOON </a>
</div> </div>
</div> </div>
......
...@@ -96,3 +96,9 @@ tfoot th { ...@@ -96,3 +96,9 @@ tfoot th {
tfoot td { tfoot td {
font-weight: bold; font-weight: bold;
} }
.external-link i.fa-external-link-alt {
font-size : 0.6em;
vertical-align : baseline;
margin-left : 0.25em;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment