Commit 4bf59948 authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch 'dz-combine-green-buttons' into 'master'

Unite green buttons under one css class

See merge request gitlab-org/gitlab-ce!21795
parents c6660e61 7f8a520f
...@@ -83,7 +83,7 @@ export default { ...@@ -83,7 +83,7 @@ export default {
right on the way to making the most of your board. right on the way to making the most of your board.
</p> </p>
<button <button
class="btn btn-create btn-inverted btn-block" class="btn btn-success btn-inverted btn-block"
type="button" type="button"
@click.stop="addDefaultLists"> @click.stop="addDefaultLists">
Add default lists Add default lists
......
...@@ -229,7 +229,7 @@ export default () => { ...@@ -229,7 +229,7 @@ export default () => {
template: ` template: `
<div class="board-extra-actions"> <div class="board-extra-actions">
<button <button
class="btn btn-create prepend-left-10" class="btn btn-success prepend-left-10"
type="button" type="button"
data-placement="bottom" data-placement="bottom"
ref="addIssuesButton" ref="addIssuesButton"
......
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
<div class="text-center"> <div class="text-center">
<a <a
:href="newBlobPath" :href="newBlobPath"
class="btn btn-save" class="btn btn-success"
> >
{{ __('Create commit') }} {{ __('Create commit') }}
</a> </a>
......
...@@ -35,7 +35,7 @@ code gets deployed, such as staging or production.`) }} ...@@ -35,7 +35,7 @@ code gets deployed, such as staging or production.`) }}
<a <a
v-if="canCreateEnvironment" v-if="canCreateEnvironment"
:href="newPath" :href="newPath"
class="btn btn-create js-new-environment-button" class="btn btn-success js-new-environment-button"
> >
{{ s__("Environments|New environment") }} {{ s__("Environments|New environment") }}
</a> </a>
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
> >
<a <a
:href="newEnvironmentPath" :href="newEnvironmentPath"
class="btn btn-create" class="btn btn-success"
> >
{{ s__("Environments|New environment") }} {{ s__("Environments|New environment") }}
</a> </a>
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<button <button
:class="{ disabled: formState.updateLoading || !isSubmitEnabled }" :class="{ disabled: formState.updateLoading || !isSubmitEnabled }"
:disabled="formState.updateLoading || !isSubmitEnabled" :disabled="formState.updateLoading || !isSubmitEnabled"
class="btn btn-save float-left" class="btn btn-success float-left"
type="submit" type="submit"
@click.prevent="updateIssuable"> @click.prevent="updateIssuable">
Save changes Save changes
......
...@@ -57,7 +57,7 @@ export default { ...@@ -57,7 +57,7 @@ export default {
actions.push({ actions.push({
label: 'New issue', label: 'New issue',
path: this.job.new_issue_path, path: this.job.new_issue_path,
cssClass: 'js-new-issue btn btn-new btn-inverted d-none d-md-block d-lg-block d-xl-block', cssClass: 'js-new-issue btn btn-success btn-inverted d-none d-md-block d-lg-block d-xl-block',
type: 'link', type: 'link',
}); });
} }
......
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
<a <a
v-if="job.new_issue_path" v-if="job.new_issue_path"
:href="job.new_issue_path" :href="job.new_issue_path"
class="js-new-issue btn btn-new btn-inverted" class="js-new-issue btn btn-success btn-inverted"
> >
{{ __('New issue') }} {{ __('New issue') }}
</a> </a>
......
...@@ -374,7 +374,7 @@ js-gfm-input js-autosize markdown-area js-vue-textarea" ...@@ -374,7 +374,7 @@ js-gfm-input js-autosize markdown-area js-vue-textarea"
append-right-10 comment-type-dropdown js-comment-type-dropdown droplab-dropdown"> append-right-10 comment-type-dropdown js-comment-type-dropdown droplab-dropdown">
<button <button
:disabled="isSubmitButtonDisabled" :disabled="isSubmitButtonDisabled"
class="btn btn-create comment-btn js-comment-button js-comment-submit-button" class="btn btn-success comment-btn js-comment-button js-comment-submit-button"
type="submit" type="submit"
@click.prevent="handleSave()"> @click.prevent="handleSave()">
{{ __(commentButtonTitle) }} {{ __(commentButtonTitle) }}
......
...@@ -188,7 +188,7 @@ js-autosize markdown-area js-vue-issue-note-form js-vue-textarea" ...@@ -188,7 +188,7 @@ js-autosize markdown-area js-vue-issue-note-form js-vue-textarea"
<button <button
:disabled="isDisabled" :disabled="isDisabled"
type="button" type="button"
class="js-vue-issue-save btn btn-save js-comment-button " class="js-vue-issue-save btn btn-success js-comment-button "
@click="handleUpdate()"> @click="handleUpdate()">
{{ saveButtonTitle }} {{ saveButtonTitle }}
</button> </button>
......
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
<a <a
v-if="newPipelinePath" v-if="newPipelinePath"
:href="newPipelinePath" :href="newPipelinePath"
class="btn btn-create js-run-pipeline" class="btn btn-success js-run-pipeline"
> >
{{ s__('Pipelines|Run Pipeline') }} {{ s__('Pipelines|Run Pipeline') }}
</a> </a>
......
...@@ -37,7 +37,7 @@ export default { ...@@ -37,7 +37,7 @@ export default {
<a <a
v-if="mr.newBlobPath" v-if="mr.newBlobPath"
:href="mr.newBlobPath" :href="mr.newBlobPath"
class="btn btn-inverted btn-save"> class="btn btn-inverted btn-success">
Create file Create file
</a> </a>
</div> </div>
......
...@@ -147,18 +147,12 @@ ...@@ -147,18 +147,12 @@
} }
&.btn-success, &.btn-success,
&.btn-new,
&.btn-create,
&.btn-save,
&.btn-register { &.btn-register {
@include btn-green; @include btn-green;
} }
&.btn-inverted { &.btn-inverted {
&.btn-success, &.btn-success {
&.btn-new,
&.btn-create,
&.btn-save {
@include btn-outline($white-light, $green-600, $green-500, $green-500, $white-light, $green-600, $green-600, $green-700); @include btn-outline($white-light, $green-600, $green-500, $green-500, $white-light, $green-600, $green-600, $green-700);
} }
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
} }
} }
.snippet-scope-menu .btn-new { .snippet-scope-menu .btn-success {
margin-top: 15px; margin-top: 15px;
} }
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
&, &,
.dropdown, .dropdown,
.dropdown .dropdown-toggle, .dropdown .dropdown-toggle,
.btn-new { .btn-success {
display: block; display: block;
} }
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
.group-filter-form, .group-filter-form,
.dropdown .dropdown-toggle, .dropdown .dropdown-toggle,
.btn-new { .btn-success {
width: 100%; width: 100%;
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
} }
.users-project-form { .users-project-form {
.btn-create { .btn-success {
margin-right: 10px; margin-right: 10px;
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* Note Form * Note Form
*/ */
.comment-btn { .comment-btn {
@extend .btn-create; @extend .btn-success;
} }
.diff-file .diff-content { .diff-file .diff-content {
......
...@@ -218,7 +218,7 @@ input[type='checkbox']:hover { ...@@ -218,7 +218,7 @@ input[type='checkbox']:hover {
} }
.btn-search, .btn-search,
.btn-new { .btn-success {
width: 100%; width: 100%;
margin-top: 5px; margin-top: 5px;
......
...@@ -32,7 +32,7 @@ module ServicesHelper ...@@ -32,7 +32,7 @@ module ServicesHelper
end end
def service_save_button(service) def service_save_button(service)
button_tag(class: 'btn btn-save', type: 'submit', disabled: service.deprecated?) do button_tag(class: 'btn btn-success', type: 'submit', disabled: service.deprecated?) do
icon('spinner spin', class: 'hidden js-btn-spinner') + icon('spinner spin', class: 'hidden js-btn-spinner') +
content_tag(:span, 'Save changes', class: 'js-btn-label') content_tag(:span, 'Save changes', class: 'js-btn-label')
end end
......
...@@ -19,4 +19,4 @@ ...@@ -19,4 +19,4 @@
Explain the problem with this user. If appropriate, provide a link to the relevant issue or comment. Explain the problem with this user. If appropriate, provide a link to the relevant issue or comment.
.form-actions .form-actions
= f.submit "Send report", class: "btn btn-create" = f.submit "Send report", class: "btn btn-success"
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
Guidelines parsed with #{link_to "GitLab Flavored Markdown", help_page_path('user/markdown'), target: '_blank'}. Guidelines parsed with #{link_to "GitLab Flavored Markdown", help_page_path('user/markdown'), target: '_blank'}.
.form-actions .form-actions
= f.submit 'Save', class: 'btn btn-save append-right-10' = f.submit 'Save', class: 'btn btn-success append-right-10'
- if @appearance.persisted? - if @appearance.persisted?
Preview last save: Preview last save:
= link_to 'Sign-in page', preview_sign_in_admin_appearances_path, class: 'btn', target: '_blank', rel: 'noopener noreferrer' = link_to 'Sign-in page', preview_sign_in_admin_appearances_path, class: 'btn', target: '_blank', rel: 'noopener noreferrer'
......
...@@ -8,5 +8,5 @@ ...@@ -8,5 +8,5 @@
= label_tag :password = label_tag :password
= password_field_tag :password, nil, class: "form-control bottom", title: 'This field is required.' = password_field_tag :password, nil, class: "form-control bottom", title: 'This field is required.'
.form-group .form-group
= button_tag "Sign in", class: "btn-create btn" = button_tag "Sign in", class: "btn-success btn"
...@@ -33,5 +33,5 @@ ...@@ -33,5 +33,5 @@
= render 'shared/tokens/scopes_form', prefix: 'doorkeeper_application', token: application, scopes: @scopes = render 'shared/tokens/scopes_form', prefix: 'doorkeeper_application', token: application, scopes: @scopes
.form-actions .form-actions
= f.submit 'Submit', class: "btn btn-save wide" = f.submit 'Submit', class: "btn btn-success wide"
= link_to "Cancel", admin_applications_path, class: "btn btn-cancel" = link_to "Cancel", admin_applications_path, class: "btn btn-cancel"
...@@ -36,6 +36,6 @@ ...@@ -36,6 +36,6 @@
= f.datetime_select :ends_at, {}, class: 'form-control form-control-inline' = f.datetime_select :ends_at, {}, class: 'form-control form-control-inline'
.form-actions .form-actions
- if @broadcast_message.persisted? - if @broadcast_message.persisted?
= f.submit "Update broadcast message", class: "btn btn-create" = f.submit "Update broadcast message", class: "btn btn-success"
- else - else
= f.submit "Add broadcast message", class: "btn btn-create" = f.submit "Add broadcast message", class: "btn btn-success"
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
Projects: Projects:
= approximate_count_with_delimiters(@counts, Project) = approximate_count_with_delimiters(@counts, Project)
%hr %hr
= link_to('New project', new_project_path, class: "btn btn-new") = link_to('New project', new_project_path, class: "btn btn-success")
.col-sm-4 .col-sm-4
.info-well.dark-well .info-well.dark-well
.well-segment.well-centered .well-segment.well-centered
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
= approximate_count_with_delimiters(@counts, User) = approximate_count_with_delimiters(@counts, User)
= render_if_exists 'admin/dashboard/users_statistics' = render_if_exists 'admin/dashboard/users_statistics'
%hr %hr
= link_to 'New user', new_admin_user_path, class: "btn btn-new" = link_to 'New user', new_admin_user_path, class: "btn btn-success"
.col-sm-4 .col-sm-4
.info-well.dark-well .info-well.dark-well
.well-segment.well-centered .well-segment.well-centered
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
Groups: Groups:
= approximate_count_with_delimiters(@counts, Group) = approximate_count_with_delimiters(@counts, Group)
%hr %hr
= link_to 'New group', new_admin_group_path, class: "btn btn-new" = link_to 'New group', new_admin_group_path, class: "btn btn-success"
.row .row
.col-md-4 .col-md-4
.info-well .info-well
......
...@@ -6,5 +6,5 @@ ...@@ -6,5 +6,5 @@
= form_for [:admin, @deploy_key], html: { class: 'deploy-key-form' } do |f| = form_for [:admin, @deploy_key], html: { class: 'deploy-key-form' } do |f|
= render partial: 'shared/deploy_keys/form', locals: { form: f, deploy_key: @deploy_key } = render partial: 'shared/deploy_keys/form', locals: { form: f, deploy_key: @deploy_key }
.form-actions .form-actions
= f.submit 'Save changes', class: 'btn-save btn' = f.submit 'Save changes', class: 'btn-success btn'
= link_to 'Cancel', admin_deploy_keys_path, class: 'btn btn-cancel' = link_to 'Cancel', admin_deploy_keys_path, class: 'btn btn-cancel'
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
%h3.page-title.deploy-keys-title %h3.page-title.deploy-keys-title
Public deploy keys (#{@deploy_keys.count}) Public deploy keys (#{@deploy_keys.count})
.float-right .float-right
= link_to 'New deploy key', new_admin_deploy_key_path, class: 'btn btn-new btn-sm btn-inverted' = link_to 'New deploy key', new_admin_deploy_key_path, class: 'btn btn-success btn-sm btn-inverted'
- if @deploy_keys.any? - if @deploy_keys.any?
.table-holder.deploy-keys-list .table-holder.deploy-keys-list
......
...@@ -6,5 +6,5 @@ ...@@ -6,5 +6,5 @@
= form_for [:admin, @deploy_key], html: { class: 'deploy-key-form' } do |f| = form_for [:admin, @deploy_key], html: { class: 'deploy-key-form' } do |f|
= render partial: 'shared/deploy_keys/form', locals: { form: f, deploy_key: @deploy_key } = render partial: 'shared/deploy_keys/form', locals: { form: f, deploy_key: @deploy_key }
.form-actions .form-actions
= f.submit 'Create', class: 'btn-create btn' = f.submit 'Create', class: 'btn-success btn'
= link_to 'Cancel', admin_deploy_keys_path, class: 'btn btn-cancel' = link_to 'Cancel', admin_deploy_keys_path, class: 'btn btn-cancel'
...@@ -26,12 +26,12 @@ ...@@ -26,12 +26,12 @@
.alert.alert-info .alert.alert-info
= render 'shared/group_tips' = render 'shared/group_tips'
.form-actions .form-actions
= f.submit _('Create group'), class: "btn btn-create" = f.submit _('Create group'), class: "btn btn-success"
= link_to _('Cancel'), admin_groups_path, class: "btn btn-cancel" = link_to _('Cancel'), admin_groups_path, class: "btn btn-cancel"
- else - else
.form-actions .form-actions
= f.submit _('Save changes'), class: "btn btn-save" = f.submit _('Save changes'), class: "btn btn-success"
= link_to _('Cancel'), admin_group_path(@group), class: "btn btn-cancel" = link_to _('Cancel'), admin_group_path(@group), class: "btn btn-cancel"
= render_if_exists 'ldap_group_links/ldap_syncrhonizations', group: @group = render_if_exists 'ldap_group_links/ldap_syncrhonizations', group: @group
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
= search_field_tag :name, project_name, class: "form-control search-text-input js-search-input", autofocus: true, spellcheck: false, placeholder: 'Search by name' = search_field_tag :name, project_name, class: "form-control search-text-input js-search-input", autofocus: true, spellcheck: false, placeholder: 'Search by name'
= icon("search", class: "search-icon") = icon("search", class: "search-icon")
= render "shared/groups/dropdown", options_hash: admin_groups_sort_options_hash = render "shared/groups/dropdown", options_hash: admin_groups_sort_options_hash
= link_to new_admin_group_path, class: "btn btn-new" do = link_to new_admin_group_path, class: "btn btn-success" do
= _('New group') = _('New group')
%ul.content-list %ul.content-list
= render @groups = render @groups
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
.prepend-top-10 .prepend-top-10
= select_tag :access_level, options_for_select(GroupMember.access_level_roles), class: "project-access-select select2" = select_tag :access_level, options_for_select(GroupMember.access_level_roles), class: "project-access-select select2"
%hr %hr
= button_tag _('Add users to group'), class: "btn btn-create" = button_tag _('Add users to group'), class: "btn btn-success"
= render 'shared/members/requests', membership_source: @group, requesters: @requesters, force_mobile_view: true = render 'shared/members/requests', membership_source: @group, requesters: @requesters, force_mobile_view: true
.card .card
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
= form_for @hook, as: :hook, url: admin_hook_path do |f| = form_for @hook, as: :hook, url: admin_hook_path do |f|
= render partial: 'form', locals: { form: f, hook: @hook } = render partial: 'form', locals: { form: f, hook: @hook }
.form-actions .form-actions
= f.submit 'Save changes', class: 'btn btn-create' = f.submit 'Save changes', class: 'btn btn-success'
= render 'shared/web_hooks/test_button', triggers: SystemHook.triggers, hook: @hook = render 'shared/web_hooks/test_button', triggers: SystemHook.triggers, hook: @hook
= link_to 'Remove', admin_hook_path(@hook), method: :delete, class: 'btn btn-remove float-right', data: { confirm: 'Are you sure?' } = link_to 'Remove', admin_hook_path(@hook), method: :delete, class: 'btn btn-remove float-right', data: { confirm: 'Are you sure?' }
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
.col-lg-8.append-bottom-default .col-lg-8.append-bottom-default
= form_for @hook, as: :hook, url: admin_hooks_path do |f| = form_for @hook, as: :hook, url: admin_hooks_path do |f|
= render partial: 'form', locals: { form: f, hook: @hook } = render partial: 'form', locals: { form: f, hook: @hook }
= f.submit 'Add system hook', class: 'btn btn-create' = f.submit 'Add system hook', class: 'btn btn-success'
%hr %hr
......
...@@ -12,5 +12,5 @@ ...@@ -12,5 +12,5 @@
= f.text_field :extern_uid, class: 'form-control', required: true = f.text_field :extern_uid, class: 'form-control', required: true
.form-actions .form-actions
= f.submit _('Save changes'), class: "btn btn-save" = f.submit _('Save changes'), class: "btn btn-success"
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
- page_title _("Identities"), @user.name, _("Users") - page_title _("Identities"), @user.name, _("Users")
= render 'admin/users/head' = render 'admin/users/head'
= link_to _('New identity'), new_admin_user_identity_path, class: 'float-right btn btn-new' = link_to _('New identity'), new_admin_user_identity_path, class: 'float-right btn btn-success'
- if @identities.present? - if @identities.present?
.table-holder .table-holder
%table.table %table.table
......
...@@ -27,5 +27,5 @@ ...@@ -27,5 +27,5 @@
&nbsp; &nbsp;
.form-actions .form-actions
= f.submit _('Save'), class: 'btn btn-save js-save-button' = f.submit _('Save'), class: 'btn btn-success js-save-button'
= link_to _("Cancel"), admin_labels_path, class: 'btn btn-cancel' = link_to _("Cancel"), admin_labels_path, class: 'btn btn-cancel'
- page_title _("Labels") - page_title _("Labels")
%div %div
= link_to new_admin_label_path, class: "float-right btn btn-nr btn-new" do = link_to new_admin_label_path, class: "float-right btn btn-nr btn-success" do
= _('New label') = _('New label')
%h3.page-title %h3.page-title
= _('Labels') = _('Labels')
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
= dropdown_content = dropdown_content
= dropdown_loading = dropdown_loading
= render 'shared/projects/dropdown' = render 'shared/projects/dropdown'
= link_to new_project_path, class: 'btn btn-new' do = link_to new_project_path, class: 'btn btn-success' do
New Project New Project
= button_tag "Search", class: "btn btn-primary btn-search hide" = button_tag "Search", class: "btn btn-primary btn-search hide"
......
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
= render 'shared/service_settings', form: form, subject: @service = render 'shared/service_settings', form: form, subject: @service
.footer-block.row-content-block .footer-block.row-content-block
= form.submit 'Save', class: 'btn btn-save' = form.submit 'Save', class: 'btn btn-success'
...@@ -75,8 +75,8 @@ ...@@ -75,8 +75,8 @@
.form-actions .form-actions
- if @user.new_record? - if @user.new_record?
= f.submit 'Create user', class: "btn btn-create" = f.submit 'Create user', class: "btn btn-success"
= link_to 'Cancel', admin_users_path, class: "btn btn-cancel" = link_to 'Cancel', admin_users_path, class: "btn btn-cancel"
- else - else
= f.submit 'Save changes', class: "btn btn-save" = f.submit 'Save changes', class: "btn btn-success"
= link_to 'Cancel', admin_user_path(@user), class: "btn btn-cancel" = link_to 'Cancel', admin_user_path(@user), class: "btn btn-cancel"
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
= sort_title_recently_updated = sort_title_recently_updated
= link_to admin_users_path(sort: sort_value_oldest_updated, filter: params[:filter]) do = link_to admin_users_path(sort: sort_value_oldest_updated, filter: params[:filter]) do
= sort_title_oldest_updated = sort_title_oldest_updated
= link_to 'New user', new_admin_user_path, class: 'btn btn-new btn-search' = link_to 'New user', new_admin_user_path, class: 'btn btn-success btn-search'
.top-area.scrolling-tabs-container.inner-page-scroll-tabs .top-area.scrolling-tabs-container.inner-page-scroll-tabs
.fade-left .fade-left
......
...@@ -10,4 +10,4 @@ ...@@ -10,4 +10,4 @@
= render 'shared/groups/search_form' = render 'shared/groups/search_form'
= render 'shared/groups/dropdown' = render 'shared/groups/dropdown'
- if current_user.can_create_group? - if current_user.can_create_group?
= link_to _("New group"), new_group_path, class: "btn btn-new" = link_to _("New group"), new_group_path, class: "btn btn-success"
...@@ -19,4 +19,4 @@ ...@@ -19,4 +19,4 @@
= render 'shared/projects/search_form' = render 'shared/projects/search_form'
= render 'shared/projects/dropdown' = render 'shared/projects/dropdown'
- if current_user.can_create_project? - if current_user.can_create_project?
= link_to "New project", new_project_path, class: "btn btn-new" = link_to "New project", new_project_path, class: "btn btn-success"
...@@ -9,4 +9,4 @@ ...@@ -9,4 +9,4 @@
- if current_user - if current_user
.nav-controls.d-none.d-sm-block .nav-controls.d-none.d-sm-block
= link_to "New snippet", new_snippet_path, class: "btn btn-new", title: "New snippet" = link_to "New snippet", new_snippet_path, class: "btn btn-success", title: "New snippet"
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
.d-block.d-sm-none .d-block.d-sm-none
&nbsp; &nbsp;
= link_to new_snippet_path, class: "btn btn-new btn-block", title: "New snippet" do = link_to new_snippet_path, class: "btn btn-success btn-block", title: "New snippet" do
New snippet New snippet
= render partial: 'snippets/snippets', locals: { link_project: true } = render partial: 'snippets/snippets', locals: { link_project: true }
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
= recaptcha_tags = recaptcha_tags
.submit-container.move-submit-down .submit-container.move-submit-down
= f.submit "Sign in", class: "btn btn-save qa-sign-in-button" = f.submit "Sign in", class: "btn btn-success qa-sign-in-button"
...@@ -10,4 +10,4 @@ ...@@ -10,4 +10,4 @@
%label{ for: "remember_me" } %label{ for: "remember_me" }
= check_box_tag :remember_me, '1', false, id: 'remember_me' = check_box_tag :remember_me, '1', false, id: 'remember_me'
%span Remember me %span Remember me
= submit_tag "Sign in", class: "btn-save btn" = submit_tag "Sign in", class: "btn-success btn"
...@@ -10,4 +10,4 @@ ...@@ -10,4 +10,4 @@
%label{ for: "remember_me" } %label{ for: "remember_me" }
= check_box_tag :remember_me, '1', false, id: 'remember_me' = check_box_tag :remember_me, '1', false, id: 'remember_me'
%span Remember me %span Remember me
= submit_tag "Sign in", class: "btn-save btn qa-sign-in-button" = submit_tag "Sign in", class: "btn-success btn qa-sign-in-button"
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
= f.text_field :otp_attempt, class: 'form-control', required: true, autofocus: true, autocomplete: 'off', title: 'This field is required.' = f.text_field :otp_attempt, class: 'form-control', required: true, autofocus: true, autocomplete: 'off', title: 'This field is required.'
%p.form-text.text-muted.hint Enter the code from the two-factor app on your mobile device. If you've lost your device, you may enter one of your recovery codes. %p.form-text.text-muted.hint Enter the code from the two-factor app on your mobile device. If you've lost your device, you may enter one of your recovery codes.
.prepend-top-20 .prepend-top-20
= f.submit "Verify code", class: "btn btn-save" = f.submit "Verify code", class: "btn btn-success"
- if @user.two_factor_u2f_enabled? - if @user.two_factor_u2f_enabled?
= render "u2f/authenticate", locals: { params: params, resource: resource, resource_name: resource_name } = render "u2f/authenticate", locals: { params: params, resource: resource, resource_name: resource_name }
...@@ -20,4 +20,4 @@ ...@@ -20,4 +20,4 @@
= render 'shared/tokens/scopes_form', prefix: 'doorkeeper_application', token: application, scopes: @scopes = render 'shared/tokens/scopes_form', prefix: 'doorkeeper_application', token: application, scopes: @scopes
.prepend-top-default .prepend-top-default
= f.submit _('Save application'), class: "btn btn-create" = f.submit _('Save application'), class: "btn btn-success"
...@@ -19,4 +19,4 @@ ...@@ -19,4 +19,4 @@
On this date, the member(s) will automatically lose access to this group and all of its projects. On this date, the member(s) will automatically lose access to this group and all of its projects.
.col-md-2 .col-md-2
= f.submit 'Add to group', class: "btn btn-create btn-block" = f.submit 'Add to group', class: "btn btn-success btn-block"
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
- if can_admin_label - if can_admin_label
- content_for(:header_content) do - content_for(:header_content) do
.nav-controls .nav-controls
= link_to _('New label'), new_group_label_path(@group), class: "btn btn-new" = link_to _('New label'), new_group_label_path(@group), class: "btn btn-success"
- if @labels.exists? || search.present? - if @labels.exists? || search.present?
#promote-label-modal #promote-label-modal
......
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
.form-actions .form-actions
- if @milestone.new_record? - if @milestone.new_record?
= f.submit 'Create milestone', class: "btn-create btn" = f.submit 'Create milestone', class: "btn-success btn"
= link_to "Cancel", group_milestones_path(@group), class: "btn btn-cancel" = link_to "Cancel", group_milestones_path(@group), class: "btn btn-cancel"
- else - else
= f.submit 'Update milestone', class: "btn-create btn" = f.submit 'Update milestone', class: "btn-success btn"
= link_to "Cancel", group_milestone_path(@group, @milestone), class: "btn btn-cancel" = link_to "Cancel", group_milestone_path(@group, @milestone), class: "btn btn-cancel"
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.nav-controls .nav-controls
= render 'shared/milestones_sort_dropdown' = render 'shared/milestones_sort_dropdown'
- if can?(current_user, :admin_milestone, @group) - if can?(current_user, :admin_milestone, @group)
= link_to "New milestone", new_group_milestone_path(@group), class: "btn btn-new" = link_to "New milestone", new_group_milestone_path(@group), class: "btn btn-success"
.milestones .milestones
%ul.content-list %ul.content-list
......
...@@ -36,5 +36,5 @@ ...@@ -36,5 +36,5 @@
= render 'shared/group_tips' = render 'shared/group_tips'
.form-actions .form-actions
= f.submit 'Create group', class: "btn btn-create" = f.submit 'Create group', class: "btn btn-success"
= link_to 'Cancel', dashboard_groups_path, class: 'btn btn-cancel' = link_to 'Cancel', dashboard_groups_path, class: 'btn btn-cancel'
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
%li %li
= link_to 'Sort by date', '#' = link_to 'Sort by date', '#'
= link_to 'New issue', '#', class: 'btn btn-new btn-inverted' = link_to 'New issue', '#', class: 'btn btn-success btn-inverted'
.lead .lead
Only nav links without button and search Only nav links without button and search
......
...@@ -21,4 +21,4 @@ ...@@ -21,4 +21,4 @@
.col-md-4 .col-md-4
= password_field_tag :password, nil, class: 'form-control' = password_field_tag :password, nil, class: 'form-control'
.form-actions .form-actions
= submit_tag _('Continue to the next step'), class: 'btn btn-create' = submit_tag _('Continue to the next step'), class: 'btn btn-success'
...@@ -39,4 +39,4 @@ ...@@ -39,4 +39,4 @@
scope: :all, email_user: true, selected: user[:gitlab_user]) scope: :all, email_user: true, selected: user[:gitlab_user])
.form-actions .form-actions
= submit_tag _('Continue to the next step'), class: 'btn btn-create' = submit_tag _('Continue to the next step'), class: 'btn btn-success'
...@@ -19,4 +19,4 @@ ...@@ -19,4 +19,4 @@
.col-sm-4 .col-sm-4
= text_field_tag :personal_access_token, nil, class: 'form-control' = text_field_tag :personal_access_token, nil, class: 'form-control'
.form-actions .form-actions
= submit_tag _('List Your Gitea Repositories'), class: 'btn btn-create' = submit_tag _('List Your Gitea Repositories'), class: 'btn btn-success'
...@@ -41,5 +41,5 @@ ...@@ -41,5 +41,5 @@
= file_field_tag :file, class: '' = file_field_tag :file, class: ''
.row .row
.form-actions.col-sm-12 .form-actions.col-sm-12
= submit_tag _('Import project'), class: 'btn btn-create' = submit_tag _('Import project'), class: 'btn btn-success'
= link_to _('Cancel'), new_project_path, class: 'btn btn-cancel' = link_to _('Cancel'), new_project_path, class: 'btn btn-cancel'
...@@ -59,4 +59,4 @@ ...@@ -59,4 +59,4 @@
= _('Yes, let me map Google Code users to full names or GitLab users.') = _('Yes, let me map Google Code users to full names or GitLab users.')
%li %li
%p %p
= submit_tag _('Continue to the next step'), class: "btn btn-create" = submit_tag _('Continue to the next step'), class: "btn btn-success"
...@@ -33,4 +33,4 @@ ...@@ -33,4 +33,4 @@
= text_area_tag :user_map, JSON.pretty_generate(@user_map), class: 'form-control', rows: 15 = text_area_tag :user_map, JSON.pretty_generate(@user_map), class: 'form-control', rows: 15
.form-actions .form-actions
= submit_tag _('Continue to the next step'), class: "btn btn-create" = submit_tag _('Continue to the next step'), class: "btn btn-success"
...@@ -245,7 +245,7 @@ ...@@ -245,7 +245,7 @@
= link_to _('Auto DevOps'), help_page_path('topics/autodevops/index.md') = link_to _('Auto DevOps'), help_page_path('topics/autodevops/index.md')
%span= _('uses Kubernetes clusters to deploy your code!') %span= _('uses Kubernetes clusters to deploy your code!')
%hr %hr
%button.btn.btn-create.btn-sm.dismiss-feature-highlight{ type: 'button' } %button.btn.btn-success.btn-sm.dismiss-feature-highlight{ type: 'button' }
%span= _("Got it!") %span= _("Got it!")
= sprite_icon('thumb-up') = sprite_icon('thumb-up')
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
= f.label :email, class: 'label-bold' = f.label :email, class: 'label-bold'
= f.text_field :email, class: 'form-control' = f.text_field :email, class: 'form-control'
.prepend-top-default .prepend-top-default
= f.submit 'Add email address', class: 'btn btn-create' = f.submit 'Add email address', class: 'btn btn-success'
%hr %hr
%h4.prepend-top-0 %h4.prepend-top-0
Linked emails (#{@emails.count + 1}) Linked emails (#{@emails.count + 1})
......
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
= f.text_area :key, class: "form-control", rows: 8, required: true, placeholder: "Don't paste the private part of the GPG key. Paste the public part which begins with '-----BEGIN PGP PUBLIC KEY BLOCK-----'." = f.text_area :key, class: "form-control", rows: 8, required: true, placeholder: "Don't paste the private part of the GPG key. Paste the public part which begins with '-----BEGIN PGP PUBLIC KEY BLOCK-----'."
.prepend-top-default .prepend-top-default
= f.submit 'Add key', class: "btn btn-create" = f.submit 'Add key', class: "btn btn-success"
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
%strong= _('Oops, are you sure?') %strong= _('Oops, are you sure?')
%p= s_("Profiles|This doesn't look like a public SSH key, are you sure you want to add it?") %p= s_("Profiles|This doesn't look like a public SSH key, are you sure you want to add it?")
%button.btn.btn-create.js-add-ssh-key-validation-confirm-submit= _("Yes, add it") %button.btn.btn-success.js-add-ssh-key-validation-confirm-submit= _("Yes, add it")
.prepend-top-default .prepend-top-default
= f.submit s_('Profiles|Add key'), class: "btn btn-create js-add-ssh-key-validation-original-submit qa-add-key-button" = f.submit s_('Profiles|Add key'), class: "btn btn-success js-add-ssh-key-validation-original-submit qa-add-key-button"
...@@ -29,6 +29,6 @@ ...@@ -29,6 +29,6 @@
= f.label :password_confirmation, class: 'label-bold' = f.label :password_confirmation, class: 'label-bold'
= f.password_field :password_confirmation, required: true, class: 'form-control' = f.password_field :password_confirmation, required: true, class: 'form-control'
.prepend-top-default.append-bottom-default .prepend-top-default.append-bottom-default
= f.submit 'Save password', class: "btn btn-create append-right-10" = f.submit 'Save password', class: "btn btn-success append-right-10"
- unless @user.password_automatically_set? - unless @user.password_automatically_set?
= link_to "I forgot my password", reset_profile_password_path, method: :put, class: "account-btn-link" = link_to "I forgot my password", reset_profile_password_path, method: :put, class: "account-btn-link"
...@@ -22,4 +22,4 @@ ...@@ -22,4 +22,4 @@
.col-sm-10 .col-sm-10
= f.password_field :password_confirmation, required: true, class: 'form-control' = f.password_field :password_confirmation, required: true, class: 'form-control'
.form-actions .form-actions
= f.submit 'Set new password', class: "btn btn-create" = f.submit 'Set new password', class: "btn btn-success"
...@@ -58,4 +58,4 @@ ...@@ -58,4 +58,4 @@
.form-text.text-muted .form-text.text-muted
Choose what content you want to see on a project’s overview page Choose what content you want to see on a project’s overview page
.form-group .form-group
= f.submit 'Save changes', class: 'btn btn-save' = f.submit 'Save changes', class: 'btn btn-success'
.form-actions .form-actions
= button_tag 'Commit changes', class: 'btn commit-btn js-commit-button btn-create' = button_tag 'Commit changes', class: 'btn commit-btn js-commit-button btn-success'
= link_to 'Cancel', cancel_path, = link_to 'Cancel', cancel_path,
class: 'btn btn-cancel', data: {confirm: leave_edit_message} class: 'btn btn-cancel', data: {confirm: leave_edit_message}
......
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
edit edit
files in this project directly. Please fork this project, files in this project directly. Please fork this project,
make your changes there, and submit a merge request. make your changes there, and submit a merge request.
= link_to 'Fork', nil, method: :post, class: 'js-fork-suggestion-button btn btn-grouped btn-inverted btn-new' = link_to 'Fork', nil, method: :post, class: 'js-fork-suggestion-button btn btn-grouped btn-inverted btn-success'
%button.js-cancel-fork-suggestion-button.btn.btn-grouped{ type: 'button' } %button.js-cancel-fork-suggestion-button.btn.btn-grouped{ type: 'button' }
Cancel Cancel
...@@ -60,5 +60,5 @@ ...@@ -60,5 +60,5 @@
.option-description .option-description
Allows you to immediately clone this project’s repository. Skip this if you plan to push up an existing repository. Allows you to immediately clone this project’s repository. Skip this if you plan to push up an existing repository.
= f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4 = f.submit 'Create project', class: "btn btn-success project-submit", tabindex: 4
= link_to 'Cancel', dashboard_projects_path, class: 'btn btn-cancel' = link_to 'Cancel', dashboard_projects_path, class: 'btn btn-cancel'
...@@ -20,4 +20,4 @@ ...@@ -20,4 +20,4 @@
distributed with computer software, forming part of its documentation. distributed with computer software, forming part of its documentation.
GitLab will render it here instead of this message. GitLab will render it here instead of this message.
%p %p
= link_to "Add Readme", @project.add_readme_path, class: 'btn btn-new' = link_to "Add Readme", @project.add_readme_path, class: 'btn btn-success'
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
= render 'shared/new_commit_form', placeholder: _("Add new directory") = render 'shared/new_commit_form', placeholder: _("Add new directory")
.form-actions .form-actions
= submit_tag _("Create directory"), class: 'btn btn-create' = submit_tag _("Create directory"), class: 'btn btn-success'
= link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal" = link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal"
= render 'shared/projects/edit_information' = render 'shared/projects/edit_information'
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
= render 'shared/new_commit_form', placeholder: placeholder = render 'shared/new_commit_form', placeholder: placeholder
.form-actions .form-actions
= button_tag class: 'btn btn-create btn-upload-file', id: 'submit-all', type: 'button' do = button_tag class: 'btn btn-success btn-upload-file', id: 'submit-all', type: 'button' do
= icon('spin spinner', class: 'js-loading-icon hidden' ) = icon('spin spinner', class: 'js-loading-icon hidden' )
= button_title = button_title
= link_to _("Cancel"), '#', class: "btn btn-cancel", "data-dismiss" => "modal" = link_to _("Cancel"), '#', class: "btn btn-cancel", "data-dismiss" => "modal"
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
data: { confirm: s_('Branches|Deleting the merged branches cannot be undone. Are you sure?'), data: { confirm: s_('Branches|Deleting the merged branches cannot be undone. Are you sure?'),
container: 'body' } do container: 'body' } do
= s_('Branches|Delete merged branches') = s_('Branches|Delete merged branches')
= link_to new_project_branch_path(@project), class: 'btn btn-create' do = link_to new_project_branch_path(@project), class: 'btn btn-success' do
= s_('Branches|New branch') = s_('Branches|New branch')
- if can?(current_user, :admin_project, @project) - if can?(current_user, :admin_project, @project)
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
= render 'shared/ref_dropdown', dropdown_class: 'wide' = render 'shared/ref_dropdown', dropdown_class: 'wide'
.form-text.text-muted Existing branch name, tag, or commit SHA .form-text.text-muted Existing branch name, tag, or commit SHA
.form-actions .form-actions
= button_tag 'Create branch', class: 'btn btn-create', tabindex: 3 = button_tag 'Create branch', class: 'btn btn-success', tabindex: 3
= link_to 'Cancel', project_branches_path(@project), class: 'btn btn-cancel' = link_to 'Cancel', project_branches_path(@project), class: 'btn btn-cancel'
-# haml-lint:disable InlineJavaScript -# haml-lint:disable InlineJavaScript
%script#availableRefs{ type: "application/json" }= @project.repository.ref_names.to_json.html_safe %script#availableRefs{ type: "application/json" }= @project.repository.ref_names.to_json.html_safe
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
- else - else
= hidden_field_tag 'create_merge_request', 1, id: nil = hidden_field_tag 'create_merge_request', 1, id: nil
.form-actions .form-actions
= submit_tag label, class: 'btn btn-create' = submit_tag label, class: 'btn btn-success'
= link_to _("Cancel"), '#', class: "btn btn-cancel", "data-dismiss" => "modal" = link_to _("Cancel"), '#', class: "btn btn-cancel", "data-dismiss" => "modal"
= render 'shared/projects/edit_information' = render 'shared/projects/edit_information'
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
.dropdown-toggle-text.str-truncated= params[:from] || _("Select branch/tag") .dropdown-toggle-text.str-truncated= params[:from] || _("Select branch/tag")
= render 'shared/ref_dropdown' = render 'shared/ref_dropdown'
&nbsp; &nbsp;
= button_tag s_("CompareBranches|Compare"), class: "btn btn-create commits-compare-btn" = button_tag s_("CompareBranches|Compare"), class: "btn btn-success commits-compare-btn"
- if @merge_request.present? - if @merge_request.present?
= link_to _("View open merge request"), project_merge_request_path(@project, @merge_request), class: 'prepend-left-10 btn' = link_to _("View open merge request"), project_merge_request_path(@project, @merge_request), class: 'prepend-left-10 btn'
- elsif create_mr_button? - elsif create_mr_button?
......
...@@ -21,4 +21,4 @@ ...@@ -21,4 +21,4 @@
Allow this key to push to repository as well? (Default only allows pull access.) Allow this key to push to repository as well? (Default only allows pull access.)
.form-group.row .form-group.row
= f.submit "Add key", class: "btn-create btn" = f.submit "Add key", class: "btn-success btn"
...@@ -6,5 +6,5 @@ ...@@ -6,5 +6,5 @@
= form_for [@project.namespace.becomes(Namespace), @project, @deploy_key], html: { class: 'js-requires-input' } do |f| = form_for [@project.namespace.becomes(Namespace), @project, @deploy_key], html: { class: 'js-requires-input' } do |f|
= render partial: 'shared/deploy_keys/form', locals: { form: f, deploy_key: @deploy_key } = render partial: 'shared/deploy_keys/form', locals: { form: f, deploy_key: @deploy_key }
.form-actions .form-actions
= f.submit 'Save changes', class: 'btn-save btn' = f.submit 'Save changes', class: 'btn-success btn'
= link_to 'Cancel', project_settings_repository_path(@project), class: 'btn btn-cancel' = link_to 'Cancel', project_settings_repository_path(@project), class: 'btn btn-cancel'
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
- if @project.avatar? - if @project.avatar?
%hr %hr
= link_to _('Remove avatar'), project_avatar_path(@project), data: { confirm: _("Avatar will be removed. Are you sure?") }, method: :delete, class: "btn btn-danger btn-inverted" = link_to _('Remove avatar'), project_avatar_path(@project), data: { confirm: _("Avatar will be removed. Are you sure?") }, method: :delete, class: "btn btn-danger btn-inverted"
= f.submit 'Save changes', class: "btn btn-success js-btn-save-general-project-settings" = f.submit 'Save changes', class: "btn btn-success js-btn-success-general-project-settings"
%section.settings.sharing-permissions.no-animate#js-shared-permissions{ class: ('expanded' if expanded) } %section.settings.sharing-permissions.no-animate#js-shared-permissions{ class: ('expanded' if expanded) }
.settings-header .settings-header
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
-# haml-lint:disable InlineJavaScript -# haml-lint:disable InlineJavaScript
%script.js-project-permissions-form-data{ type: "application/json" }= project_permissions_panel_data_json(@project) %script.js-project-permissions-form-data{ type: "application/json" }= project_permissions_panel_data_json(@project)
.js-project-permissions-form .js-project-permissions-form
= f.submit 'Save changes', class: "btn btn-save" = f.submit 'Save changes', class: "btn btn-success"
= render_if_exists 'projects/issues_settings' = render_if_exists 'projects/issues_settings'
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
= form_for [@project.namespace.becomes(Namespace), @project], remote: true, html: { multipart: true, class: "merge-request-settings-form" }, authenticity_token: true do |f| = form_for [@project.namespace.becomes(Namespace), @project], remote: true, html: { multipart: true, class: "merge-request-settings-form" }, authenticity_token: true do |f|
%input{ name: 'update_section', type: 'hidden', value: 'js-merge-request-settings' } %input{ name: 'update_section', type: 'hidden', value: 'js-merge-request-settings' }
= render 'projects/merge_request_settings', form: f = render 'projects/merge_request_settings', form: f
= f.submit 'Save changes', class: "btn btn-save qa-save-merge-request-changes" = f.submit 'Save changes', class: "btn btn-success qa-save-merge-request-changes"
= render_if_exists 'projects/service_desk_settings' = render_if_exists 'projects/service_desk_settings'
......
...@@ -18,5 +18,5 @@ ...@@ -18,5 +18,5 @@
= f.url_field :external_url, class: 'form-control' = f.url_field :external_url, class: 'form-control'
.form-actions .form-actions
= f.submit 'Save', class: 'btn btn-save' = f.submit 'Save', class: 'btn btn-success'
= link_to 'Cancel', project_environments_path(@project), class: 'btn btn-cancel' = link_to 'Cancel', project_environments_path(@project), class: 'btn btn-cancel'
...@@ -30,11 +30,11 @@ ...@@ -30,11 +30,11 @@
- if current_user && can?(current_user, :fork_project, @project) - if current_user && can?(current_user, :fork_project, @project)
- if current_user.already_forked?(@project) && current_user.manageable_namespaces.size < 2 - if current_user.already_forked?(@project) && current_user.manageable_namespaces.size < 2
= link_to namespace_project_path(current_user, current_user.fork_of(@project)), title: 'Go to your fork', class: 'btn btn-new' do = link_to namespace_project_path(current_user, current_user.fork_of(@project)), title: 'Go to your fork', class: 'btn btn-success' do
= sprite_icon('fork', size: 12) = sprite_icon('fork', size: 12)
%span Fork %span Fork
- else - else
= link_to new_project_fork_path(@project), title: "Fork project", class: 'btn btn-new' do = link_to new_project_fork_path(@project), title: "Fork project", class: 'btn btn-success' do
= sprite_icon('fork', size: 12) = sprite_icon('fork', size: 12)
%span Fork %span Fork
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
.col-lg-8.append-bottom-default .col-lg-8.append-bottom-default
= form_for @hook, as: :hook, url: polymorphic_path([@project.namespace.becomes(Namespace), @project, :hooks]) do |f| = form_for @hook, as: :hook, url: polymorphic_path([@project.namespace.becomes(Namespace), @project, :hooks]) do |f|
= render partial: 'shared/web_hooks/form', locals: { form: f, hook: @hook } = render partial: 'shared/web_hooks/form', locals: { form: f, hook: @hook }
= f.submit 'Add webhook', class: 'btn btn-create' = f.submit 'Add webhook', class: 'btn btn-success'
%hr %hr
%h5.prepend-top-default %h5.prepend-top-default
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
= form_for [@project.namespace.becomes(Namespace), @project, @hook], as: :hook, url: project_hook_path(@project, @hook) do |f| = form_for [@project.namespace.becomes(Namespace), @project, @hook], as: :hook, url: project_hook_path(@project, @hook) do |f|
= render partial: 'shared/web_hooks/form', locals: { form: f, hook: @hook } = render partial: 'shared/web_hooks/form', locals: { form: f, hook: @hook }
= f.submit 'Save changes', class: 'btn btn-create' = f.submit 'Save changes', class: 'btn btn-success'
= render 'shared/web_hooks/test_button', triggers: ProjectHook.triggers, hook: @hook = render 'shared/web_hooks/test_button', triggers: ProjectHook.triggers, hook: @hook
= link_to 'Remove', project_hook_path(@project, @hook), method: :delete, class: 'btn btn-remove float-right', data: { confirm: 'Are you sure?' } = link_to 'Remove', project_hook_path(@project, @hook), method: :delete, class: 'btn btn-remove float-right', data: { confirm: 'Are you sure?' }
......
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
= render "shared/import_form", f: f = render "shared/import_form", f: f
.form-actions .form-actions
= f.submit 'Start import', class: "btn btn-create", tabindex: 4 = f.submit 'Start import', class: "btn btn-success", tabindex: 4
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
= link_to "New issue", new_project_issue_path(@project, = link_to "New issue", new_project_issue_path(@project,
issue: { assignee_id: finder.assignee.try(:id), issue: { assignee_id: finder.assignee.try(:id),
milestone_id: finder.milestones.first.try(:id) }), milestone_id: finder.milestones.first.try(:id) }),
class: "btn btn-new", class: "btn btn-success",
title: "New issue", title: "New issue",
id: "new_issue_link" id: "new_issue_link"
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
- if can_report_spam - if can_report_spam
= link_to 'Submit as spam', mark_as_spam_project_issue_path(@project, @issue), method: :post, class: 'd-none d-sm-none d-md-block btn btn-grouped btn-spam', title: 'Submit as spam' = link_to 'Submit as spam', mark_as_spam_project_issue_path(@project, @issue), method: :post, class: 'd-none d-sm-none d-md-block btn btn-grouped btn-spam', title: 'Submit as spam'
- if can_create_issue - if can_create_issue
= link_to new_project_issue_path(@project), class: 'd-none d-sm-none d-md-block btn btn-grouped new-issue-link btn-new btn-inverted', title: 'New issue', id: 'new_issue_link' do = link_to new_project_issue_path(@project), class: 'd-none d-sm-none d-md-block btn btn-grouped new-issue-link btn-success btn-inverted', title: 'New issue', id: 'new_issue_link' do
New issue New issue
.issue-details.issuable-details .issue-details.issuable-details
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
- if show_controls - if show_controls
.nav-controls .nav-controls
- if can?(current_user, :create_issue, @project) && @build.failed? - if can?(current_user, :create_issue, @project) && @build.failed?
= link_to "New issue", new_project_issue_path(@project, issue: build_failed_issue_options), class: 'btn btn-new btn-inverted' = link_to "New issue", new_project_issue_path(@project, issue: build_failed_issue_options), class: 'btn btn-success btn-inverted'
- if can?(current_user, :update_build, @build) && @build.retryable? - if can?(current_user, :update_build, @build) && @build.retryable?
= link_to "Retry job", retry_project_job_path(@project, @build), class: 'btn btn-inverted-secondary', method: :post = link_to "Retry job", retry_project_job_path(@project, @build), class: 'btn btn-inverted-secondary', method: :post
%button.btn.btn-default.float-right.d-block.d-sm-none.d-md-none.build-gutter-toggle.js-sidebar-build-toggle{ role: "button", type: "button" } %button.btn.btn-default.float-right.d-block.d-sm-none.d-md-none.build-gutter-toggle.js-sidebar-build-toggle{ role: "button", type: "button" }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
- if can_admin_label - if can_admin_label
- content_for(:header_content) do - content_for(:header_content) do
.nav-controls .nav-controls
= link_to _('New label'), new_project_label_path(@project), class: "btn btn-new" = link_to _('New label'), new_project_label_path(@project), class: "btn btn-success"
- if @labels.exists? || @prioritized_labels.exists? || search.present? - if @labels.exists? || @prioritized_labels.exists? || search.present?
#promote-label-modal #promote-label-modal
......
...@@ -43,4 +43,4 @@ ...@@ -43,4 +43,4 @@
.clearfix .clearfix
.float-right .float-right
= link_to 'Cancel', edit_project_service_path(@project, @service), class: 'btn btn-lg' = link_to 'Cancel', edit_project_service_path(@project, @service), class: 'btn btn-lg'
= f.submit 'Install', class: 'btn btn-save btn-lg' = f.submit 'Install', class: 'btn btn-success btn-lg'
- if @can_bulk_update - if @can_bulk_update
= button_tag "Edit merge requests", class: "btn append-right-10 js-bulk-update-toggle" = button_tag "Edit merge requests", class: "btn append-right-10 js-bulk-update-toggle"
- if merge_project - if merge_project
= link_to new_merge_request_path, class: "btn btn-new", title: "New merge request" do = link_to new_merge_request_path, class: "btn btn-success", title: "New merge request" do
New merge request New merge request
...@@ -61,4 +61,4 @@ ...@@ -61,4 +61,4 @@
- if @merge_request.errors.any? - if @merge_request.errors.any?
= form_errors(@merge_request) = form_errors(@merge_request)
= f.submit 'Compare branches and continue', class: "btn btn-new mr-compare-btn" = f.submit 'Compare branches and continue', class: "btn btn-success mr-compare-btn"
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
%span.ref-name= @merge_request.source_branch %span.ref-name= @merge_request.source_branch
and and
%span.ref-name= @merge_request.target_branch %span.ref-name= @merge_request.target_branch
.text-center= link_to 'Create commit', project_new_blob_path(@project, @merge_request.source_branch), class: 'btn btn-save' .text-center= link_to 'Create commit', project_new_blob_path(@project, @merge_request.source_branch), class: 'btn btn-success'
- else - else
- diff_viewable = @merge_request_diff ? @merge_request_diff.viewable? : true - diff_viewable = @merge_request_diff ? @merge_request_diff.viewable? : true
- if diff_viewable - if diff_viewable
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
.form-actions .form-actions
- if @milestone.new_record? - if @milestone.new_record?
= f.submit 'Create milestone', class: "btn-create btn qa-milestone-create-button" = f.submit 'Create milestone', class: "btn-success btn qa-milestone-create-button"
= link_to "Cancel", project_milestones_path(@project), class: "btn btn-cancel" = link_to "Cancel", project_milestones_path(@project), class: "btn btn-cancel"
- else - else
= f.submit 'Save changes', class: "btn-save btn" = f.submit 'Save changes', class: "btn-success btn"
= link_to "Cancel", project_milestone_path(@project, @milestone), class: "btn btn-cancel" = link_to "Cancel", project_milestone_path(@project, @milestone), class: "btn btn-cancel"
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
.nav-controls .nav-controls
= render 'shared/milestones_sort_dropdown' = render 'shared/milestones_sort_dropdown'
- if can?(current_user, :admin_milestone, @project) - if can?(current_user, :admin_milestone, @project)
= link_to new_project_milestone_path(@project), class: "btn btn-new qa-new-project-milestone", title: 'New milestone' do = link_to new_project_milestone_path(@project), class: "btn btn-success qa-new-project-milestone", title: 'New milestone' do
New milestone New milestone
.milestones .milestones
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
= link_to icon('question-circle'), help_page_path('user/project/protected_branches') = link_to icon('question-circle'), help_page_path('user/project/protected_branches')
.panel-footer .panel-footer
= f.submit _('Mirror repository'), class: 'btn btn-create', name: :update_remote_mirror = f.submit _('Mirror repository'), class: 'btn btn-success', name: :update_remote_mirror
.panel.panel-default .panel.panel-default
.table-responsive .table-responsive
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
Pages Pages
- if can?(current_user, :update_pages, @project) && (Gitlab.config.pages.external_http || Gitlab.config.pages.external_https) - if can?(current_user, :update_pages, @project) && (Gitlab.config.pages.external_http || Gitlab.config.pages.external_https)
= link_to new_project_pages_domain_path(@project), class: 'btn btn-new float-right', title: 'New Domain' do = link_to new_project_pages_domain_path(@project), class: 'btn btn-success float-right', title: 'New Domain' do
New Domain New Domain
%p.light %p.light
......
...@@ -8,4 +8,4 @@ ...@@ -8,4 +8,4 @@
= form_for [@project.namespace.becomes(Namespace), @project, @domain], html: { class: 'fieldset-form' } do |f| = form_for [@project.namespace.becomes(Namespace), @project, @domain], html: { class: 'fieldset-form' } do |f|
= render 'form', { f: f } = render 'form', { f: f }
.form-actions .form-actions
= f.submit 'Save Changes', class: "btn btn-save" = f.submit 'Save Changes', class: "btn btn-success"
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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