Moved issue legend to the AJAX-refreshed sidebar tpl

[Issue #52]