From de66cf71e8b8a895d9676e81232d88ace3400729 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Fri, 8 Nov 2019 17:52:00 +0300 Subject: [PATCH] In admin mode, display more information on used name fields (repology/repology-updater#944) --- repologyapp/templates/repositories-fields.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/repologyapp/templates/repositories-fields.html b/repologyapp/templates/repositories-fields.html index 2dedcab8..ed46b94f 100644 --- a/repologyapp/templates/repositories-fields.html +++ b/repologyapp/templates/repositories-fields.html @@ -26,6 +26,15 @@ Homepage License Downloads + {% if session.admin %} + N + BN + KN + TN + RNG + RNS + RNB + {% endif %} @@ -41,6 +50,15 @@ {% if 'homepage' in repometadata[reponame].used_package_fields %}✔{% else %}{% endif %} {% if 'licenses' in repometadata[reponame].used_package_fields %}✔{% endif %} {% if 'downloads' in repometadata[reponame].used_package_fields %}✔{% endif %} + {% if session.admin %} + {% if 'name' in repometadata[reponame].used_package_fields %}{% endif %} + {% if 'basename' in repometadata[reponame].used_package_fields %}{% endif %} + {% if 'keyname' in repometadata[reponame].used_package_fields %}{% endif %} + {% if 'trackname' in repometadata[reponame].used_package_fields %}✔{% else %}{% endif %} + {% if 'refname_generic' in repometadata[reponame].used_package_fields %}✔{% endif %} + {% if 'refname_source' in repometadata[reponame].used_package_fields %}✔{% endif %} + {% if 'refname_binary' in repometadata[reponame].used_package_fields %}✔{% endif %} + {% endif %} {% endfor %}