Sha256: a267824b14e228c4130b0c8bb06d3c83b35ba573ec108e1fa7cbef066d2c023e
Contents?: true
Size: 958 Bytes
Versions: 20
Compression:
Stored size: 958 Bytes
Contents
<% # When you need a citation in a tiny amount of space, just the # most important info, displayed compactly. cite = @user_request.referent.to_citation pub = [] pub << '.' << date_format(cite[:date]) unless cite[:date].blank? pub << '. ' + t(:volume).titlecase + ': '+cite[:volume] unless cite[:volume].blank? pub << '. ' + t(:issue).titlecase + ': '+cite[:issue] unless cite[:issue].blank? pub << '. ' + t(:page).titlecase + ': '+cite[:page] unless cite[:page].blank? %> <%= content_tag(:span, h(cite[:author].chomp), :class => "text-small") if cite[:author] %> <%= content_tag(:span, h(truncate(cite[:title], :length => 70, :seperator => '...'), :class => "text-small") %> <%= content_tag(((@user_request.referent.format =~ /article|journal|issue|report/i) ? 'em' : 'span'), cite[:subtitle], :class => "text-small") if cite[:subtitle] %> <%= content_tag(:span, pub.join(' '), :class => "text-small") if pub.length > 0 %>
Version data entries
20 entries across 20 versions & 1 rubygems