Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jeff Sturek
UNL Resource Scheduler
Commits
1f43bc9c
Commit
1f43bc9c
authored
Nov 10, 2021
by
Jeff Sturek
Browse files
Merge branch 'update-notice' into 'master'
Implement DCF Notices See merge request
dxg/unl-resource-scheduler!24
parents
3a46239c
ac21a021
Changes
1
Hide whitespace changes
Inline
Side-by-side
views/fixed.erb
View file @
1f43bc9c
...
...
@@ -131,24 +131,19 @@
<%
unless
session
[
"notice"
].
nil?
%>
<%
notices
=
session
.
delete
(
"notice"
)
%>
<%
notices
.
each
do
|
notice
|
%>
<%
notice_class
=
''
%>
<%
notice_class
=
'
dcf-notice-info
'
%>
<%
case
notice
[
:type
]
when
'success'
,
:success
notice_class
=
'
affirm
'
notice_class
=
'
dcf-notice-success
'
when
'failure'
,
:failure
notice_class
=
'
negate
'
notice_class
=
'
dcf-notice-warning
'
when
'alert'
,
'danger'
,
'error'
,
:error
,
:alert
,
:danger
notice_class
=
'
alert
'
%>
notice_class
=
'
dcf-notice-warning
'
%>
<%
end
%>
<div
id=
"notice"
class=
"wdn_notice
<%=
notice_class
%>
"
>
<div
class=
"close"
>
<a
href=
"#"
title=
"Close this notice"
>
Close this notice
</a>
</div>
<div
class=
"message"
>
<h4>
<%=
notice
[
:header
]
%>
</h4>
<div
class=
"message-content"
>
<%=
notice
[
:message
]
%>
</div>
<div
id=
"notice"
class=
"dcf-notice
<%=
notice_class
%>
"
hidden
>
<h2>
<%=
notice
[
:header
]
%>
</h2>
<div
class=
"message-content"
>
<%=
notice
[
:message
]
%>
</div>
</div>
<%
end
%>
...
...
Write
Preview
Supports
Markdown
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