pidgin/nest
Clone
Summary
Browse
Changes
Graph
Remove extra exclamation points from plugin table.
2020-04-17, Elliott Sales de Andrade
fad7d2231550
Remove extra exclamation points from plugin table.
These were necessary on Trac to stop it from auto-linking, but we don't
need them on nest.
{{
if
(
and
.Site.Params.notificationMessage
.Site.Params.notificationCode
)
}}
<
script
src
=
"/js/js.cookie.min.js"
></
script
>
<
div
id
=
"notification-stage"
>
<
div
class
=
"alert-bar notification-bar"
>
<
i
class
=
"fas fa-exclamation"
></
i
>
<
div
class
=
"alert-bar-close-button"
><
i
class
=
"fas fa-times"
></
i
></
div
>
<
span
>
{{
.Site.Params.notificationMessage
|
safeHTML
}}
</
span
>
</
div
>
</
div
>
<
script
>
try
{
var
code
=
"
{{
.Site.Params.notificationCode
}}
"
;
}
catch
(
e
)
{
console
.
error
(
"Error with cookie code"
,
e
);
}
if
(
code
&&
code
!==
Cookies
.
get
(
"hide-notification"
))
{
var
bar
=
$
(
".notification-bar"
);
$
(
".padding.highlightable"
).
prepend
(
bar
);
$
(
".alert-bar-close-button"
).
on
(
"click"
,
function
(
elem
)
{
Cookies
.
set
(
"hide-notification"
,
code
);
bar
.
detach
();
});
}
</
script
>
<
style
>
#
notification-stage
{
display
:
none
;
}
.
alert-bar
{
font-weight
:
bold
;
padding
:
20
px
;
background-color
:
#4caf50
;
color
:
white
;
margin-bottom
:
15
px
;
}
.
alert-bar
a
{
color
:
darkgreen
;
}
.
alert-bar
a
:
hover
{
color
:
black
;
}
.
alert-bar-close-button
{
margin-left
:
15
px
;
color
:
white
;
font-weight
:
bold
;
float
:
right
;
font-size
:
22
px
;
line-height
:
20
px
;
cursor
:
pointer
;
transition
:
0.3
s
;
}
.
alert-bar-close-button
:
hover
{
color
:
black
;
}
</
style
>
{{
end
}}