This unclutters project pages.
Fixes #390.
2CFO2MHSLCE4SKY5N3ROLIOBEQAFR6WRYLGGJ5AP3HZVDEC6YGWAC
AJVCB6K6HUX44WYO7PQGKCK6BMEYDYPCN4HYEFBYGATCVJO7BN3QC
ZB3JV52WEKVFX4XGSQUX6PCM4XGF62MCQRZAAOKNK4JNGYO2P7QAC
34O5UJ63CP5D5F2GP7HYN77UVEMLP2GR2G7VUZ4DK6SS5HUPB2AQC
FPK5LF53CFUEKFYJ3IYXT4UTVC6IITWJOCFATMC4PLHEUP5SIEAAC
IK53RV4VGOHLCZGQCCIKPB45M3C7M7YMNBOJFBGZJ4LWIZNU4QNQC
JY7BXXOP3EZCDT5RSMVE4Y6IECXGYL4GEBJOZHR7H3Z35XZ3NIVQC
3PNG7NIBQQURUUPRVQXYL342OT7JUUYOMY2JJNP6YDX7SYJDZMYAC
7YBYT2LQML2PKEO6UO4444AGSASS664UCDXW2YO3ALB7THQHCEBQC
PZL3SZM3U3BYJX2RGYXC6NMBG7WQHFWHSYDYXZ7Q5VZA3EDYVPIQC
MCCHPWHEYMTTECCT7YT5W7DVYIZKZRRKFMGWTA2C33CTPUFY4PFQC
SBMOICGVH2B2FBFHL2D767XC4LC2Y6SF4TYGY3I6TSNMLYV27GUQC
J5UVLXOK6EDIL5I7VKWH4V2QDS4DPD7FHRK6XBWSXFRQS4JKXFZQC
<script type="text/javascript">
$(document).ready(function() {
$('#show-hidden').on('click', function (e) {
var show = !$(this).hasClass('active');
if (show)
$('tr.hidden-jobset').show();
else
$('tr.hidden-jobset').hide();
});
$('#show-disabled').on('click', function (e) {
var show = !$(this).hasClass('active');
if (show)
$('tr.disabled-jobset').show();
else
$('tr.disabled-jobset').hide();
});
});
</script>
<p>This project has the following jobsets:</p>
<p>This project has the following jobsets:
<button id="show-disabled" type="button" class="btn btn-small pull-right active" data-toggle="button">Show disabled jobsets</button>
[% IF isProjectOwner %]
<button id="show-hidden" type="button" class="btn btn-small pull-right" data-toggle="button">Show hidden jobsets</button>
[% END %]
</p>