166 lines
8.8 KiB
HTML
166 lines
8.8 KiB
HTML
<!DOCTYPE html>
|
|
{{ $lang := .Site.Language.Lang }}
|
|
{{ $appindex := .Params.SectionHeader.AppIndex }}
|
|
{{ $data := index .Site.Data $lang }}
|
|
{{ $appdata := index $data.apps $appindex }}
|
|
{{ $disclaimers := newScratch }}
|
|
{{ $disclaimers.Set "snapcraft" false }}
|
|
{{ $disclaimers.Set "firefox" false }}
|
|
|
|
<html lang="{{ $lang }}">
|
|
{{- partial "head.html" . -}}
|
|
<body>
|
|
{{- partial "header.html" . -}}
|
|
<div id="content">
|
|
{{ partial "section-app-header.html" (dict "Data" .Params.SectionHeader "Site" .Site) }}
|
|
<br>
|
|
<!-- About section -->
|
|
<section id="about-section" class="center content-center padding-container">
|
|
<h1>{{ .Params.About.Title }}</h1>
|
|
<p>{{ .Params.About.Content | markdownify }}</p>
|
|
</section>
|
|
<!-- other sections -->
|
|
{{ range .Params.Sections }}
|
|
<section class="center content-center columns-container padding-container">
|
|
{{ if eq .Type "text|image" }}
|
|
<div class="column col2 text-left vertical-center">
|
|
{{ .Content | markdownify }}
|
|
</div>
|
|
<div class="column col2">
|
|
<img class="vertical-center fill-width" alt="{{ .Alt }}" src="/img/{{ .Image }}.png" loading="lazy"/>
|
|
</div>
|
|
{{ else if eq .Type "image|text" }}
|
|
<div class="column col2">
|
|
<img class="vertical-center fill-width" alt="{{ .Alt }}" src="/img/{{ .Image }}.png" loading="lazy"/>
|
|
</div>
|
|
<div class="column col2 text-left vertical-center">
|
|
{{ .Content | markdownify }}
|
|
</div>
|
|
{{ else if eq .Type "text/image" }}
|
|
<div class="column text-center">
|
|
{{ .Content | markdownify }}
|
|
<img src="/img/{{ .Image }}.png" alt="{{ .Alt }}" loading="lazy"/>
|
|
</div>
|
|
{{ else if eq .Type "text" }}
|
|
<div class="column text-center">
|
|
{{ .Content | markdownify }}
|
|
</div>
|
|
{{ end }}
|
|
</section>
|
|
<br>
|
|
{{ end }}
|
|
<section id="technical-details-section" class="center content-center padding-container">
|
|
<hr>
|
|
<h1 class="flex flex-center"><i class="icon-wrench icon-larger-text" alt=""></i>{{ i18n "technicalSheet" }}</h1>
|
|
<div class="grid">
|
|
<p class="inline column col2">
|
|
<i class="icon-universal icon-as-text" alt=""></i>
|
|
{{ i18n "supportedPlatforms" }} {{ partial "platforms.html" $appdata.platforms }}
|
|
</p>
|
|
<p class="inline column col2">
|
|
<i class="icon-lang icon-as-text" alt=""></i>
|
|
{{ i18n "translated" }} {{ partial "translations.html" $appdata.translated }}
|
|
</p>
|
|
<p class="inline column col2">
|
|
<i class="icon-git icon-as-text" alt=""></i>
|
|
{{ i18n "latestVersion" }}v{{ $appdata.version }}
|
|
</p>
|
|
<p class="inline column col2">
|
|
<i class="icon-git icon-as-text" alt=""></i>
|
|
{{ i18n "status" }}{{ $appdata.status }}
|
|
</p>
|
|
<p class="inline column col2">
|
|
<i class="icon-code icon-as-text" alt=""></i>
|
|
{{ i18n "programingLanguages" }}{{ delimit $appdata.languages ", " }}
|
|
</p>
|
|
<p class="inline column col2">
|
|
<i class="icon-frameworks icon-as-text" alt=""></i>
|
|
{{ i18n "frameworks" }} {{ delimit $appdata.frameworks ", " | markdownify }}
|
|
</p>
|
|
{{ if $appdata.touchfriendly }}
|
|
<p class="inline column col2">
|
|
<i class="icon-touch icon-as-text" alt=""></i>
|
|
{{ i18n "touchFriendly" }}
|
|
</p>
|
|
{{ end }}
|
|
{{ if $appdata.keyboardoriented }}
|
|
<p class="inline column col2">
|
|
<i class="icon-keyboard icon-as-text" alt=""></i>
|
|
{{ i18n "keyboardOriented" }}
|
|
</p>
|
|
{{ end }}
|
|
<p class="inline column col2">
|
|
<i class="icon-license icon-as-text" alt=""></i>
|
|
{{ i18n "license" }} {{ $appdata.license | markdownify }}
|
|
</p>
|
|
</div>
|
|
<div class="grid flex-center">
|
|
{{ partial "links.html" .Params.Technical.Links }}
|
|
</div>
|
|
</section>
|
|
{{ if .Params.Download.Show }}
|
|
<!-- download section -->
|
|
<section id="download-section" class="center content-center padding-container text-center">
|
|
<hr>
|
|
<h1 class="flex flex-center"><i class="icon-download icon-larger-text" alt=""></i>{{ i18n "download" }}</h1>
|
|
{{ i18n "downloadApp" (dict "Name" .Name "Platforms" (delimit $appdata.platforms ", ")) }}
|
|
<br><br>
|
|
<!-- download table -->
|
|
<div class="center columns-container">
|
|
{{ $download := .Params.Download }}
|
|
{{ range $download.Categories }}
|
|
<div class="column app-download col{{ len $download.Categories | safeHTMLAttr }}">
|
|
<div class="fill-width primary vertical-center app-download-platform">
|
|
<i class="icon-{{ lower .Platform }} icon-as-text" alt=""></i>{{ .Title }}
|
|
</div>
|
|
<div class="app-os-sources">
|
|
{{ $links := index $download.Links .Name }}
|
|
{{ range $links }}
|
|
<div>
|
|
<h3>{{ .Title }}</h3>
|
|
{{ if hasPrefix .Title "Flatpak" }}
|
|
<a href="https://flathub.org/apps/details/{{ .Index }}">
|
|
{{ partial "badge.html" (dict "Icon" "flathub" "Lang" $lang "Alt" "storeFlathub" ) }}
|
|
</a>
|
|
<br><br>{{ i18n "warnExternalWebsite" "flathub.org" }}
|
|
{{ else if hasPrefix .Title "Snap" }}
|
|
{{ $disclaimers.Set "snapcraft" true }}
|
|
<a href="https://snapcraft.io/{{ .Index }}">
|
|
{{ partial "badge.html" (dict "Icon" "snapcraft" "Lang" $lang "Alt" "storeSnapcraft" ) }}
|
|
</a>
|
|
<br><br>{{ i18n "warnExternalWebsite" "snapcraft.io" }}
|
|
{{ else if hasPrefix .Title "Firefox" }}
|
|
{{ $disclaimers.Set "firefox" true }}
|
|
<a href="https://addons.mozilla.org/en-US/firefox/addon/{{ .Index }}/">
|
|
{{ partial "badge.html" (dict "Icon" "amo" "Lang" $lang "Alt" "storeFirefoxAddons" ) }}
|
|
</a>
|
|
<br><br>{{ i18n "warnExternalWebsite" "addons.mozilla.org" }}
|
|
{{ else }}
|
|
{{ i18n "file" }} {{ replace .Name "<version>" $appdata.version }}<br>
|
|
<div class="primary center fit-content" role="button">
|
|
<a href="https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/{{ $appindex }}/v{{ $appdata.version }}/{{ replace .File "<version>" $appdata.version }}">
|
|
<i class="icon-download icon-as-text" alt=""></i>{{ i18n "download" }}
|
|
</a>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
<hr>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
<p>{{ .Params.Download.Footnote | markdownify }} </p>
|
|
<!-- Disclaimers -->
|
|
{{ if ($disclaimers.Get "snapcraft") }}
|
|
<p>{{ i18n "disclaimerSnapcraft" | markdownify }}</p>
|
|
{{ end }}
|
|
{{ if ($disclaimers.Get "firefox") }}
|
|
<p>{{ i18n "disclaimerFirefox" | markdownify }}</p>
|
|
{{ end }}
|
|
</section>
|
|
{{ end }}
|
|
</div>
|
|
{{- partial "footer.html" . -}}
|
|
</body>
|
|
</html>
|