Reference code: <%= code.inspect %>
<%
clicked_notifs = Notification.where(reference_code: code).where.not(viewed_at: nil).count
total_notifs = Notification.where(reference_code: code).count
%>
- <%= number_with_delimiter clicked_notifs %> clicked
- <%= number_with_delimiter total_notifs %> total
- <%= clicked_notifs / total_notifs.to_f * 100 %>% clicked