Avoid CE -> EE conflicts in app/views/layouts/nav/sidebar/_group.html.haml and app/views/shared/issuable/_nav.html.haml
app/views/layouts/nav/sidebar/_group.html.haml
We can include a partial for epics instead as part of https://gitlab.com/gitlab-org/gitlab-ee/issues/3731.
This should:
- Return early (before executing any queries) if Epics are not allowed.
- End up with the only change to the shared file being the inclusion of the partial.
app/views/shared/issuable/_nav.html.haml
This is trickier. From a quick look, I think the best option might be to have completely separate partials for issues, MRs, and epics. This would involve some duplication, though.
The other option is to just create an entirely new partial for epics.