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

[web] Fixed GitHub release link, first changes for GitLab release page.

parent f5171d6e
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
Commit: {{ .Subject }} <a href="https://gitlab.opengeosys.org/ogs/ogs/-/commit/{{ .AbbreviatedHash }}">{{ .AbbreviatedHash }}</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-github"></i></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 }}
</em> {{ end }}
</p>
......
{{ $gh_release := print "https://github.com/ufz/ogs/releases/tag/" .Title }}
{{ $gh_release := print "https://github.com/ufz/ogs/releases/tag/" .Params.tag }}
{{ $gh_download := print "https://github.com/ufz/ogs/releases/download/" .Params.tag }}
{{ $type := "GitHub"}}
{{/* comparison only works for two version parts, strip out 6. */}}
{{ if gt (slicestr .Params.tag 2) "3.1" }}
{{ $gh_release = print "https://gitlab.opengeosys.org/ogs/ogs/-/releases/" .Params.tag }}
{{ $gh_download = print "https://gitlab.opengeosys.org/ogs/ogs/-/releases/" .Params.tag }}
{{ $type = "GitLab"}}
{{ end }}
{{ $file_prefix := print "ogs-" .Params.tag }}
<p>Released on {{ dateFormat "Monday, Jan 2, 2006" .Params.release_date }}, <a href="{{ $gh_release }}"><i class="fab fa-github"></i> GitHub release</a></p>
<p>Released on {{ dateFormat "Monday, Jan 2, 2006" .Params.release_date }}, <a href="{{ $gh_release }}"><i class="fab fa-{{ $type | lower}}"></i> {{ $type }} release</a></p>
{{ if .Params.downloads }}
<div class="note">
<h3><i class="far fa-download"></i> Benchmark downloads</h3>
......
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