ae63f152c3
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 |
||
---|---|---|
.. | ||
backend | ||
badge | ||
bitbucket_import | ||
ci | ||
database | ||
diff | ||
downtime_check | ||
fogbugz_import | ||
gfm | ||
git | ||
github_import | ||
gitlab_import | ||
gitorious_import | ||
google_code_import | ||
graphs | ||
import_export | ||
ldap | ||
metrics | ||
middleware | ||
o_auth | ||
saml | ||
sanitizers | ||
sherlock | ||
sql | ||
template | ||
akismet_helper_spec.rb | ||
asciidoc_spec.rb | ||
auth_spec.rb | ||
award_emoji_spec.rb | ||
blame_spec.rb | ||
build_data_builder_spec.rb | ||
closing_issue_extractor_spec.rb | ||
color_schemes_spec.rb | ||
current_settings_spec.rb | ||
database_spec.rb | ||
downtime_check_spec.rb | ||
exclusive_lease_spec.rb | ||
git_access_spec.rb | ||
git_access_wiki_spec.rb | ||
highlight_spec.rb | ||
incoming_email_spec.rb | ||
key_fingerprint_spec.rb | ||
lazy_spec.rb | ||
markup_helper_spec.rb | ||
metrics_spec.rb | ||
note_data_builder_spec.rb | ||
popen_spec.rb | ||
project_search_results_spec.rb | ||
push_data_builder_spec.rb | ||
redis_spec.rb | ||
reference_extractor_spec.rb | ||
regex_spec.rb | ||
search_results_spec.rb | ||
snippet_search_results_spec.rb | ||
themes_spec.rb | ||
upgrader_spec.rb | ||
uploads_transfer_spec.rb | ||
url_builder_spec.rb | ||
url_sanitizer_spec.rb | ||
user_access_spec.rb | ||
version_info_spec.rb | ||
workhorse_spec.rb |