Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
7765a4b2
Commit
7765a4b2
authored
May 06, 2019
by
Enrique Alcantara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary text-block styling
parent
778a393a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
44 deletions
+27
-44
app/assets/stylesheets/framework/forms.scss
app/assets/stylesheets/framework/forms.scss
+0
-17
app/views/projects/services/mattermost_slash_commands/_detailed_help.html.haml
...rvices/mattermost_slash_commands/_detailed_help.html.haml
+13
-13
app/views/projects/services/slack_slash_commands/_help.html.haml
...ws/projects/services/slack_slash_commands/_help.html.haml
+14
-14
No files found.
app/assets/stylesheets/framework/forms.scss
View file @
7765a4b2
...
@@ -86,25 +86,8 @@ label {
...
@@ -86,25 +86,8 @@ label {
border
:
1px
solid
$border-color
;
border
:
1px
solid
$border-color
;
}
}
.text-block
{
line-height
:
0
.8
;
padding-top
:
9px
;
code
{
line-height
:
1
.8
;
}
img
{
margin-right
:
$gl-padding
;
}
}
@include
media-breakpoint-down
(
xs
)
{
@include
media-breakpoint-down
(
xs
)
{
padding
:
0
$gl-padding
;
padding
:
0
$gl-padding
;
.text-block
{
padding-left
:
0
;
}
}
}
}
}
...
...
app/views/projects/services/mattermost_slash_commands/_detailed_help.html.haml
View file @
7765a4b2
...
@@ -18,22 +18,22 @@
...
@@ -18,22 +18,22 @@
.help-form
.help-form
.form-group
.form-group
=
label_tag
:display_name
,
'Display name'
,
class:
'col-sm-2 col-12 col-form-label'
=
label_tag
:display_name
,
'Display name'
,
class:
'col-sm-2 col-12 col-form-label
label-bold
'
.col-sm-10.col-12.input-group
.col-sm-10.col-12.input-group
=
text_field_tag
:display_name
,
"GitLab /
#{
@project
.
full_name
}
"
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
=
text_field_tag
:display_name
,
"GitLab /
#{
@project
.
full_name
}
"
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
.input-group-append
.input-group-append
=
clipboard_button
(
target:
'#display_name'
,
class:
'input-group-text'
)
=
clipboard_button
(
target:
'#display_name'
,
class:
'input-group-text'
)
.form-group
.form-group
=
label_tag
:description
,
'Description'
,
class:
'col-sm-2 col-12 col-form-label'
=
label_tag
:description
,
'Description'
,
class:
'col-sm-2 col-12 col-form-label
label-bold
'
.col-sm-10.col-12.input-group
.col-sm-10.col-12.input-group
=
text_field_tag
:description
,
run_actions_text
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
=
text_field_tag
:description
,
run_actions_text
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
.input-group-append
.input-group-append
=
clipboard_button
(
target:
'#description'
,
class:
'input-group-text'
)
=
clipboard_button
(
target:
'#description'
,
class:
'input-group-text'
)
.form-group
.form-group
=
label_tag
nil
,
'Command trigger word'
,
class:
'col-sm-
2 col-12 col-form-label
'
=
label_tag
nil
,
'Command trigger word'
,
class:
'col-sm-
4 col-12 col-form-label label-bold
'
.col-sm-10.col-12
.text-block
.col-sm-10.col-12
%p
Fill in the word that works best for your team.
%p
Fill in the word that works best for your team.
%p
%p
Suggestions:
Suggestions:
...
@@ -42,43 +42,43 @@
...
@@ -42,43 +42,43 @@
%code
=
@project
.
full_path
%code
=
@project
.
full_path
.form-group
.form-group
=
label_tag
:request_url
,
'Request URL'
,
class:
'col-sm-2 col-12 col-form-label'
=
label_tag
:request_url
,
'Request URL'
,
class:
'col-sm-2 col-12 col-form-label
label-bold
'
.col-sm-10.col-12.input-group
.col-sm-10.col-12.input-group
=
text_field_tag
:request_url
,
service_trigger_url
(
subject
),
class:
'form-control form-control-sm'
,
readonly:
'readonly'
=
text_field_tag
:request_url
,
service_trigger_url
(
subject
),
class:
'form-control form-control-sm'
,
readonly:
'readonly'
.input-group-append
.input-group-append
=
clipboard_button
(
target:
'#request_url'
,
class:
'input-group-text'
)
=
clipboard_button
(
target:
'#request_url'
,
class:
'input-group-text'
)
.form-group
.form-group
=
label_tag
nil
,
'Request method'
,
class:
'col-sm-2 col-12 col-form-label'
=
label_tag
nil
,
'Request method'
,
class:
'col-sm-2 col-12 col-form-label
label-bold
'
.col-sm-10.col-12
.text-block
POST
.col-sm-10.col-12
POST
.form-group
.form-group
=
label_tag
:response_username
,
'Response username'
,
class:
'col-sm-
2 col-12 col-form-label
'
=
label_tag
:response_username
,
'Response username'
,
class:
'col-sm-
4 col-form-label label-bold
'
.col-sm-10.col-12.input-group
.col-sm-10.col-12.input-group
=
text_field_tag
:response_username
,
'GitLab'
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
=
text_field_tag
:response_username
,
'GitLab'
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
.input-group-append
.input-group-append
=
clipboard_button
(
target:
'#response_username'
,
class:
'input-group-text'
)
=
clipboard_button
(
target:
'#response_username'
,
class:
'input-group-text'
)
.form-group
.form-group
=
label_tag
:response_icon
,
'Response icon'
,
class:
'col-sm-2 col-12 col-form-label'
=
label_tag
:response_icon
,
'Response icon'
,
class:
'col-sm-2 col-12 col-form-label
label-bold
'
.col-sm-10.col-12.input-group
.col-sm-10.col-12.input-group
=
text_field_tag
:response_icon
,
asset_url
(
'gitlab_logo.png'
),
class:
'form-control form-control-sm'
,
readonly:
'readonly'
=
text_field_tag
:response_icon
,
asset_url
(
'gitlab_logo.png'
),
class:
'form-control form-control-sm'
,
readonly:
'readonly'
.input-group-append
.input-group-append
=
clipboard_button
(
target:
'#response_icon'
,
class:
'input-group-text'
)
=
clipboard_button
(
target:
'#response_icon'
,
class:
'input-group-text'
)
.form-group
.form-group
=
label_tag
nil
,
'Autocomplete'
,
class:
'col-sm-2 col-12 col-form-label'
=
label_tag
nil
,
'Autocomplete'
,
class:
'col-sm-2 col-12 col-form-label
label-bold
'
.col-sm-10.col-12
.text-block
Yes
.col-sm-10.col-12
Yes
.form-group
.form-group
=
label_tag
:autocomplete_hint
,
'Autocomplete hint'
,
class:
'col-sm-
2 col-12 col-form-label
'
=
label_tag
:autocomplete_hint
,
'Autocomplete hint'
,
class:
'col-sm-
4 col-12 col-form-label label-bold
'
.col-sm-10.col-12.input-group
.col-sm-10.col-12.input-group
=
text_field_tag
:autocomplete_hint
,
'[help]'
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
=
text_field_tag
:autocomplete_hint
,
'[help]'
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
.input-group-append
.input-group-append
=
clipboard_button
(
target:
'#autocomplete_hint'
,
class:
'input-group-text'
)
=
clipboard_button
(
target:
'#autocomplete_hint'
,
class:
'input-group-text'
)
.form-group
.form-group
=
label_tag
:autocomplete_description
,
'Autocomplete description'
,
class:
'col-sm-
2 col-12 col-form-label
'
=
label_tag
:autocomplete_description
,
'Autocomplete description'
,
class:
'col-sm-
4 col-12 col-form-label label-bold
'
.col-sm-10.col-12.input-group
.col-sm-10.col-12.input-group
=
text_field_tag
:autocomplete_description
,
run_actions_text
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
=
text_field_tag
:autocomplete_description
,
run_actions_text
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
.input-group-append
.input-group-append
...
...
app/views/projects/services/slack_slash_commands/_help.html.haml
View file @
7765a4b2
...
@@ -27,8 +27,8 @@
...
@@ -27,8 +27,8 @@
.help-form
.help-form
.form-group
.form-group
=
label_tag
nil
,
'Command'
,
class:
'col-sm-2 col-12 col-form-label'
=
label_tag
nil
,
'Command'
,
class:
'col-sm-2 col-12 col-form-label
label-bold
'
.col-sm-10.col-12
.text-block
.col-sm-10.col-12
%p
Fill in the word that works best for your team.
%p
Fill in the word that works best for your team.
%p
%p
Suggestions:
Suggestions:
...
@@ -37,49 +37,49 @@
...
@@ -37,49 +37,49 @@
%code
=
@project
.
full_path
%code
=
@project
.
full_path
.form-group
.form-group
=
label_tag
:url
,
'URL'
,
class:
'col-sm-2 col-12 col-form-label'
=
label_tag
:url
,
'URL'
,
class:
'col-sm-2 col-12 col-form-label
label-bold
'
.col-sm-10.col-12.input-group
.col-sm-10.col-12.input-group
=
text_field_tag
:url
,
service_trigger_url
(
subject
),
class:
'form-control form-control-sm'
,
readonly:
'readonly'
=
text_field_tag
:url
,
service_trigger_url
(
subject
),
class:
'form-control form-control-sm'
,
readonly:
'readonly'
.input-group-append
.input-group-append
=
clipboard_button
(
target:
'#url'
,
class:
'input-group-text'
)
=
clipboard_button
(
target:
'#url'
,
class:
'input-group-text'
)
.form-group
.form-group
=
label_tag
nil
,
'Method'
,
class:
'col-sm-2 col-12 col-form-label'
=
label_tag
nil
,
'Method'
,
class:
'col-sm-2 col-12 col-form-label
label-bold
'
.col-sm-10.col-12
.text-block
POST
.col-sm-10.col-12
POST
.form-group
.form-group
=
label_tag
:customize_name
,
'Customize name'
,
class:
'col-sm-2 col-12 col-form-label'
=
label_tag
:customize_name
,
'Customize name'
,
class:
'col-sm-2 col-12 col-form-label
label-bold
'
.col-sm-10.col-12.input-group
.col-sm-10.col-12.input-group
=
text_field_tag
:customize_name
,
'GitLab'
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
=
text_field_tag
:customize_name
,
'GitLab'
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
.input-group-append
.input-group-append
=
clipboard_button
(
target:
'#customize_name'
,
class:
'input-group-text'
)
=
clipboard_button
(
target:
'#customize_name'
,
class:
'input-group-text'
)
.form-group
.form-group
=
label_tag
nil
,
'Customize icon'
,
class:
'col-sm-2 col-12 col-form-label'
=
label_tag
nil
,
'Customize icon'
,
class:
'col-sm-2 col-12 col-form-label
label-bold
'
.col-sm-10.col-12
.text-block
.col-sm-10.col-12
=
image_tag
(
asset_url
(
'slash-command-logo.png'
),
width:
36
,
height:
36
)
=
image_tag
(
asset_url
(
'slash-command-logo.png'
),
width:
36
,
height:
36
,
class:
'mr-3'
)
=
link_to
(
'Download image'
,
asset_url
(
'gitlab_logo.png'
),
class:
'btn btn-sm'
,
target:
'_blank'
,
rel:
'noopener noreferrer'
)
=
link_to
(
'Download image'
,
asset_url
(
'gitlab_logo.png'
),
class:
'btn btn-sm'
,
target:
'_blank'
,
rel:
'noopener noreferrer'
)
.form-group
.form-group
=
label_tag
nil
,
'Autocomplete'
,
class:
'col-sm-2 col-12 col-form-label'
=
label_tag
nil
,
'Autocomplete'
,
class:
'col-sm-2 col-12 col-form-label
label-bold
'
.col-sm-10.col-12
.text-block
Show this command in the autocomplete list
.col-sm-10.col-12
Show this command in the autocomplete list
.form-group
.form-group
=
label_tag
:autocomplete_description
,
'Autocomplete description'
,
class:
'col-sm-
2 col-12 col-form-label
'
=
label_tag
:autocomplete_description
,
'Autocomplete description'
,
class:
'col-sm-
4 col-form-label label-bold
'
.col-sm-10.col-12.input-group
.col-sm-10.col-12.input-group
=
text_field_tag
:autocomplete_description
,
run_actions_text
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
=
text_field_tag
:autocomplete_description
,
run_actions_text
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
.input-group-append
.input-group-append
=
clipboard_button
(
target:
'#autocomplete_description'
,
class:
'input-group-text'
)
=
clipboard_button
(
target:
'#autocomplete_description'
,
class:
'input-group-text'
)
.form-group
.form-group
=
label_tag
:autocomplete_usage_hint
,
'Autocomplete usage hint'
,
class:
'col-sm-
2 col-12 col-form-label
'
=
label_tag
:autocomplete_usage_hint
,
'Autocomplete usage hint'
,
class:
'col-sm-
4 col-form-label label-bold
'
.col-sm-10.col-12.input-group
.col-sm-10.col-12.input-group
=
text_field_tag
:autocomplete_usage_hint
,
'[help]'
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
=
text_field_tag
:autocomplete_usage_hint
,
'[help]'
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
.input-group-append
.input-group-append
=
clipboard_button
(
target:
'#autocomplete_usage_hint'
,
class:
'input-group-text'
)
=
clipboard_button
(
target:
'#autocomplete_usage_hint'
,
class:
'input-group-text'
)
.form-group
.form-group
=
label_tag
:descriptive_label
,
'Descriptive label'
,
class:
'col-sm-
2 col-12 col-form-label
'
=
label_tag
:descriptive_label
,
'Descriptive label'
,
class:
'col-sm-
4 col-form-label label-bold
'
.col-sm-10.col-12.input-group
.col-sm-10.col-12.input-group
=
text_field_tag
:descriptive_label
,
'Perform common operations on GitLab project'
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
=
text_field_tag
:descriptive_label
,
'Perform common operations on GitLab project'
,
class:
'form-control form-control-sm'
,
readonly:
'readonly'
.input-group-append
.input-group-append
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment