🐛 fix: fix history url for GitLab & Codeberg (#294)
This commit is contained in:
parent
d0dd37ef1e
commit
838e3566bd
@ -18,9 +18,9 @@
|
||||
{%- if git_platform == "github" -%}
|
||||
{{ repository_url ~ '/commits/' ~ branch ~ '/content/' }}{{ relative_path | urlencode }}
|
||||
{%- elif git_platform == "gitlab" -%}
|
||||
{{ repository_url ~ '/-/commits/' ~ branch ~ '/' }}{{ relative_path | urlencode }}
|
||||
{{ repository_url ~ '/-/commits/' ~ branch ~ '/content/' }}{{ relative_path | urlencode }}
|
||||
{%- elif git_platform in ["gitea", "codeberg"] -%}
|
||||
{{ repository_url ~ '/commits/branch/' ~ branch ~ '/' }}{{ relative_path | urlencode }}
|
||||
{{ repository_url ~ '/commits/branch/' ~ branch ~ '/content/' }}{{ relative_path | urlencode }}
|
||||
{%- else -%}
|
||||
{{ throw(message="ERROR: Unknown, unsupported, or unspecified git platform. If you're using a custom domain, please specify the 'git_platform' in the config. If you think this is a bug, please report it: https://github.com/welpo/tabi/issues/new?assignees=&labels=bug&template=bug_report.md&title=Unsupported%20Git%20Platform%20Detected") }}
|
||||
{%- endif -%}
|
||||
|
Loading…
x
Reference in New Issue
Block a user