diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 09:16:11 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 09:16:11 +0000 |
commit | edaa33dee2ff2f7ea3fac488d41558eb5f86d68c (patch) | |
tree | 11f143effbfeba52329fb7afbd05e6e2a3790241 /app/helpers/issues_helper.rb | |
parent | d8a5691316400a0f7ec4f83832698f1988eb27c1 (diff) | |
download | gitlab-ce-edaa33dee2ff2f7ea3fac488d41558eb5f86d68c.tar.gz |
Add latest changes from gitlab-org/gitlab@14-7-stable-eev14.7.0-rc42
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r-- | app/helpers/issues_helper.rb | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index cddf740a0e6..5aa2aca37f3 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -7,7 +7,7 @@ module IssuesHelper classes = ["issue"] classes << "closed" if issue.closed? classes << "today" if issue.new? - classes << "user-can-drag" if @sort == 'relative_position' + classes << "gl-cursor-grab" if @sort == 'relative_position' classes.join(' ') end @@ -51,7 +51,7 @@ module IssuesHelper end def work_item_type_icon(issue_type) - if WorkItem::Type.base_types.include?(issue_type) + if WorkItems::Type.base_types.include?(issue_type) "issue-type-#{issue_type.to_s.dasherize}" else 'issue-type-issue' @@ -168,21 +168,6 @@ module IssuesHelper issue.moved_from.project.service_desk_enabled? && !issue.project.service_desk_enabled? end - def use_startup_call? - request.query_parameters.empty? && @sort == 'created_date' - end - - def startup_call_params - { - state: 'opened', - with_labels_details: 'true', - page: 1, - per_page: 20, - order_by: 'created_at', - sort: 'desc' - } - end - def issue_header_actions_data(project, issuable, current_user) new_issuable_params = { issue: { description: _('Related to #%{issue_id}.') % { issue_id: issuable.iid } + "\n\n" } } if issuable.incident? |