From 3cd54562f415ff20d024489eb64923d0726f5c1a Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 11 2018 15:58:13 +0000 Subject: Small simplification of the JS code Signed-off-by: Pierre-Yves Chibon --- diff --git a/template/repo_info.html b/template/repo_info.html index a870625..b584337 100644 --- a/template/repo_info.html +++ b/template/repo_info.html @@ -379,9 +379,8 @@ $(document).ready(function() { $( "#pkgdescription" ).text(res['description']); if (res['url']){ var _p = $('.projectinfo'); - $('.projectinfo').html( - _p.html() - + ' (upstream)') } } @@ -509,7 +508,9 @@ $(function() { }); {% endif %} + {% if repo.is_fork %} disable_branches(); + {% endif %} });