rules: better HTML
rules: rules detail via click

Add javascript code to get rules detailed info via a click on the
message.