app/helpers/application_helper.rb
# returns html markup with source (if any), imported/created time, and - if modified - modified time
returns html markup with source (if any), imported/created time, and - if modified - modified time
returns html markup with source ( if any ) imported / created time and - if modified - modified time
def datestamp(item)
    stamp = "This item was "
    if item.source.nil?
      stamp << "added directly to #{SETTINGS.name}"
    else
      stamp << "imported from " << link_to(truncate(item.source.name, 40), item.source.name)
    end
    stamp << " <br />" << content_tag(:strong, normalize_time(item.created_at, :format => :html) )
    if item.updated_at > item.created_at
      stamp << " and last updated <br />" << content_tag(:strong, normalize_time(item.updated_at, :format => :html) )
    end
    stamp << "."
  end
def datestamp ( item ) stamp = "This item was " if item . source . nil? stamp << "added directly to #{SETTINGS.name}" else stamp << "imported from " << link_to ( truncate ( item . source . name , 40 ) , item . source . name ) end stamp << " <br />" << content_tag ( :strong , normalize_time ( item . created_at , :format => :html ) ) if item . updated_at > item . created_at stamp << " and last updated <br />" << content_tag ( :strong , normalize_time ( item . updated_at , :format => :html ) ) end stamp << "." end
returns html markup with source (if any), imported/created time, and - if modified - modified time
returns html markup with source ( if any ) imported / created time and - if modified - modified time
item