shell: Fix and update cockpit-jobs.

The cockpit_check_role function was called wrong and it was still
using jQuery Mobile markup for the button.  The table needs to be a
direct child of the "div.panel" to look right.  Hide the whole panel
when it is empty.

Fixes #817.