Sha256: f9aa04a3703a16fcd7a82beef7474a5ad64d62faf3e890c1fb68aee998ebde24
Contents?: true
Size: 893 Bytes
Versions: 7
Compression:
Stored size: 893 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 << '. Volume: '+cite[:volume] unless cite[:volume].blank? pub << '. Issue: '+cite[:issue] unless cite[:issue].blank? pub << '. Page: '+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
7 entries across 7 versions & 1 rubygems