Skip to content

Commit

Permalink
feat(website): link from groupid to group page in seq details page
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusroemer committed May 22, 2024
1 parent 104040f commit aae3739
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions kubernetes/loculus/templates/_common-metadata.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
{{- define "loculus.websiteUrl" -}}
{{- $websiteHost := "" }}
{{- if $.Values.codespaceName }}
{{- $websiteHost = printf "https://%s-3000.app.github.dev" $.Values.codespaceName }}
{{- else if eq $.Values.environment "server" }}
{{- $websiteHost = printf "https://%s" $.Values.host }}
{{- else }}
{{- $websiteHost = "http://localhost:3000" }}
{{- end }}
{{- printf $websiteHost }}
{{- end }}


{{/* Get common metadata fields */}}
{{- define "loculus.commonMetadata" }}
fields:
Expand Down Expand Up @@ -29,6 +42,9 @@ fields:
type: int
autocomplete: true
header: Submission details
customDisplay:
type: link
url: {{ include "loculus.websiteUrl" $ -}} /group/__value__
- name: groupName
type: string
generateIndex: true
Expand Down

0 comments on commit aae3739

Please sign in to comment.