Hide the main menu div if there isn't any items for it. #3259
Refactor: Extract method
Refactor: Extract methods to before_filters
Refactor: Split method
Refactor: use the existing Issue#new_statuses_allowed_to method.
Fixed: no email notification on new project/version file added (#4966).
Fixes git annotate (#3832).
Adds hooks on login view (#4978).