Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7ea9f7c7a4
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (22 sloc) 1.071 kb
%h1 Timeline events
- @timeline_events.each do |e|
= link_to,
- case e.subject_type
- when 'ClothingLog'
- if e.secondary_subject
= "wore #{link_to, e.secondary_subject} on #{link_to, e.subject}".html_safe
- when 'Record'
= "tracked #{link_to e.secondary_subject.full_name, e.secondary_subject} starting #{e.subject.timestamp}".html_safe
- when 'Clothing'
= "created a clothing item #{link_to, e.subject}".html_safe
- when 'Stuff'
= "created stuff #{link_to, e.subject}".html_safe
- when 'LocationHistory'
= "moved #{link_to, e.secondary_subject} to #{link_to, e.subject.location}".html_safe
= link_to e do
= surround '(', ')' do
%time.timeago{:datetime => e.created_at} e.created_at
= will_paginate @timeline_events, :renderer => PaginationListLinkRenderer
Jump to Line
Something went wrong with that request. Please try again.