diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2016-06-20 19:10:47 +0000 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2016-06-20 19:10:47 +0000 |
commit | d5bbc86094d2d1ecb851cd0982a10a6f6997b435 (patch) | |
tree | 162bfa9cc2da0737e9b3a7e0454d0524845965da /app/helpers | |
parent | 503bbcc3e7ce387e3f21ee0750d97ed749916dad (diff) | |
parent | f112e2a1da696905e994bf5c37c10a950779b1a9 (diff) | |
download | gitlab-ce-d5bbc86094d2d1ecb851cd0982a10a6f6997b435.tar.gz |
Merge branch 'async-refs-dropdown' into 'master'
Refs dropdown is now loaded async
## What does this MR do?
The refs dropdown is loaded async so not to block the page.
## What are the relevant issue numbers?
Part of #18202
## Screenshots (if relevant)
![Screen_Shot_2016-06-07_at_14.41.21](/uploads/8fea12655f96fe7f7008a32677bff037/Screen_Shot_2016-06-07_at_14.41.21.png)
See merge request !4508
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 439b015b3b8..82421d74de9 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -101,22 +101,6 @@ module ApplicationHelper 'Never' end - def grouped_options_refs - repository = @project.repository - - options = [ - ['Branches', repository.branch_names], - ['Tags', VersionSorter.rsort(repository.tag_names)] - ] - - # If reference is commit id - we should add it to branch/tag selectbox - if @ref && !options.flatten.include?(@ref) && @ref =~ /\A[0-9a-zA-Z]{6,52}\z/ - options << ['Commit', [@ref]] - end - - grouped_options_for_select(options, @ref || @project.default_branch) - end - # Define whenever show last push event # with suggestion to create MR def show_last_push_widget?(event) |