Sha256: 663bec5aa957bffb935a127543490ed0b654993904e50833415a0a1ba136ea08
Contents?: true
Size: 886 Bytes
Versions: 32
Compression:
Stored size: 886 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 %> <% if cite[:author] %><span class="smallText"><%= h(cite[:author].chomp) -%>.</span> <% end %> <span class="smallText">"<%= h(truncate(cite[:title], :length => 70, :seperator => '...')) %>" <% if cite[:subtitle] %> <%= content_tag( ((@user_request.referent.format =~ /article|journal|issue|report/i) ? 'i' : 'span'), cite[:subtitle]) %> <% end %> <% 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? if pub.length > 0 %> <%= pub.join(' ')%>. <% end %> </span>
Version data entries
32 entries across 32 versions & 1 rubygems