diff --git a/_less/screen.less b/_less/screen.less
index d2f0b1bbd1..a5e293276d 100644
--- a/_less/screen.less
+++ b/_less/screen.less
@@ -142,27 +142,29 @@ table td,table th{
font-style:italic;
}
-.banner-message div div{
- margin:auto;
- width:850px;
- padding:10px;
-}
.banner-message,
.banner-message a,
.banner-message a:link,
.banner-message a:active,
.banner-message a:visited{
+ display:block;
color:#fff;
}
.banner-message a:hover{
text-decoration:underline;
}
-.banner-message.alert div{
+.banner-message.alert a{
background-color:#c5251f;
}
-.banner-message.info div{
+.banner-message.info a{
background-color:#0d579b;
}
+.banner-message a span{
+ display:block;
+ margin:auto;
+ width:850px;
+ padding:10px;
+}
.head{
margin:30px 0 30px 0;
@@ -2162,7 +2164,7 @@ h2 .rssicon{
margin:auto;
margin-bottom:5px;
}
- .banner-message div div{
+ .banner-message a span{
width:auto;
}
.head{
diff --git a/_plugins/alerts.rb b/_plugins/alerts.rb
index ec01ad74b2..0ece59d725 100644
--- a/_plugins/alerts.rb
+++ b/_plugins/alerts.rb
@@ -37,7 +37,8 @@ def initialize(site, base, lang, srcdir, src, dstdir, dst, date)
else
self.data['category'] = 'alert'
if self.data.has_key?('banner') and !self.data['banner'].nil? and self.data['banner'].length>0
- site.config['ALERT']='
'+self.data['banner']+''
+ site.config['ALERT']=self.data['banner']
+ site.config['ALERTURL']='/'+dstdir+'/'+dst.gsub('.html','')
end
if self.data.has_key?('active') and !self.data['active'].nil? and self.data['active'] == true
site.config['STATUS']=1