Skip to content

Commit

Permalink
fix: Fixing release URL to github (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ViBiOh authored Apr 12, 2020
1 parent 94151a3 commit 3cfe3a2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
42 changes: 21 additions & 21 deletions templates/index.html
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{{- define "favicon" -}}
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png?v={{- .Version -}}">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png?v={{- .Version -}}">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png?v={{- .Version -}}">
<link rel="manifest" href="/favicon/site.webmanifest?v={{- .Version -}}">
<link rel="mask-icon" href="/favicon/safari-pinned-tab.svg?v={{- .Version -}}" color="#5bbad5">
{{ define "favicon" }}
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png?v={{ .Version }}">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png?v={{ .Version }}">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png?v={{ .Version }}">
<link rel="manifest" href="/favicon/site.webmanifest?v={{ .Version }}">
<link rel="mask-icon" href="/favicon/safari-pinned-tab.svg?v={{ .Version }}" color="#5bbad5">
<meta name="theme-color" content="#f8f8f8">
{{- end -}}
{{ end }}

{{- define "message" -}}
{{- if . -}}
<p class="message {{- if eq .Level "success" }} success{{- else }} danger{{- end -}}">
{{- .Content -}}
{{ define "message" }}
{{ if . }}
<p class="message {{ if eq .Level "success" }} success{{ else }} danger{{ end }}">
{{ .Content }}
</p>
{{- end -}}
{{- end -}}
{{ end }}
{{ end }}

{{- define "ketchup" -}}
{{ define "ketchup" }}
<!doctype html>
<html lang="en">
<head>
<title>Ketchup</title>
<meta charset="utf-8">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{- template "favicon" . -}}
{{- template "style-color" . -}}
{{- template "style-button" . -}}
{{- template "style" . -}}
{{ template "favicon" . }}
{{ template "style-color" . }}
{{ template "style-button" . }}
{{ template "style" . }}
</head>

<body class="no-margin">
Expand All @@ -37,10 +37,10 @@ <h1 class="title">
</h1>
</header>

{{- template "message" .Message -}}
{{- template "targets" .Targets -}}
{{ template "message" .Message }}
{{ template "targets" .Targets }}
</div>
</body>

</html>
{{- end -}}
{{ end }}
2 changes: 1 addition & 1 deletion templates/ketchup.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

{{ if ne $target.CurrentVersion $target.LatestVersion }}
<span>
-> <a class="success" href="https://github.com/{{ $target.Repository }}/releases/{{ $target.LatestVersion }}" rel="noopener noreferrer" target="_blank">{{ $target.LatestVersion }}</a>
-> <a class="success" href="https://github.com/{{ $target.Repository }}/releases/tag/{{ $target.LatestVersion }}" rel="noopener noreferrer" target="_blank">{{ $target.LatestVersion }}</a>
</span>
{{ end }}
</p>
Expand Down
6 changes: 3 additions & 3 deletions templates/style.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- define "style" -}}
{{ define "style" }}
<style>
* {
box-sizing: border-box;
Expand Down Expand Up @@ -57,12 +57,12 @@

@media print {
body::after {
content: 'Save ink, share link. https://iot.vibioh.fr';
content: 'Save ink, share link. https://ketchup.vibioh.fr';
}

body > * {
display: none !important;
}
}
</style>
{{- end -}}
{{ end }}

0 comments on commit 3cfe3a2

Please sign in to comment.