Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Özgür Ozan Sen
ogs
Commits
4f353b5b
Verified
Commit
4f353b5b
authored
4 years ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
[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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
web/layouts/partials/page-info.html
+1
-1
1 addition, 1 deletion
web/layouts/partials/page-info.html
web/layouts/partials/releases-single.html
+10
-2
10 additions, 2 deletions
web/layouts/partials/releases-single.html
with
11 additions
and
3 deletions
web/layouts/partials/page-info.html
+
1
−
1
View file @
4f353b5b
...
...
@@ -6,7 +6,7 @@
Commit: {{ .Subject }}
<a
href=
"https://gitlab.opengeosys.org/ogs/ogs/-/commit/{{ .AbbreviatedHash }}"
>
{{ .AbbreviatedHash }}
</a>
{{ end }}
{{if .GitInfo}}
|
<a
href=
"https://gitlab.opengeosys.org/ogs/ogs/-/edit/master/web/content/{{ .File.Path }}"
>
Edit this page on
<i
class=
"fab fa-git
hu
b"
></i></a>
|
<a
href=
"https://gitlab.opengeosys.org/ogs/ogs/-/edit/master/web/content/{{ .File.Path }}"
>
Edit this page on
<i
class=
"fab fa-git
la
b"
></i></a>
{{ end }}
</em>
{{ end }}
</p>
...
...
This diff is collapsed.
Click to expand it.
web/layouts/partials/releases-single.html
+
10
−
2
View file @
4f353b5b
{{ $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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment