| |
@@ -379,9 +379,8 @@
|
| |
$( "#pkgdescription" ).text(res['description']);
|
| |
if (res['url']){
|
| |
var _p = $('.projectinfo');
|
| |
- $('.projectinfo').html(
|
| |
- _p.html()
|
| |
- + ' (<a target="_blank" rel="noopener noreferrer" href="'
|
| |
+ $('.projectinfo').append(
|
| |
+ ' (<a target="_blank" rel="noopener noreferrer" href="'
|
| |
+ res['url'] + '"a>upstream</a>)')
|
| |
}
|
| |
}
|
| |
@@ -399,6 +398,13 @@
|
| |
branch = res.results[branch];
|
| |
var _it = $('#branch-' + branch.name);
|
| |
_it.addClass('disabled_branch');
|
| |
+ if (branch.name == 'master') {
|
| |
+ var _t = $('.projectinfo');
|
| |
+ html = ' \
|
| |
+ <div class="small label label-sm label-danger" data-toggle="tooltip" \
|
| |
+ title="This package has been retired">Retired on Fedora</div>';
|
| |
+ _t.append(html);
|
| |
+ }
|
| |
}
|
| |
if (res.next){
|
| |
get_branches(res.next);
|
| |
@@ -502,7 +508,9 @@
|
| |
});
|
| |
{% endif %}
|
| |
|
| |
+ {% if repo.is_fork %}
|
| |
disable_branches();
|
| |
+ {% endif %}
|
| |
|
| |
});
|
| |
</script>
|
| |
Fixes https://pagure.io/pagure-dist-git/issue/42
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr