From c6a896e6dcd3fa91a42e01735025e32e2d63de92 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 21 2019 13:24:08 +0000 Subject: Include the package's update information in their info page Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/static/pagure.css b/pagure/static/pagure.css index 0f36c45..63c7568 100644 --- a/pagure/static/pagure.css +++ b/pagure/static/pagure.css @@ -468,6 +468,11 @@ th[data-sort] { text-align:right; } +.text-align-left { + text-align:left; +} + + .center { text-align:center; } diff --git a/pagure/themes/srcfpo/templates/repo_info.html b/pagure/themes/srcfpo/templates/repo_info.html index 32a0668..151fa49 100644 --- a/pagure/themes/srcfpo/templates/repo_info.html +++ b/pagure/themes/srcfpo/templates/repo_info.html @@ -370,6 +370,14 @@ {% endif %} + {% if repo.namespace == 'rpms' %} +
+
+ +
+
+ {% endif %} + {% if g.authenticated and g.repo_committer and not repo.is_fork and not repo.settings.get('pull_requests', True) and not readme %}
@@ -497,6 +505,20 @@ $(document).ready(function() { } } }); + + + $.ajax({ + url: "{{ url_for('distgit_ns.bodhi_updates_endpoint', repo=repo.name, namespace=repo.namespace, html=1) }}", + type: 'GET', + dataType: 'html', + success: function(res) { + $("#bodhi_updates").html(res); + }, + error: function(res) { + console.log(res); + $("#bodhi_updates").html("

Failed to retrieve updates from bodhi

"); + } + }); {% endif %} });