Commit 334347fe authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Frontend review changes

parent 67fde388
...@@ -68,41 +68,42 @@ label { ...@@ -68,41 +68,42 @@ label {
} }
} }
.help-form { .help-form .form-group {
.form-group { margin-left: 0;
.control-label { margin-right: 0;
font-weight: bold;
padding-top: 4px;
}
.form-control { .control-label {
height: 29px; font-weight: bold;
background: $white-light; padding-top: 4px;
font-family: $monospace_font; }
}
.input-group-btn .btn { .form-control {
padding: 3px $gl-btn-padding; height: 29px;
background-color: $gray-light; background: $white-light;
border: 1px solid $border-color; font-family: $monospace_font;
} }
.text-block { .input-group-btn .btn {
line-height: 0.8; padding: 3px $gl-btn-padding;
padding-top: 9px; background-color: $gray-light;
border: 1px solid $border-color;
}
.text-block {
line-height: 0.8;
padding-top: 9px;
code { code {
line-height: 1.8; line-height: 1.8;
}
} }
}
@media(max-width: $screen-sm-min) { @media(max-width: $screen-sm-min) {
padding: 0 $gl-padding; padding: 0 $gl-padding;
.control-label, .control-label,
.text-block { .text-block {
padding-left: 0; padding-left: 0;
}
} }
} }
} }
......
...@@ -20,3 +20,7 @@ ...@@ -20,3 +20,7 @@
.danger-title { .danger-title {
color: $gl-danger; color: $gl-danger;
} }
.service-settings .control-label {
padding-top: 0;
}
...@@ -2,24 +2,24 @@ ...@@ -2,24 +2,24 @@
- run_actions_text = "Perform common operations on this project: #{pretty_path_with_namespace}" - run_actions_text = "Perform common operations on this project: #{pretty_path_with_namespace}"
.well .well
%p This service allows GitLab users to perform common operations on this
This service allows GitLab users to perform common operations on this project by entering slash commands in Mattermost.
project by entering slash commands in Mattermost. %br
%p See list of available commands in Mattermost after setting up this service,
See list of available commands in Mattermost after setting up this service, by entering
by entering %code /<command_trigger_word> help
%code /<command_trigger_word> help %br
%p %br
To setup this service: To setup this service:
%ul.list-unstyled %ul.list-unstyled
%li %li
1. 1.
= link_to 'Enable custom slash commands', 'https://docs.mattermost.com/developer/slash-commands.html#enabling-custom-commands' = link_to 'Enable custom slash commands', 'https://docs.mattermost.com/developer/slash-commands.html#enabling-custom-commands'
on your Mattermost installation on your Mattermost installation
%li %li
2. 2.
= link_to 'Add a slash command', 'https://docs.mattermost.com/developer/slash-commands.html#set-up-a-custom-command' = link_to 'Add a slash command', 'https://docs.mattermost.com/developer/slash-commands.html#set-up-a-custom-command'
in Mattermost with these options: in Mattermost with these options:
%hr %hr
......
...@@ -7,43 +7,44 @@ ...@@ -7,43 +7,44 @@
= preserve do = preserve do
= markdown @service.help = markdown @service.help
.form-group .service-settings
= form.label :active, "Active", class: "control-label"
.col-sm-10
= form.check_box :active
- if @service.supported_events.present?
.form-group .form-group
= form.label :url, "Trigger", class: 'control-label' = form.label :active, "Active", class: "control-label"
.col-sm-10 .col-sm-10
- @service.supported_events.each do |event| = form.check_box :active
%div
= form.check_box service_event_field_name(event), class: 'pull-left' - if @service.supported_events.present?
.prepend-left-20 .form-group
= form.label service_event_field_name(event), class: 'list-label' do = form.label :url, "Trigger", class: 'control-label'
%strong
= event.humanize .col-sm-10
- @service.supported_events.each do |event|
- field = @service.event_field(event) %div
= form.check_box service_event_field_name(event), class: 'pull-left'
- if field .prepend-left-20
%p = form.label service_event_field_name(event), class: 'list-label' do
= form.text_field field[:name], class: "form-control", placeholder: field[:placeholder] %strong
= event.humanize
%p.light
= service_event_description(event) - field = @service.event_field(event)
- @service.global_fields.each do |field| - if field
- type = field[:type] %p
= form.text_field field[:name], class: "form-control", placeholder: field[:placeholder]
- if type == 'fieldset'
- fields = field[:fields] %p.light
- legend = field[:legend] = service_event_description(event)
%fieldset - @service.global_fields.each do |field|
%legend= legend - type = field[:type]
- fields.each do |subfield|
= render 'shared/field', form: form, field: subfield - if type == 'fieldset'
- else - fields = field[:fields]
= render 'shared/field', form: form, field: field - legend = field[:legend]
%fieldset
%legend= legend
- fields.each do |subfield|
= render 'shared/field', form: form, field: subfield
- else
= render 'shared/field', form: form, field: field
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