diff --git a/roles/copr/backend/templates/lighttpd/dir-generator.php.j2 b/roles/copr/backend/templates/lighttpd/dir-generator.php.j2 index f70047015b..1f7fc0bd85 100755 --- a/roles/copr/backend/templates/lighttpd/dir-generator.php.j2 +++ b/roles/copr/backend/templates/lighttpd/dir-generator.php.j2 @@ -260,6 +260,7 @@ foreach($filelist as $file) { $frontend_baseurl = '{{ frontend_base_url }}'; +$pulp_baseurl = '{{ pulp_content_url }}'; $path = explode('/', $_SERVER['REQUEST_URI']); if (count($path) >= 7) { $owner = preg_replace('/^(@|%40)(.*)$/', 'g/$2', $path[2]); @@ -267,14 +268,20 @@ if (count($path) >= 7) { $buildid = ltrim(explode('-', $path[5])[0], '0'); $frontend_url = implode('/', [$frontend_baseurl, 'coprs', $owner, $project, 'build', $buildid]); $frontend_url_text = 'Go to COPR frontend build'; + $pulp_url = implode('/', [$pulp_baseurl, $owner, $project]); + $pulp_url_text = 'Go to Pulp results for this project'; } else if (count($path) >= 5) { $owner = preg_replace('/^(@|%40)(.*)$/', 'g/$2', $path[2]); $project = $path[3]; $frontend_url = implode('/', [$frontend_baseurl, 'coprs', $owner, $project]); $frontend_url_text = 'Go to COPR frontend project'; + $pulp_url = implode('/', [$pulp_baseurl, $owner, $project]); + $pulp_url_text = 'Go to Pulp results for this project'; } else { $frontend_url = $frontend_baseurl; $frontend_url_text = 'Go to COPR frontend'; + $pulp_url = $pulp_baseurl; + $pulp_url_text = 'Go to Pulp'; } // Print ending stuff @@ -282,7 +289,10 @@ print "