flightlesssomething/templates/header.tmpl

51 lines
2.7 KiB
Cheetah
Raw Normal View History

2024-07-04 22:29:32 +02:00
<!doctype html>
<html data-bs-theme="dark">
<head>
2024-07-14 17:22:50 +02:00
<link rel="icon" href="/static/img/favicon.ico" type="image/svg+xml">
2024-07-04 22:29:32 +02:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>FlightlessSomething</title>
</head>
<body>
<div class="container">
<nav class="navbar navbar-expand-lg bg-body-tertiary rounded" aria-label="Eleventh navbar example">
<div class="container-fluid">
2024-07-14 17:49:10 +02:00
<a class="navbar-brand" href="/benchmarks" style="position: relative; display: inline-block;">
<i class="fa-solid fa-dove"></i>
2024-07-04 22:29:32 +02:00
FlightlessSomething
2024-07-14 18:39:49 +02:00
<small style="font-size: 0.5em; color: gray; position: absolute; top: 3.1em; left: 2.65em;">{{ version }}</small>
2024-07-04 22:29:32 +02:00
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarsExample09" aria-controls="navbarsExample09" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExample09">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<a class="nav-link {{ if eq .activePage "benchmarks" }}active{{ end }}" aria-current="page" href="/benchmarks">Benchmarks</a>
</ul>
<ul class="navbar-nav">
2024-07-07 12:43:20 +02:00
<li class="nav-item">
<a class="nav-link" href="https://github.com/erkexzcx/flightlesssomething" target="_blank"><i class="fa-brands fa-github"></i> Source</a>
</li>
2024-07-04 22:29:32 +02:00
{{if .username}}
<li class="nav-item">
<a class="nav-link" href="/user/{{ .userID }}"><i class="fa-solid fa-user"></i> {{ .username }}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/logout"><i class="fa-solid fa-right-from-bracket"></i> Logout</a>
</li>
{{else}}
<li class="nav-item">
<a class="nav-link" href="/login"><i class="fa-brands fa-discord"></i> Login</a>
</li>
{{end}}
</ul>
</div>
</div>
</nav>