<% event = notification.event.expanded_payload %>
<% target_object, url = if event['package']
  ["#{event['project']}/#{event['package']}",
   url_for(controller: 'webui/package', action: :users, project: event['project'], package: event['package'], only_path: false, host: @host)]
else
  [event['project'],
   url_for(controller: 'webui/project', action: :users, project: event['project'], only_path: false, host: @host)]
end
-%>
<%= "#{event['who']} made #{event.fetch('group', 'you')} #{event['role']} of #{target_object}" %>
Visit <%= url %>.
