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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
bb4dcec6
Commit
bb4dcec6
authored
Aug 10, 2020
by
sfang97
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spacing, move two more buttons to right
parent
254dd734
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
11 deletions
+17
-11
app/assets/javascripts/badges/components/badge_form.vue
app/assets/javascripts/badges/components/badge_form.vue
+9
-6
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+4
-3
ee/app/views/projects/_merge_request_approvals_settings.html.haml
...iews/projects/_merge_request_approvals_settings.html.haml
+2
-1
ee/app/views/projects/settings/_default_issue_template.html.haml
...views/projects/settings/_default_issue_template.html.haml
+2
-1
No files found.
app/assets/javascripts/badges/components/badge_form.vue
View file @
bb4dcec6
...
...
@@ -184,7 +184,7 @@ export default {
@
input=
"debouncedPreview"
/>
<div
class=
"invalid-feedback"
>
{{
s__
(
'
Badges|Please fill in a valid URL
'
)
}}
</div>
<span
class=
"form-text text-muted"
>
{{
badgeLinkUrlExample
}}
</span>
<span
class=
"form-text text-muted"
>
{{
badgeLinkUrlExample
}}
</span>
</div>
<div
class=
"form-group"
>
...
...
@@ -199,7 +199,7 @@ export default {
@
input=
"debouncedPreview"
/>
<div
class=
"invalid-feedback"
>
{{
s__
(
'
Badges|Please fill in a valid URL
'
)
}}
</div>
<span
class=
"form-text text-muted"
>
{{
badgeImageUrlExample
}}
</span>
<span
class=
"form-text text-muted"
>
{{
badgeImageUrlExample
}}
</span>
</div>
<div
class=
"form-group"
>
...
...
@@ -210,14 +210,17 @@ export default {
:image-url=
"renderedImageUrl"
:link-url=
"renderedLinkUrl"
/>
<p
v-show=
"isRendering"
><gl-loading-icon
:inline=
"true"
/></p>
<p
v-show=
"!renderedBadge && !isRendering"
class=
"disabled-content"
>
{{
s__
(
'
Badges|No image to preview
'
)
}}
<p
v-show=
"isRendering"
>
<gl-loading-icon
:inline=
"true"
/>
</p>
<p
v-show=
"!renderedBadge && !isRendering"
class=
"disabled-content"
>
{{
s__
(
'
Badges|No image to preview
'
)
}}
</p>
</div>
<div
v-if=
"isEditing"
class=
"row-content-block gl-display-flex gl-justify-content-end"
>
<button
class=
"btn btn-cancel"
type=
"button"
@
click=
"onCancel"
>
{{
__
(
'
Cancel
'
)
}}
</button>
<button
class=
"btn btn-cancel
gl-mr-4
"
type=
"button"
@
click=
"onCancel"
>
{{
__
(
'
Cancel
'
)
}}
</button>
<loading-button
:loading=
"isSaving"
:label=
"s__('Badges|Save changes')"
...
...
app/views/projects/edit.html.haml
View file @
bb4dcec6
...
...
@@ -21,9 +21,10 @@
%input
{
name:
'update_section'
,
type:
'hidden'
,
value:
'js-shared-permissions'
}
%template
.js-project-permissions-form-data
{
type:
"application/json"
}=
project_permissions_panel_data_json
(
@project
)
.js-project-permissions-form
-
if
show_visibility_confirm_modal?
(
@project
)
=
render
"visibility_modal"
=
f
.
submit
_
(
'Save changes'
),
class:
"btn btn-success
#{
(
'js-confirm-danger'
if
show_visibility_confirm_modal?
(
@project
))
}
"
,
data:
{
qa_selector:
'visibility_features_permissions_save_button'
,
check_field_name:
(
"project[visibility_level]"
if
show_visibility_confirm_modal?
(
@project
)),
check_compare_value:
@project
.
visibility_level
}
.gl-display-flex.gl-justify-content-end
-
if
show_visibility_confirm_modal?
(
@project
)
=
render
"visibility_modal"
=
f
.
submit
_
(
'Save changes'
),
class:
"btn btn-success
#{
(
'js-confirm-danger'
if
show_visibility_confirm_modal?
(
@project
))
}
"
,
data:
{
qa_selector:
'visibility_features_permissions_save_button'
,
check_field_name:
(
"project[visibility_level]"
if
show_visibility_confirm_modal?
(
@project
)),
check_compare_value:
@project
.
visibility_level
}
%section
.qa-merge-request-settings.rspec-merge-request-settings.settings.merge-requests-feature.no-animate
#js-merge-request-settings
{
class:
[(
'expanded'
if
expanded
),
(
'hidden'
if
@project
.
project_feature
.
send
(
:merge_requests_access_level
)
==
0
)]
}
.settings-header
...
...
ee/app/views/projects/_merge_request_approvals_settings.html.haml
View file @
bb4dcec6
...
...
@@ -13,4 +13,5 @@
=
form_for
@project
,
remote:
true
,
html:
{
class:
"merge-request-approval-settings-form js-mr-approvals-form"
},
authenticity_token:
true
do
|
f
|
%input
{
name:
'update_section'
,
type:
'hidden'
,
value:
'js-merge-request-approval-settings'
}
=
render
'projects/merge_request_approvals_settings_form'
,
form:
f
,
project:
@project
=
f
.
submit
_
(
"Save changes"
),
class:
"btn btn-success qa-save-merge-request-approval-settings-button"
.gl-display-flex.gl-justify-content-end
=
f
.
submit
_
(
"Save changes"
),
class:
"btn btn-success qa-save-merge-request-approval-settings-button"
ee/app/views/projects/settings/_default_issue_template.html.haml
View file @
bb4dcec6
...
...
@@ -18,4 +18,5 @@
.text-secondary
-
link_start
=
'<a href="%{url}" target="_blank" rel="noopener noreferrer">'
.
html_safe
%
{
url:
help_page_path
(
'user/markdown'
)
}
=
_
(
'Description parsed with %{link_start}GitLab Flavored Markdown%{link_end}'
).
html_safe
%
{
link_start:
link_start
,
link_end:
'</a>'
.
html_safe
}
=
f
.
submit
_
(
'Save changes'
),
class:
"btn btn-success"
.gl-display-flex.gl-justify-content-end
=
f
.
submit
_
(
'Save changes'
),
class:
"btn btn-success"
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