diff --git a/changelogs/unreleased/btn-default-lock-unlock.yml b/changelogs/unreleased/btn-default-lock-unlock.yml new file mode 100644 index 0000000000000000000000000000000000000000..786ad6a6bb32183d1c4c72611c1aa300dfde811d --- /dev/null +++ b/changelogs/unreleased/btn-default-lock-unlock.yml @@ -0,0 +1,5 @@ +--- +title: Add btn-default class for unlock button in locked files page +merge_request: 52858 +author: Yogi (@yo) +type: other diff --git a/ee/app/views/projects/path_locks/_path_lock.html.haml b/ee/app/views/projects/path_locks/_path_lock.html.haml index 4ef1b0bbcdbbde98748beb75b26bec0911e166f7..9126da4db0e0821bc958675141fc72a626267cc7 100644 --- a/ee/app/views/projects/path_locks/_path_lock.html.haml +++ b/ee/app/views/projects/path_locks/_path_lock.html.haml @@ -6,7 +6,7 @@ .controls - if can_unlock?(path_lock) - = link_to project_path_lock_path(@project, path_lock), class: 'btn gl-button', title: _("Unlock"), method: :delete, data: { confirm: _("Are you sure you want to unlock %{path_lock_path}?") % { path_lock_path: path_lock.path }, container: 'body', qa_selector: 'unlock_button' }, remote: true do + = link_to project_path_lock_path(@project, path_lock), class: 'btn gl-button btn-default', title: _("Unlock"), method: :delete, data: { confirm: _("Are you sure you want to unlock %{path_lock_path}?") % { path_lock_path: path_lock.path }, container: 'body', qa_selector: 'unlock_button' }, remote: true do = _('Unlock') = _("locked by %{path_lock_user_name} %{created_at}").html_safe % { path_lock_user_name: path_lock.user.name, created_at: time_ago_with_tooltip(path_lock.created_at) }