Skip to content

Commit c5f6b45

Browse files
committed
Remove banner on main branch
1 parent dcc1385 commit c5f6b45

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/rocqproverorg_frontend/components/header.eml

+2-5
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,15 @@ 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 (%>
5960
<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">
6061
<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">
6162
<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"/>
6263
</svg>
6364
<div class="ms-3 text-sm font-medium">
64-
<% if git_branch <> "main" then (%>
6565
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 @
6666
<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>,
6767
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-
<% ); %>
7268
</div>
7369
<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">
7470
<span class="sr-only">Dismiss</span>
@@ -77,6 +73,7 @@ in
7773
</svg>
7874
</button>
7975
</div>
76+
<% ); %>
8077
<script src="https://unpkg.com/[email protected]/dist/flowbite.js"></script>
8178
<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">
8279
<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">

0 commit comments

Comments
 (0)