gitlab-org--gitlab-foss/spec/lib
Douwe Maan ae63f152c3 Merge branch 'feature/svg-badge-template' into 'master'
Use badge image template instead of using separate images

## What does this MR do?

Makes it possible to use template for badge instead of having multiple files.

## Are there points in the code the reviewer needs to double check?

We also have a deprecated badge in `controllers/ci/projects_controller.rb`.  We decided to leave it until 9.0, so we still have images in `public/ci/` until 9.0.

## Why was this MR needed?

We are going to implement build coverage badge, and we do not want to store 101 SVG images for each percentage value.

## What are the relevant issue numbers?

#3714

## Screenshots (if relevant)

![new_build_badge](/uploads/f1d4ed5e34278eb01f48994b5b0579f1/new_build_badge.png)

## Does this MR meet the acceptance criteria?

- [ ] ~~[CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added~~ (refactoring)
- [ ] ~~[Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)~~
- [ ] ~~API support added~~
- Tests
  - [x] Added for this feature/bug
  - [x] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [ ] ~~[Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)~~ (refactoring)

See merge request !5520
2016-08-10 16:52:56 +00:00
..
banzai Merge branch 'relative-link-filter-ref' into 'master' 2016-08-09 21:45:59 +00:00
ci
container_registry
gitlab Merge branch 'feature/svg-badge-template' into 'master' 2016-08-10 16:52:56 +00:00
json_web_token
disable_email_interceptor_spec.rb
extracts_path_spec.rb
file_size_validator_spec.rb
git_ref_validator_spec.rb
gitlab_spec.rb
repository_cache_spec.rb