Skip to content

Commit be10377

Browse files
committed
Add warning banner on main branch as well
1 parent f489fbb commit be10377

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/rocqproverorg_frontend/components/header.eml

+8-5
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,19 @@ in
5656
<header
5757
class="fixed top-0 z-50 w-full h-20 flex items-center flex-wrap"
5858
x-data="{ open: false }">
59-
<% if git_branch <> "main" then (%>
6059
<div id="alert-border-2" class="bg-primary_25 border-secondary border-t-4 bottom-0 dark:bg-dark-card fixed flex items-center justify-center p-4 text-center tracking-wide w-full" role="alert">
6160
<svg class="flex-shrink-0 w-4 h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
6261
<path d="M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"/>
6362
</svg>
6463
<div class="ms-3 text-sm font-medium">
65-
You are viewing the <a class="font-semibold underline hover:no-underline" href="https://github.com/coq/rocq-prover.org/tree/<%s git_branch %>"><%s git_branch %> branch</a> of the website @
66-
<a class="font-semibold underline hover:no-underline" href="https://github.com/coq/rocq-prover.org/commit/<%s git_commit %>"><%s git_short_commit %></a>,
67-
not the <a class="font-semibold underline hover:no-underline" href="https://rocq-prover.org">live version</a>.
64+
<% if git_branch <> "main" then (%>
65+
You are viewing the <a class="font-semibold underline hover:no-underline" href="https://github.com/coq/rocq-prover.org/tree/<%s git_branch %>"><%s git_branch %> branch</a> of the website @
66+
<a class="font-semibold underline hover:no-underline" href="https://github.com/coq/rocq-prover.org/commit/<%s git_commit %>"><%s git_short_commit %></a>,
67+
not the <a class="font-semibold underline hover:no-underline" href="https://rocq-prover.org">live version</a>.
68+
<% ) else ( %>
69+
⚠️ Under construction ⚠️ This website will be officialy launched with the first release of Rocq 9.0 in March 2025.
70+
Until then, there may remain broken links and references to not-yet existing projects.
71+
<% ); %>
6872
</div>
6973
<button type="button" class="ms-3 -mx-1.5 -my-1.5 bg-red-50 text-red-500 rounded-lg focus:ring-2 focus:ring-red-400 p-1.5 hover:bg-red-200 inline-flex items-center justify-center h-8 w-8 dark:bg-gray-800 dark:text-red-400 dark:hover:bg-gray-700" data-dismiss-target="#alert-border-2" aria-label="Close">
7074
<span class="sr-only">Dismiss</span>
@@ -74,7 +78,6 @@ in
7478
</button>
7579
</div>
7680
<script src="https://unpkg.com/[email protected]/dist/flowbite.js"></script>
77-
<% ); %>
7881
<nav class="bg-background container-fluid dark:bg-dark-background_navigation flex gap-5 h-20 header items-center justify-between rounded-b-lg shadow-sm wide xl:gap-8">
7982
<ul class="order-0 space space-x-5 xl:space-x-8 items-center flex text-content font-medium dark:text-title dark:text-opacity-60 dark:font-semibold">
8083
<li style="width:170px">

0 commit comments

Comments
 (0)