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 Improve performance of MR show page 2016-08-18 19:08:59 -05:00
application_helper.rb Initial issue boards UI 2016-08-17 17:12:47 +01:00
application_settings_helper.rb Support integration with Koding (online IDE) 2016-08-19 12:10:58 -07:00
auth_helper.rb
avatars_helper.rb Merge branch '20059-environment-list' into 'master' 2016-08-12 17:00:16 +00:00
blob_helper.rb Move editor paths to helper 2016-08-19 16:17:14 +01:00
branches_helper.rb implements the basic filter functionality 2016-07-19 19:30:10 +01:00
broadcast_messages_helper.rb
button_helper.rb Display tooltip for "Copy to Clipboard" button (!5164) 2016-07-11 14:20:48 +02:00
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 Eliminate unneeded calls to Repository#blob_at when listing commits with no path 2016-08-17 17:07:08 +02:00
compare_helper.rb
dashboard_helper.rb
diff_helper.rb Avoid commit lookup on diff_helper 2016-08-10 13:09:07 +02:00
dropdowns_helper.rb Revert "Revert "Merge branch 'issue_3946' into 'master' "" 2016-07-07 23:48:02 -04:00
emails_helper.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
events_helper.rb
explore_helper.rb Enable Style/SpaceAroundEqualsInParameterDefault cop 2016-08-06 04:03:01 +02:00
external_wiki_helper.rb speed up ExternalWikiService#get_project_wiki_path 2016-07-19 09:06:58 -04:00
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 Award tooltips refer to current user as "You" 2016-08-17 21:25:39 +01:00
javascript_helper.rb Revert Subresource Integrity pending a fix for Firefox's incorrect hashing implementation. 2016-06-27 07:47:33 -06:00
kerberos_spnego_helper.rb Groundwork for Kerberos SPNEGO (EE feature) 2016-07-01 11:46:56 +02:00
labels_helper.rb
lfs_helper.rb Rename lfs_enabled helper method 2016-08-10 16:48:21 +02:00
members_helper.rb Show member roles to all users on members page 2016-08-11 11:08:07 -05:00
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 Added routes for conflicts in merge requests page. 2016-08-12 23:24:41 +03:00
notes_helper.rb Store discussion_id on Note for faster discussion lookup. 2016-08-17 12:16:46 -05:00
notifications_helper.rb merge master into issue_3359_3 2016-06-29 11:04:18 -03:00
page_layout_helper.rb Enable Style/SpaceAfterComma Rubocop cop 2016-06-29 15:23:44 +02:00
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 Allow skipping users in autocomplete 2016-07-27 14:10:49 +01:00
sentry_helper.rb Add Sentry logging to API calls 2016-08-24 12:09:51 -07:00
services_helper.rb Refactor service settings view 2016-07-20 12:11:37 -03:00
snippets_helper.rb
sorting_helper.rb Restore `Largest repository` sort option on admin projects page 2016-08-15 16:01:23 -05:00
submodule_helper.rb
tab_helper.rb
tags_helper.rb
time_helper.rb Cleanup the use of duration and optimize some queries 2016-08-10 23:12:02 +08:00
todos_helper.rb Recover usage of Todos counter cache 2016-08-12 18:21:36 +02:00
tree_helper.rb Update tree view to sort folders with submodules 2016-08-09 14:08:47 +01:00
triggers_helper.rb
u2f_helper.rb Load Javascript U2F library selectively. 2016-07-14 08:19:09 +05:30
version_check_helper.rb
visibility_level_helper.rb
workhorse_helper.rb Merge branch 'send-entry-via-Gitlab-Workhorse-Send-Data' into 'master' 2016-07-11 16:18:37 +00:00