Skip to content
Snippets Groups Projects
Verified Commit a1ebf9ed authored by Lars Bilke's avatar Lars Bilke
Browse files

[web] Added link to job id which created the page.

parent 56fe46fd
No related branches found
No related tags found
No related merge requests found
......@@ -120,3 +120,6 @@ post = "The OGS source code documentation is automatically generated right from
name = "Styleguide"
url = "https://ufz.github.io/styleguide/cppguide.xml"
post = "OpenGeoSys C++ Style Guide"
[security.funcs]
getenv = ['^HUGO_', '^CI_']
<div class="mt-20 text-sm text-gray-700">
<p>This article was written by {{ .Params.Author }}. If you are missing something or you find an error please <a href="mailto:ogs-devs@googlegroups.com">let us know</a>.
Generated with <a href="https://gohugo.io">Hugo</a> {{ hugo.Version }}. Last revision: {{ .Lastmod.Format "January 2, 2006" }} {{ if .IsPage }}<em>
{{ $job_url := os.Getenv "CI_JOB_URL" }}
{{ $job_id := os.Getenv "CI_JOB_ID" }}
<div class="mt-20 text-sm text-gray-700 prose prose-sm max-w-none">
<p>This article was written by {{ .Params.Author }}. If you are missing something or you find an error please <a href="mailto:ogs-devs@googlegroups.com">let us know</a>.<br>
Generated with <a href="https://gohugo.io">Hugo</a> {{ hugo.Version }}
{{ if $job_url }}
in CI job <a href="{{ $job_url }}">{{ $job_id }}</a>
{{ end }}
|
{{ if .IsPage }}
Last revision: {{ .Lastmod.Format "January 2, 2006" }}
<em>
{{ with .GitInfo }}
<br>
Commit: {{ .Subject }} <a href="https://gitlab.opengeosys.org/ogs/ogs/-/commit/{{ .AbbreviatedHash }}">{{ .AbbreviatedHash }}</a>
&nbsp;| <a href="https://gitlab.opengeosys.org/ogs/ogs/-/edit/master/web/content/{{ $.File.Path }}">Edit this page on <i class="fab fa-gitlab"></i></a>
{{ end }}
{{if .GitInfo}}
&nbsp;| <a href="https://gitlab.opengeosys.org/ogs/ogs/-/edit/master/web/content/{{ .File.Path }}">Edit this page on <i class="fab fa-gitlab"></i></a>
{{ end }}
</em> {{ end }}
</em>
{{ end }}
</p>
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment