[ADD] Base URL option for short code and an appropriate default for gitlab's public instance

This commit is contained in:
DioDuPiMa 2023-04-05 00:47:46 +01:00
parent 3d9978c225
commit c1aca647c7

View file

@ -1,5 +1,5 @@
{{- $gitlabData := getJSON (print "https://gitlab.com/api/v4/projects/" (.Get "repo_id")) -}} {{- $gitLabData := getJSON (print (default "https://gitlab.com/" (.Get "baseURL")) "api/v4/projects/" (.Get "projectID")) -}}
{{- with $gitlabData -}} {{- with $gitLabData -}}
<a target="_blank" href="{{ .html_url }}" class="cursor-pointer"> <a target="_blank" href="{{ .html_url }}" class="cursor-pointer">
<div class="w-full md:w-auto pt-3 p-5 border border-neutral-200 dark:border-neutral-700 border-2 rounded-md backdrop-blur shadow-2xl"> <div class="w-full md:w-auto pt-3 p-5 border border-neutral-200 dark:border-neutral-700 border-2 rounded-md backdrop-blur shadow-2xl">