mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-29 01:58:18 +00:00
fix(web-templates): use CleanedBasePath for titles (#2091)
A follow-up to https://github.com/runatlantis/atlantis/pull/2079 After upgrading to https://github.com/runatlantis/atlantis/releases/tag/v0.18.3 in our own infra, I noticed a minor issue with the links in the titles, they are still pointing to / even when '--atlantis-url' is provided.
This commit is contained in:
@@ -391,7 +391,7 @@ var ProjectJobsTemplate = template.Must(template.New("blank.html.tmpl").Parse(`
|
||||
|
||||
<body>
|
||||
<section class="header">
|
||||
<a title="atlantis" href="/"><img class="hero" src="{{ .CleanedBasePath }}/static/images/atlantis-icon_512.png"/></a>
|
||||
<a title="atlantis" href="{{ .CleanedBasePath }}"><img class="hero" src="{{ .CleanedBasePath }}/static/images/atlantis-icon_512.png"/></a>
|
||||
<p class="title-heading">atlantis</p>
|
||||
<p class="title-heading"><strong></strong></p>
|
||||
</section>
|
||||
@@ -461,7 +461,7 @@ var ProjectJobsErrorTemplate = template.Must(template.New("blank.html.tmpl").Par
|
||||
<body>
|
||||
<div class="container">
|
||||
<section class="header">
|
||||
<a title="atlantis" href="/"><img class="hero" src="{{ .CleanedBasePath }}/static/images/atlantis-icon_512.png"/></a>
|
||||
<a title="atlantis" href="{{ .CleanedBasePath }}"><img class="hero" src="{{ .CleanedBasePath }}/static/images/atlantis-icon_512.png"/></a>
|
||||
<p class="title-heading">atlantis</p>
|
||||
<p class="title-heading"><strong></strong></p>
|
||||
</section>
|
||||
@@ -561,7 +561,7 @@ var GithubAppSetupTemplate = template.Must(template.New("github-app.html.tmpl").
|
||||
<body>
|
||||
<div class="container">
|
||||
<section class="header">
|
||||
<a title="atlantis" href="/"><img class="hero" src="{{ .CleanedBasePath }}/static/images/atlantis-icon_512.png"/></a>
|
||||
<a title="atlantis" href="{{ .CleanedBasePath }}"><img class="hero" src="{{ .CleanedBasePath }}/static/images/atlantis-icon_512.png"/></a>
|
||||
<p class="title-heading">atlantis</p>
|
||||
|
||||
<p class="js-discard-success"><strong>
|
||||
|
||||
Reference in New Issue
Block a user