Description of problem: The page with builds like [1] is unusable without allowing 3rd party javascript and javascript is only used to show information like [2]. Either this information can be simply showed directly on the page using html or all javascript should be hosted on copr itself. [1] http://copr.fedoraproject.org/coprs/plautrba/openssh_vanilla/builds/ [2] Results: http://copr-be.cloud.fedoraproject.org/results/plautrba/openssh_vanilla/ Package URLs: http://plautrba.fedorapeople.org/openssh/openssh-6.6p1-1.fc21.src.rpm
I do not plan getting rid of JavaScript. Maybe opposite - add more (welcome to 21th century :). I will not refer to 3rd party file once bug 1078371 is resolved and jquery is packaged for Fedora.
Why don't you just remove "display: none;" for the details class and hide it using javascript? All the data are already downloaded by browser anyway.
Patches are welcome.
I'm not really familiar with javascript but something like this could work: copr.css: table.builds-table tr.details { width: 100%; } copr.js: //hide build details $(document).ready(function () { $("table.builds-table tr.details").hide(); }); // showing build details $(document).ready(function () { $("table.builds-table tr[class^='build-']").each(function (i, e) { $(this).click(function() { $("table.builds-table tr.details").hide(); $(this).next().show(); }); }); });
ping. Are there any objections to the proposed solution?
It works. Thanks. Commited as 00d5f77.
Code deployed to copr.fedoraproject.org