show html correctly on activities
[shapado:shapado.git] / app / views / activities / _activity.html.haml
1 -# FIXME: use t('activity.humanized', :user=>user, :action=> action, :target=> target) after styling
2 %article
3   %h2
4     =link_to activity.login, user_path(activity.login||activity.user_id), :class => "pjax", :"data-layout" => "user"
5     %b
6       = activity.humanize_action
7     = link_to find_and_preserve(shapado_auto_link(markdown(activity.target_name), :link_users => true)), activity.url_for_trackable(request.host), :class => "pjax", :"data-layout" => activity.layout_for_trackable
8   %time{:pubdate => "pubdate", :datetime => activity.created_at.iso8601}
9     = t("time.ago", :time => time_ago_in_words(activity.created_at, true))
10     = activity.created_at