gitlab-org--gitlab-foss/app/views
Douwe Maan 51087cfa1a Merge branch 'artifacts-from-ref-and-build-name' into 'master'
Add a download buttons for Build Artifacts

## What does this MR do?
This MR adds a download buttons for build artifacts of latest succesful pipeline in:
- dashboard of project,
- branches and tags views,
- and tree viewer

Implement #4255

## What are the relevant issue numbers?

Closes #4255, Closes #14419

## Screenshots

### Project main

![](/uploads/29ee2154a214416059a875f2715d4fa3/Screen_Shot_2016-08-24_at_8.00.31_PM.png)

### Branches

![](/uploads/9220c593288370986fbc1d42a1425ef7/Screen_Shot_2016-08-24_at_8.02.01_PM.png)

### Tags

![](/uploads/a843e8103221fea475a0cf9d62a1999d/Screen_Shot_2016-08-24_at_8.03.32_PM.png)

### Source Tree

![](/uploads/63cd3c8c91b6f427c166dc90d8e3c059/Screen_Shot_2016-08-24_at_8.04.56_PM.png)

## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [x] Download buttons
- [x] Models
- [x] Routes
- [x] Projects::ArtifactsController
- [x] API
- Tests
  - Rails
      - [x] Project#builds_for
      - [x] branch name with slashes
      - [x] only success builds
      - [x] only latest builds
      - [x] feature tests for download buttons
  - API
      - [x] branch name with slashes
      - [x] only success builds
      - [x] only latest builds
  - [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)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !5142
2016-08-30 18:03:16 +00:00
..
abuse_report_mailer
abuse_reports
admin Fix markdown help references 2016-08-26 09:38:21 -05:00
award_emoji
ci/lints Add title to CI lint page 2016-08-30 13:28:24 +02:00
dashboard Merge branch 'issue_18135' into 'master' 2016-08-19 23:06:30 +00:00
devise
discussions Fix bug where notes weren’t shown in discussion when the code had changed after creation 2016-08-19 12:38:40 -05:00
doorkeeper
email_rejection_mailer
emojis
errors
events
explore Fix groups sort dropdown alignment 2016-08-25 10:16:07 -05:00
groups change from members using size to start using total_count in the group 2016-08-24 09:03:25 +01:00
help Fix markdown help references 2016-08-26 09:38:21 -05:00
import Remove gitorious 2016-08-25 10:10:10 +01:00
invites
issues
kaminari/gitlab
koding Remove documentation rendering from /koding for now 2016-08-22 17:36:04 +03:00
layouts Support integration with Koding (online IDE) 2016-08-19 12:10:58 -07:00
notify Improve performance of MR show page 2016-08-18 19:08:59 -05:00
profiles Merge branch '2fa-check-git-http' into 'master' 2016-08-18 23:18:58 +00:00
projects Merge branch 'artifacts-from-ref-and-build-name' into 'master' 2016-08-30 18:03:16 +00:00
repository_check_mailer
search
shared Merge branch '21520-created-pipeline' into 'master' 2016-08-30 18:01:41 +00:00
sherlock
snippets
u2f Address review comments from @smcgivern. 2016-08-18 22:12:02 +05:30
users