From 0c21af3728b43aeff8695dbf95b29fbebb99b959 Mon Sep 17 00:00:00 2001 From: Danila Fominykh Date: Thu, 26 Oct 2023 21:16:12 -0300 Subject: [PATCH] Package repository/documentation link unification (#27804) Some translations are duplicated for the same package fields; it should be possible to use the same approach. Checked packages to use the same forms in templates. 1. Removed repeated translations for the same fields 2. Linked template files to the same translation fields 3. Added repository site link for nuget packages --- options/locale/locale_cs-CZ.ini | 4 ---- options/locale/locale_de-DE.ini | 4 ---- options/locale/locale_el-GR.ini | 4 ---- options/locale/locale_en-US.ini | 4 ---- options/locale/locale_es-ES.ini | 4 ---- options/locale/locale_fr-FR.ini | 4 ---- options/locale/locale_ja-JP.ini | 4 ---- options/locale/locale_lv-LV.ini | 4 ---- options/locale/locale_pt-BR.ini | 4 ---- options/locale/locale_pt-PT.ini | 4 ---- options/locale/locale_ru-RU.ini | 4 ---- options/locale/locale_tr-TR.ini | 4 ---- options/locale/locale_zh-CN.ini | 4 ---- options/locale/locale_zh-TW.ini | 4 ---- templates/package/metadata/cargo.tmpl | 4 ++-- templates/package/metadata/conan.tmpl | 2 +- templates/package/metadata/conda.tmpl | 4 ++-- templates/package/metadata/nuget.tmpl | 1 + templates/package/metadata/swift.tmpl | 2 +- templates/package/metadata/vagrant.tmpl | 2 +- 20 files changed, 8 insertions(+), 63 deletions(-) diff --git a/options/locale/locale_cs-CZ.ini b/options/locale/locale_cs-CZ.ini index 602fe0bce..f25f74966 100644 --- a/options/locale/locale_cs-CZ.ini +++ b/options/locale/locale_cs-CZ.ini @@ -3031,8 +3031,6 @@ alpine.repository.repositories=Repozitáře alpine.repository.architectures=Architektury cargo.registry=Nastavte tento registr v konfiguračním souboru Cargo (například ~/.cargo/config.toml): cargo.install=Chcete-li nainstalovat balíček pomocí Cargo, spusťte následující příkaz: -cargo.details.repository_site=Stránka repositáře -cargo.details.documentation_site=Stránka dokumentace chef.registry=Nastavit tento registr v souboru ~/.chef/config.rb: chef.install=Pro instalaci balíčku spusťte následující příkaz: composer.registry=Nastavit tento registr v souboru ~/.composer/config.json: @@ -3044,8 +3042,6 @@ conan.registry=Nastavte tento registr z příkazového řádku: conan.install=Pro instalaci balíčku pomocí Conan spusťte následující příkaz: conda.registry=Nastavte tento registr jako Conda repozitář ve vašem .condarc: conda.install=Pro instalaci balíčku pomocí Conda spusťte následující příkaz: -conda.details.repository_site=Stránka repositáře -conda.details.documentation_site=Stránka dokumentace container.details.type=Typ obrazu container.details.platform=Platforma container.pull=Stáhněte obraz z příkazové řádky: diff --git a/options/locale/locale_de-DE.ini b/options/locale/locale_de-DE.ini index f970fdb66..6d3517d2a 100644 --- a/options/locale/locale_de-DE.ini +++ b/options/locale/locale_de-DE.ini @@ -3341,8 +3341,6 @@ alpine.repository.repositories=Repositories alpine.repository.architectures=Architekturen cargo.registry=Richte diese Registry in der Cargo-Konfigurationsdatei ein (z.B. ~/.cargo/config.toml): cargo.install=Um das Paket mit Cargo zu installieren, führe den folgenden Befehl aus: -cargo.details.repository_site=Repository-Seite -cargo.details.documentation_site=Dokumentationsseite chef.registry=Richte diese Registry in deiner ~/.chef/config.rb Datei ein: chef.install=Nutze folgenden Befehl, um das Paket zu installieren: composer.registry=Setze diese Paketverwaltung in deiner ~/.composer/config.json Datei auf: @@ -3354,8 +3352,6 @@ conan.registry=Diese Registry über die Kommandozeile einrichten: conan.install=Um das Paket mit Conan zu installieren, führe den folgenden Befehl aus: conda.registry=Richte diese Registry als Conda-Repository in deiner .condarc Datei ein: conda.install=Um das Paket mit Conda zu installieren, führe den folgenden Befehl aus: -conda.details.repository_site=Repository-Seite -conda.details.documentation_site=Dokumentationsseite container.details.type=Container-Image Typ container.details.platform=Plattform container.pull=Downloade das Container-Image aus der Kommandozeile: diff --git a/options/locale/locale_el-GR.ini b/options/locale/locale_el-GR.ini index 2dc615a1b..bb68a5183 100644 --- a/options/locale/locale_el-GR.ini +++ b/options/locale/locale_el-GR.ini @@ -3162,8 +3162,6 @@ alpine.repository.repositories=Αποθετήρια alpine.repository.architectures=Αρχιτεκτονικές cargo.registry=Ρυθμίστε αυτό το μητρώο στις ρυθμίσεις του Cargo (για παράδειγμα ~/.cargo/config.toml): cargo.install=Για να εγκαταστήσετε το πακέτο χρησιμοποιώντας το Cargo, εκτελέστε την ακόλουθη εντολή: -cargo.details.repository_site=Ιστοσελίδα Αποθετηρίου -cargo.details.documentation_site=Ιστοσελίδα Τεκμηρίωσης chef.registry=Ρυθμίστε αυτό το μητρώο στο αρχείο ~/.chef/config.rb: chef.install=Για να εγκαταστήσετε το πακέτο, εκτελέστε την ακόλουθη εντολή: composer.registry=Ρυθμίστε αυτό το μητρώο στο αρχείο ~/.composer/config.json: @@ -3175,8 +3173,6 @@ conan.registry=Ρυθμίστε αυτό το μητρώο από τη γραμ conan.install=Για να εγκαταστήσετε το πακέτο χρησιμοποιώντας το Conan, εκτελέστε την ακόλουθη εντολή: conda.registry=Ρυθμίστε αυτό το μητρώο ως αποθετήριο Conda στο αρχείο .condarc: conda.install=Για να εγκαταστήσετε το πακέτο χρησιμοποιώντας το Conda, εκτελέστε την ακόλουθη εντολή: -conda.details.repository_site=Ιστοσελίδα Αποθετηρίου -conda.details.documentation_site=Ιστοσελίδα Τεκμηρίωσης container.details.type=Τύπος Εικόνας container.details.platform=Πλατφόρμα container.pull=Κατεβάστε την εικόνα από τη γραμμή εντολών: diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index d9d0dd796..8c40bbc01 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -3340,8 +3340,6 @@ alpine.repository.repositories = Repositories alpine.repository.architectures = Architectures cargo.registry = Setup this registry in the Cargo configuration file (for example ~/.cargo/config.toml): cargo.install = To install the package using Cargo, run the following command: -cargo.details.repository_site = Repository Site -cargo.details.documentation_site = Documentation Site chef.registry = Setup this registry in your ~/.chef/config.rb file: chef.install = To install the package, run the following command: composer.registry = Setup this registry in your ~/.composer/config.json file: @@ -3353,8 +3351,6 @@ conan.registry = Setup this registry from the command line: conan.install = To install the package using Conan, run the following command: conda.registry = Setup this registry as a Conda repository in your .condarc file: conda.install = To install the package using Conda, run the following command: -conda.details.repository_site = Repository Site -conda.details.documentation_site = Documentation Site container.details.type = Image Type container.details.platform = Platform container.pull = Pull the image from the command line: diff --git a/options/locale/locale_es-ES.ini b/options/locale/locale_es-ES.ini index 9eb9e856c..393be37fc 100644 --- a/options/locale/locale_es-ES.ini +++ b/options/locale/locale_es-ES.ini @@ -3341,8 +3341,6 @@ alpine.repository.repositories=Repositorios alpine.repository.architectures=Arquitecturas cargo.registry=Configurar este registro en el archivo de configuración de Cargo (por ejemplo ~/.cargo/config.toml): cargo.install=Para instalar el paquete usando Cargo, ejecute el siguiente comando: -cargo.details.repository_site=Sitio del repositorio -cargo.details.documentation_site=Sitio de documentación chef.registry=Configura este registro en tu archivo ~/.chef/config.rb: chef.install=Para instalar el paquete, ejecute el siguiente comando: composer.registry=Configura este registro en el archivo ~/.composer/config.json: @@ -3354,8 +3352,6 @@ conan.registry=Configurar este registro desde la línea de comandos: conan.install=Para instalar el paquete usando Conan, ejecuta el siguiente comando: conda.registry=Configura este registro como un repositorio Conda en tu archivo .condarc: conda.install=Para instalar el paquete usando Conda, ejecute el siguiente comando: -conda.details.repository_site=Sitio del repositorio -conda.details.documentation_site=Sitio de documentación container.details.type=Tipo de imagen container.details.platform=Plataforma container.pull=Arrastra la imagen desde la línea de comandos: diff --git a/options/locale/locale_fr-FR.ini b/options/locale/locale_fr-FR.ini index 8b63b3665..0a7ec58fe 100644 --- a/options/locale/locale_fr-FR.ini +++ b/options/locale/locale_fr-FR.ini @@ -3341,8 +3341,6 @@ alpine.repository.repositories=Dépôts alpine.repository.architectures=Architectures cargo.registry=Configurez ce registre dans le fichier de configuration Cargo (par exemple ~/.cargo/config.toml) : cargo.install=Pour installer le paquet en utilisant Cargo, exécutez la commande suivante : -cargo.details.repository_site=Site du dépôt -cargo.details.documentation_site=Site de documentation chef.registry=Configurer ce registre dans votre fichier ~/.chef/config.rb: chef.install=Pour installer le paquet, exécutez la commande suivante : composer.registry=Configurez ce registre dans votre fichier ~/.composer/config.json : @@ -3354,8 +3352,6 @@ conan.registry=Configurez ce registre à partir d'un terminal : conan.install=Pour installer le paquet en utilisant Conan, exécutez la commande suivante : conda.registry=Configurez ce registre en tant que dépôt Conda dans le fichier .condarc : conda.install=Pour installer le paquet en utilisant Conda, exécutez la commande suivante : -conda.details.repository_site=Site du dépôt -conda.details.documentation_site=Site de documentation container.details.type=Type d'image container.details.platform=Plateforme container.pull=Tirez l'image depuis un terminal : diff --git a/options/locale/locale_ja-JP.ini b/options/locale/locale_ja-JP.ini index df1cd0a54..7cf8eb8d3 100644 --- a/options/locale/locale_ja-JP.ini +++ b/options/locale/locale_ja-JP.ini @@ -3341,8 +3341,6 @@ alpine.repository.repositories=Repositories alpine.repository.architectures=Architectures cargo.registry=Cargo 設定ファイルでこのレジストリをセットアップします。(例 ~/.cargo/config.toml): cargo.install=Cargo を使用してパッケージをインストールするには、次のコマンドを実行します: -cargo.details.repository_site=リポジトリサイト -cargo.details.documentation_site=ドキュメンテーションサイト chef.registry=あなたの ~/.chef/config.rb ファイルに、このレジストリをセットアップします: chef.install=パッケージをインストールするには、次のコマンドを実行します: composer.registry=あなたの ~/.composer/config.json ファイルに、このレジストリをセットアップします: @@ -3354,8 +3352,6 @@ conan.registry=このレジストリをコマンドラインからセットア conan.install=Conan を使用してパッケージをインストールするには、次のコマンドを実行します: conda.registry=あなたの .condarc ファイルに、このレジストリを Conda リポジトリとしてセットアップします: conda.install=Conda を使用してパッケージをインストールするには、次のコマンドを実行します: -conda.details.repository_site=リポジトリサイト -conda.details.documentation_site=ドキュメンテーションサイト container.details.type=イメージタイプ container.details.platform=プラットフォーム container.pull=コマンドラインでイメージを取得します: diff --git a/options/locale/locale_lv-LV.ini b/options/locale/locale_lv-LV.ini index 1af1cc368..fc67257bb 100644 --- a/options/locale/locale_lv-LV.ini +++ b/options/locale/locale_lv-LV.ini @@ -3161,8 +3161,6 @@ alpine.repository.repositories=Repozitoriji alpine.repository.architectures=Arhitektūras cargo.registry=Uzstādiet šo reģistru Cargo konfigurācijas failā, piemēram, ~/.cargo/config.toml: cargo.install=Lai instalētu Cargo pakotni, izpildiet sekojošu komandu: -cargo.details.repository_site=Repozitorija vietne -cargo.details.documentation_site=Dokumentācijas lapa chef.registry=Uzstādiet šo reģistru failā ~/.chef/config.rb: chef.install=Lai uzstādītu pakotni, ir jāizpilda šī komanda: composer.registry=Pievienojiet šo reģistru savā ~/.composer/config.json failā: @@ -3174,8 +3172,6 @@ conan.registry=Konfigurējiet šo reģistru no komandrindas: conan.install=Lai instalētu Conan pakotni, izpildiet sekojošu komandu: conda.registry=Uzstādiet šo reģistru kā Conda repozitoriju failā .condarc: conda.install=Lai instalētu Conda pakotni, izpildiet sekojošu komandu: -conda.details.repository_site=Repozitorija vietne -conda.details.documentation_site=Dokumentācijas lapa container.details.type=Attēla formāts container.details.platform=Platforma container.pull=Atgādājiet šo attēlu no komandrindas: diff --git a/options/locale/locale_pt-BR.ini b/options/locale/locale_pt-BR.ini index db9014f4b..33bf7afa6 100644 --- a/options/locale/locale_pt-BR.ini +++ b/options/locale/locale_pt-BR.ini @@ -3129,8 +3129,6 @@ alpine.repository.repositories=Repositórios alpine.repository.architectures=Arquiteturas cargo.registry=Configurar este registro no arquivo de configuração de Cargo (por exemplo ~/.cargo/config.toml): cargo.install=Para instalar o pacote usando Cargo, execute o seguinte comando: -cargo.details.repository_site=Site do Repositório -cargo.details.documentation_site=Site da Documentação chef.registry=Configure este registro em seu arquivo ~/.chef/config.rb: chef.install=Para instalar o pacote, execute o seguinte comando: composer.registry=Configure este registro em seu arquivo ~/.composer/config.json: @@ -3142,8 +3140,6 @@ conan.registry=Configure este registro pela linha de comando: conan.install=Para instalar o pacote usando o Conan, execute o seguinte comando: conda.registry=Configure este registro como um repositório Conda no arquivo .condarc: conda.install=Para instalar o pacote usando o Conda, execute o seguinte comando: -conda.details.repository_site=Site do Repositório -conda.details.documentation_site=Site da Documentação container.details.type=Tipo de Imagem container.details.platform=Plataforma container.pull=Puxe a imagem pela linha de comando: diff --git a/options/locale/locale_pt-PT.ini b/options/locale/locale_pt-PT.ini index 9d9c5eada..eeed9982d 100644 --- a/options/locale/locale_pt-PT.ini +++ b/options/locale/locale_pt-PT.ini @@ -3341,8 +3341,6 @@ alpine.repository.repositories=Repositórios alpine.repository.architectures=Arquitecturas cargo.registry=Configurar este registo no ficheiro de configuração do Cargo (por exemplo: ~/.cargo/config.toml): cargo.install=Para instalar o pacote usando o Cargo, execute o seguinte comando: -cargo.details.repository_site=Página web do repositório -cargo.details.documentation_site=Página web da documentação chef.registry=Configure este registo no seu ficheiro ~/.chef/config.rb: chef.install=Para instalar o pacote, execute o seguinte comando: composer.registry=Configure este registo no seu ficheiro ~/.composer/config.json: @@ -3354,8 +3352,6 @@ conan.registry=Configurar este registo usando a linha de comandos: conan.install=Para instalar o pacote usando o Conan, execute o seguinte comando: conda.registry=Configure este registo como um repositório Conda no seu ficheiro .condarc: conda.install=Para instalar o pacote usando o Conda, execute o seguinte comando: -conda.details.repository_site=Página web do repositório -conda.details.documentation_site=Página web da documentação container.details.type=Tipo de imagem container.details.platform=Plataforma container.pull=Puxar a imagem usando a linha de comandos: diff --git a/options/locale/locale_ru-RU.ini b/options/locale/locale_ru-RU.ini index 3a560eba1..50062bab3 100644 --- a/options/locale/locale_ru-RU.ini +++ b/options/locale/locale_ru-RU.ini @@ -3233,8 +3233,6 @@ alpine.repository.repositories=Репозитории alpine.repository.architectures=Архитектуры cargo.registry=Настройте этот реестр в файле конфигурации Cargo (например, ~/.cargo/config.toml): cargo.install=Чтобы установить пакет с помощью Cargo, выполните следующую команду: -cargo.details.repository_site=Сайт репозитория -cargo.details.documentation_site=Сайт документации chef.registry=Настройте этот реестр в своём файле ~/.chef/config.rb: chef.install=Чтобы установить пакет, выполните следующую команду: composer.registry=Настройте этот реестр в файле ~/.composer/config.json: @@ -3246,8 +3244,6 @@ conan.registry=Настроить реестр из командной стро conan.install=Чтобы установить пакет с помощью Conan, выполните следующую команду: conda.registry=Пропишите этот реестр в качестве репозитория Conda в своём файле .condarc: conda.install=Чтобы установить пакет с помощью Conda, выполните следующую команду: -conda.details.repository_site=Сайт репозитория -conda.details.documentation_site=Сайт документации container.details.type=Тип образа container.details.platform=Платформа container.pull=Загрузите образ из командной строки: diff --git a/options/locale/locale_tr-TR.ini b/options/locale/locale_tr-TR.ini index 4c0fc95c0..bb222ddc8 100644 --- a/options/locale/locale_tr-TR.ini +++ b/options/locale/locale_tr-TR.ini @@ -3294,8 +3294,6 @@ alpine.repository.repositories=Depolar alpine.repository.architectures=Mimariler cargo.registry=Bu kütüğü Cargo yapılandırma dosyasına (örneğin ~/.cargo/config.toml) ayarlayın: cargo.install=Paketi Cargo kullanarak kurmak için, şu komutu çalıştırın: -cargo.details.repository_site=Depo Sitesi -cargo.details.documentation_site=Belge Sitesi chef.registry=Bu kütüğü ~/.chef/config.rb dosyasında ayarlayın: chef.install=Paketi kurmak için, aşağıdaki komutu çalıştırın: composer.registry=Bu kütüğü ~/.composer/config.json dosyasında ayarlayın: @@ -3307,8 +3305,6 @@ conan.registry=Bu kütüğü komut satırını kullanarak kurun: conan.install=Conan ile paket kurmak için aşağıdaki komutu çalıştırın: conda.registry=Bu kütüğü .condarc dosyasında bir Conda deposu olarak ayarlayın: conda.install=Conda ile paket kurmak için aşağıdaki komutu çalıştırın: -conda.details.repository_site=Depo Sitesi -conda.details.documentation_site=Belge Sitesi container.details.type=Görüntü Türü container.details.platform=Platform container.pull=Görüntüyü komut satırını kullanarak çekin: diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 8ebf6c509..72df88f5e 100644 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -3341,8 +3341,6 @@ alpine.repository.repositories=仓库管理 alpine.repository.architectures=架构 cargo.registry=在 Cargo 配置文件中设置此注册中心(例如:~/.cargo/config.toml): cargo.install=要使用 Cargo 安装软件包,请运行以下命令: -cargo.details.repository_site=仓库站点 -cargo.details.documentation_site=文档站点 chef.registry=在您的 ~/.chef/config.rb 文件中设置此注册中心: chef.install=要安装包,请运行以下命令: composer.registry=在您的 ~/.composer/config.json 文件中设置此注册中心: @@ -3354,8 +3352,6 @@ conan.registry=从命令行设置此注册中心: conan.install=要使用 Conan 安装软件包,请运行以下命令: conda.registry=在您的 .condarc 文件中将此注册中心设置为 Conda 仓库: conda.install=要使用 Conda 安装软件包,请运行以下命令: -conda.details.repository_site=仓库站点 -conda.details.documentation_site=文档站点 container.details.type=镜像类型 container.details.platform=平台 container.pull=从命令行拉取镜像: diff --git a/options/locale/locale_zh-TW.ini b/options/locale/locale_zh-TW.ini index e058ca719..dd7f4ca38 100644 --- a/options/locale/locale_zh-TW.ini +++ b/options/locale/locale_zh-TW.ini @@ -3072,8 +3072,6 @@ alpine.repository.repositories=儲存庫 alpine.repository.architectures=架構 cargo.registry=在 Cargo 組態檔設定此註冊中心 (例如: ~/.cargo/config.toml): cargo.install=執行下列命令以使用 Cargo 安裝此套件: -cargo.details.repository_site=儲存庫網站 -cargo.details.documentation_site=文件網站 chef.registry=在您的 ~/.chef/config.rb 檔設定此註冊中心: chef.install=執行下列命令安裝此套件: composer.registry=在您的 ~/.composer/config.json 檔設定此註冊中心: @@ -3085,8 +3083,6 @@ conan.registry=透過下列命令設定此註冊中心: conan.install=執行下列命令以使用 Conan 安裝此套件: conda.registry=在您的 .condarc 檔設定此註冊中心為 Conda 存儲庫: conda.install=執行下列命令以使用 Conda 安裝此套件: -conda.details.repository_site=儲存庫網站 -conda.details.documentation_site=文件網站 container.details.type=映像檔類型 container.details.platform=平台 container.pull=透過下列命令拉取映像檔: diff --git a/templates/package/metadata/cargo.tmpl b/templates/package/metadata/cargo.tmpl index 9cc0fde73..c8471a71e 100644 --- a/templates/package/metadata/cargo.tmpl +++ b/templates/package/metadata/cargo.tmpl @@ -1,7 +1,7 @@ {{if eq .PackageDescriptor.Package.Type "cargo"}} {{range .PackageDescriptor.Metadata.Authors}}
{{svg "octicon-person" 16 "gt-mr-3"}} {{.}}
{{end}} {{if .PackageDescriptor.Metadata.ProjectURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.details.project_site"}}
{{end}} - {{if .PackageDescriptor.Metadata.RepositoryURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.cargo.details.repository_site"}}
{{end}} - {{if .PackageDescriptor.Metadata.DocumentationURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.cargo.details.documentation_site"}}
{{end}} + {{if .PackageDescriptor.Metadata.RepositoryURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.details.repository_site"}}
{{end}} + {{if .PackageDescriptor.Metadata.DocumentationURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.details.documentation_site"}}
{{end}} {{if .PackageDescriptor.Metadata.License}}
{{svg "octicon-law" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.License}}
{{end}} {{end}} diff --git a/templates/package/metadata/conan.tmpl b/templates/package/metadata/conan.tmpl index 55892bb91..40bda555b 100644 --- a/templates/package/metadata/conan.tmpl +++ b/templates/package/metadata/conan.tmpl @@ -2,5 +2,5 @@ {{if .PackageDescriptor.Metadata.Author}}
{{svg "octicon-person" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.Author}}
{{end}} {{if .PackageDescriptor.Metadata.ProjectURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.details.project_site"}}
{{end}} {{if .PackageDescriptor.Metadata.License}}
{{svg "octicon-law" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.License}}
{{end}} - {{if .PackageDescriptor.Metadata.RepositoryURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.conan.details.repository"}}
{{end}} + {{if .PackageDescriptor.Metadata.RepositoryURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.details.repository_site"}}
{{end}} {{end}} diff --git a/templates/package/metadata/conda.tmpl b/templates/package/metadata/conda.tmpl index fb7c21286..f70e2b2a1 100644 --- a/templates/package/metadata/conda.tmpl +++ b/templates/package/metadata/conda.tmpl @@ -1,6 +1,6 @@ {{if eq .PackageDescriptor.Package.Type "conda"}} {{if .PackageDescriptor.Metadata.License}}
{{svg "octicon-law" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.License}}
{{end}} {{if .PackageDescriptor.Metadata.ProjectURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.details.project_site"}}
{{end}} - {{if .PackageDescriptor.Metadata.RepositoryURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.conda.details.repository_site"}}
{{end}} - {{if .PackageDescriptor.Metadata.DocumentationURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.conda.details.documentation_site"}}
{{end}} + {{if .PackageDescriptor.Metadata.RepositoryURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.details.repository_site"}}
{{end}} + {{if .PackageDescriptor.Metadata.DocumentationURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.details.documentation_site"}}
{{end}} {{end}} diff --git a/templates/package/metadata/nuget.tmpl b/templates/package/metadata/nuget.tmpl index 48c8d602d..f25e1c3b6 100644 --- a/templates/package/metadata/nuget.tmpl +++ b/templates/package/metadata/nuget.tmpl @@ -1,4 +1,5 @@ {{if eq .PackageDescriptor.Package.Type "nuget"}} {{if .PackageDescriptor.Metadata.Authors}}
{{svg "octicon-person" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.Authors}}
{{end}} {{if .PackageDescriptor.Metadata.ProjectURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.details.project_site"}}
{{end}} + {{if .PackageDescriptor.Metadata.RepositoryURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.details.repository_site"}}
{{end}} {{end}} diff --git a/templates/package/metadata/swift.tmpl b/templates/package/metadata/swift.tmpl index 3df38e320..326ebe1a9 100644 --- a/templates/package/metadata/swift.tmpl +++ b/templates/package/metadata/swift.tmpl @@ -1,4 +1,4 @@ {{if eq .PackageDescriptor.Package.Type "swift"}} {{if .PackageDescriptor.Metadata.Author.String}}
{{svg "octicon-person" 16 "mr-3"}} {{.PackageDescriptor.Metadata.Author}}
{{end}} - {{if .PackageDescriptor.Metadata.RepositoryURL}}
{{svg "octicon-link-external" 16 "mr-3"}} {{ctx.Locale.Tr "packages.details.project_site"}}
{{end}} + {{if .PackageDescriptor.Metadata.RepositoryURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.details.repository_site"}}
{{end}} {{end}} diff --git a/templates/package/metadata/vagrant.tmpl b/templates/package/metadata/vagrant.tmpl index 62c50a0df..a92398a27 100644 --- a/templates/package/metadata/vagrant.tmpl +++ b/templates/package/metadata/vagrant.tmpl @@ -1,5 +1,5 @@ {{if eq .PackageDescriptor.Package.Type "vagrant"}} {{if .PackageDescriptor.Metadata.Author}}
{{svg "octicon-person" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.Author}}
{{end}} {{if .PackageDescriptor.Metadata.ProjectURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.details.project_site"}}
{{end}} - {{if .PackageDescriptor.Metadata.RepositoryURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.conan.details.repository"}}
{{end}} + {{if .PackageDescriptor.Metadata.RepositoryURL}}
{{svg "octicon-link-external" 16 "gt-mr-3"}} {{ctx.Locale.Tr "packages.details.repository_site"}}
{{end}} {{end}}