gitlab-org--gitlab-foss/app/helpers
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
..
appearances_helper.rb
application_helper.rb
application_settings_helper.rb Support integration with Koding (online IDE) 2016-08-19 12:10:58 -07:00
auth_helper.rb
avatars_helper.rb
blob_helper.rb Move editor paths to helper 2016-08-19 16:17:14 +01:00
branches_helper.rb
broadcast_messages_helper.rb
button_helper.rb
ci_status_helper.rb Merge branch 'artifacts-from-ref-and-build-name' into 'master' 2016-08-30 18:03:16 +00:00
commits_helper.rb
compare_helper.rb
dashboard_helper.rb
diff_helper.rb
dropdowns_helper.rb
emails_helper.rb
events_helper.rb
explore_helper.rb
external_wiki_helper.rb
form_helper.rb
git_helper.rb
gitlab_markdown_helper.rb
gitlab_routing_helper.rb Path could also have slashes! Feedback: 2016-08-24 16:02:56 +08:00
graph_helper.rb
groups_helper.rb
icons_helper.rb
import_helper.rb
issuables_helper.rb Changed tests to use JS tests 2016-08-19 15:27:18 +01:00
issues_helper.rb
javascript_helper.rb
kerberos_spnego_helper.rb
labels_helper.rb
lfs_helper.rb
members_helper.rb
merge_requests_helper.rb User can edit closed MR with deleted fork 2016-08-30 13:05:40 +02:00
milestones_helper.rb
namespaces_helper.rb
nav_helper.rb
notes_helper.rb
notifications_helper.rb
page_layout_helper.rb
preferences_helper.rb
projects_helper.rb Show "Create Merge Request" widget for push events to fork projects on the source project 2016-08-24 18:54:26 +02:00
runners_helper.rb
search_helper.rb Fix markdown help references 2016-08-26 09:38:21 -05:00
selects_helper.rb
sentry_helper.rb Add Sentry logging to API calls 2016-08-24 12:09:51 -07:00
services_helper.rb
snippets_helper.rb
sorting_helper.rb
submodule_helper.rb
tab_helper.rb
tags_helper.rb
time_helper.rb
todos_helper.rb
tree_helper.rb
triggers_helper.rb
u2f_helper.rb
version_check_helper.rb
visibility_level_helper.rb
workhorse_helper.rb