Snorby/snorby — Issue #165: Tiny design bug in "create_mass_action.html.erb"
Author: ermalm
Created: 2011-11-11 11:07:04+00:00
State: open

After clicking on "Perform mass classification" and the new window pops up, you will see text with html tags:

`Only for this signature: et drop known bot c&c server traffic (group 27) `
`Select classification: (select classification for mass action)`
`Select sensors (optional - blank = all)`

This comes from `snorby/app/views/events/create_mass_action.html.erb` , where the code is as following:

`

<%= check_box_tag("use_sig_id", 1, 1) %>
<%= label_tag "Only for this signature: #{@event.signature.sig_name}".html_safe %>

<%= hidden_field_tag :sig_id, @event.signature.sig_id.to_i %>

`

I'm not sure if the html tags should be inside of the ruby tags, but to fix it, I moved the tags outside `<%= %>` this way (do this on all 3 places):

`

<%= check_box_tag('use_sig_id', 1, 1) %>
Only for this signature:<%= label_tag " #{@event.signature.sig_name} ".html_safe %>

<%= hidden_field_tag :sig_id, @event.signature.sig_id.to_i %>

`