for the sake of not repeating something, how about:

````
"alert " +
case level  
when :notice then "alert-info"  
when :success then "alert-success"  
when :error then "alert-danger" 
when :alert then "alert-danger"  
end + " margin10"
````