File tree Expand file tree Collapse file tree
src/Visualiser/Pages/Shared Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6868 image : ${{ steps.build-image.outputs.image }}
6969 environment-variables : |
7070 VERY_IMPORTANT=DO_NOT_DELETE_ME
71- ASPNETCORE_ENVIRONMENT=Development
71+ DOTNET_ENVIRONMENT=PreProduction
7272 secrets : |
7373 AzureAd__ClientId=${{ secrets.AWS_SECRETS_ARN }}:Client_ID::
7474 AzureAd__ClientSecret=${{ secrets.AWS_SECRETS_ARN }}:Client_Secret::
Original file line number Diff line number Diff line change 1- <!DOCTYPE html>
1+ @inject Microsoft .AspNetCore .Hosting .IWebHostEnvironment Env
2+
3+ <!DOCTYPE html>
24<html lang =" en" >
35<head >
46 <meta charset =" utf-8" />
1315 <header >
1416 <nav class =" navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow" >
1517 <div class =" container" >
16- <a class =" navbar-brand" asp-area =" " asp-page =" /Index" >Visualiser</a >
18+ @{
19+ string envName = Env .EnvironmentName ;
20+ string bgClass = envName switch
21+ {
22+ " Development" => " bg-primary" ,
23+ " PreProduction" => " bg-warning text-dark" ,
24+ " Production" => " bg-error" ,
25+ _ => " bg-secondary"
26+ };
27+ }
28+ <a class =" navbar-brand" asp-area =" " asp-page =" /Index" >Visualiser <span class =" badge @bgClass" >@envName </span ></a >
1729 <button class =" navbar-toggler" type =" button" data-bs-toggle =" collapse" data-bs-target =" .navbar-collapse" aria-controls =" navbarSupportedContent"
1830 aria-expanded =" false" aria-label =" Toggle navigation" >
1931 <span class =" navbar-toggler-icon" ></span >
You can’t perform that action at this time.
0 commit comments