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
25d6e159
Commit
25d6e159
authored
Oct 16, 2020
by
Alexander Turinske
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update alert to use alert-specific classes
- gl-alert-body and gl-alert-actions - remove unnecessary html-safe
parent
0485741d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/views/shared/_auto_devops_implicitly_enabled_banner.html.haml
...s/shared/_auto_devops_implicitly_enabled_banner.html.haml
+4
-4
No files found.
app/views/shared/_auto_devops_implicitly_enabled_banner.html.haml
View file @
25d6e159
-
if
show_auto_devops_implicitly_enabled_banner?
(
project
,
current_user
)
.qa-auto-devops-banner.auto-devops-implicitly-enabled-banner.gl-alert.gl-alert-info
=
sprite_icon
(
'information-o'
,
size:
16
,
css_class:
'gl-icon gl-alert-icon gl-alert-icon-no-title'
)
-
auto_devops_message
=
s_
(
"AutoDevOps|The Auto DevOps pipeline has been enabled and will be used if no alternative CI configuration file is found."
)
=
auto_devops_message
.
html_safe
=
sprite_icon
(
'information-o'
,
css_class:
'gl-icon gl-alert-icon gl-alert-icon-no-title'
)
%button
.js-close.gl-alert-dismiss
{
type:
'button'
,
'aria-label'
=>
_
(
'Dismiss'
),
class:
'hide-auto-devops-implicitly-enabled-banner alert-link'
,
data:
{
project_id:
project
.
id
}
}
=
sprite_icon
(
'close'
,
css_class:
'gl-icon'
)
.gl-alert-body
=
s_
(
"AutoDevOps|The Auto DevOps pipeline has been enabled and will be used if no alternative CI configuration file is found."
)
-
unless
Gitlab
.
config
.
registry
.
enabled
%div
=
_
(
'Container registry is not enabled on this GitLab instance. Ask an administrator to enable it in order for Auto DevOps to work.'
)
.gl-mt-3
.gl-
alert-actions.gl-
mt-3
=
link_to
_
(
'Settings'
),
project_settings_ci_cd_path
(
project
),
class:
'alert-link btn gl-button btn-info'
=
link_to
_
(
'More information'
),
help_page_path
(
'topics/autodevops/index.md'
),
target:
'_blank'
,
class:
'alert-link btn gl-button btn-default gl-ml-2'
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