gitlab-org--gitlab-foss/app/views/projects/issues
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
..
_closed_by_box.html.haml
_discussion.html.haml Fixed alignment of buttons in note forms 2016-06-17 11:43:59 +01:00
_form.html.haml
_head.html.haml Add horizontal scrolling to all sub-navs on mobile viewports 2016-08-25 18:01:37 -05:00
_issue.html.haml Address feedback 2016-06-03 17:14:23 -05:00
_issue_by_email.html.haml Merge some repeated codes to the partial 2016-07-27 18:07:11 +08:00
_issues.html.haml
_merge_requests.html.haml Only show issues closing MR when present 2016-06-10 14:17:10 +01:00
_new_branch.html.haml Add green outline to New Branch button (!5447) 2016-07-23 02:35:43 +02:00
_related_branches.html.haml Reverse ref and sha in args and rename pipeline to pipeline_for 2016-08-11 17:26:04 +08:00
edit.html.haml Remove header title from project pages 2016-05-26 17:58:44 +02:00
index.atom.builder Don't try to count a relation with aliases 2016-06-10 14:29:08 +01:00
index.html.haml State specific default sort order for issuables 2016-08-01 11:28:56 +02:00
new.html.haml Remove header title from project pages 2016-05-26 17:58:44 +02:00
show.html.haml Merge branch 'fix-button-missing-type' into 'master' 2016-08-19 14:02:22 +00:00