From 47c0d8bcb7a087efe7d3b2af9d72bbbdb9a4e4f5 Mon Sep 17 00:00:00 2001 From: Sundeep Anand Date: Mar 29 2024 09:43:49 +0000 Subject: Update pagure/themes/srcfpo/templates/repo_info.html Restore translation status button in src.fedoraproject.org/rpms. --- diff --git a/pagure/themes/srcfpo/templates/repo_info.html b/pagure/themes/srcfpo/templates/repo_info.html index da798d7..0d68171 100644 --- a/pagure/themes/srcfpo/templates/repo_info.html +++ b/pagure/themes/srcfpo/templates/repo_info.html @@ -545,16 +545,16 @@ $(document).ready(function() { }); $.ajax({ - url: 'https://transtats.fedoraproject.org/api/package/{{ repo.name }}/exist?format=json', - type: 'GET', - dataType: 'json', - success: function(res){ - console.log(res); - if (res['{{ repo.name }}']) { - $("#transtats").html("
"); - } - } - }); + url: 'https://transtats.fedoraproject.org/api/package/' + repo.name + '/exist?format=json', + type: 'GET', + dataType: 'json', + success: function(res){ + console.log(res); + if (res[repo.name]) { + $("#transtats").html("
"); + } + } + }); {% endif %} });