Dont allow upload of non-image formats for user avatar

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Fixed issue with `bundle exec rake routes` not running.

Wrap regex comments in (?#comment) construct.
Merge pull request #5922 from jhollingsworth/fix/rake-routes

Fixed issue with `bundle exec rake routes` not running.
Add User#avatar_type tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Confirmation url throttle.
Refactor UI boxes. Split issue box to different class

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Use new ui-box classes

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Merge branch 'confirmation_protection' of /home/git/repositories/gitlab/gitlabhq
Merge branch 'improve/avatar_upload_only_images' of /home/git/repositories/gitlab/gitlabhq
use .body instaed of .ui-box-body

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Show Assigned/Authored/All filter for dashboard issues and mr pages

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Merge branch 'refactor/scss' of /home/git/repositories/gitlab/gitlabhq
Add tests to Dashboard#merge_requests filter

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Tests for Dashboard#issues filter

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Merge branch 'feature/all_merge_requets' of /home/git/repositories/gitlab/gitlabhq
Include scope in dashboard filters

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Fix per-project counters for Dashboard filters

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Refactor FilterContext

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Improve dev fixtures

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Improve FilterContext tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>