Commit bb334986 authored by Jose Vargas's avatar Jose Vargas Committed by Adrien Kohlbecker

Add expand_runners variable

This allows the corresponding settings section to remain
uncollapsed
parent 0fd3a912
......@@ -17,7 +17,7 @@
%h4.underlined-title= _('Runners activated for this project')
%ul.bordered-list.activated-specific-runners
= render partial: 'projects/runners/runner', collection: @project_runners, as: :runner
= paginate @project_runners, theme: "gitlab", :params => { :anchor => '#js-runners-settings' }
= paginate @project_runners, theme: "gitlab", params: { expand_runners: true, anchor: '#js-runners-settings' }
- if @assignable_runners.any?
%h4.underlined-title= _('Available specific runners')
......
......@@ -33,7 +33,7 @@
= render_if_exists 'projects/settings/ci_cd/protected_environments', expanded: expanded
%section.settings.no-animate#js-runners-settings{ class: ('expanded' if expanded), data: { qa_selector: 'runners_settings_content' } }
%section.settings.no-animate#js-runners-settings{ class: ('expanded' if expanded || params[:expand_runners]), data: { qa_selector: 'runners_settings_content' } }
.settings-header
%h4
= _("Runners")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment