Nice work there. It seems to be working fine except a few suggestions:
1) Fix pep8 issues
2) DOM Statements like below can be avoided and html can be added directly to main template of $el instead of adding extra operations of find, prepend and append. Plus, it makes it difficult to understand what will the DOM look like.
Please find an updated patch attached with the above issues fixed. The pep8 issue was in the test, I didn't re-check pep8 after writing the test - my bad.
4) I may be wrong, but I'm seeing the flash icon for view/edit data queries and view table icon for query tool queries. Looks like they are swapped.
They seem to be in the right place for me, would you mind rechecking?