Sha256: 3e7ed7418d486e700b41380794e512f5c5d8c9bf707d65e485662650b6f02be0
Contents?: true
Size: 1.16 KB
Versions: 16
Compression:
Stored size: 1.16 KB
Contents
:ruby container_parts = [] container_parts << content_tag(:em, citation.container_title) container_parts << "Edited by #{list_names(contributors.editors)}" if contributors.editors.any? container_parts << "Compiled by #{list_names(contributors.compilers)}" if contributors.compilers.any? container_parts << "Translated by #{list_names(contributors.translators)}" if contributors.translators.any? container_parts << citation.edition if citation.edition.present? container_parts << citation.volume if citation.volume.present? container_parts << citation.number if citation.number.present? container_parts << citation.publisher if citation.publisher.present? container_parts << citation.year if citation.year.present? container_parts << citation.published_at.mla_date if citation.published_at.present? container_parts << "#{citation.pages}" if citation.pages.present? - if contributors.authors.any? = "#{list_names(contributors.authors)}." - if citation.url.present? = succeed '."' do = succeed link_to(citation.title, citation.url) do = '"' - else = succeed '."' do = succeed citation.title do = '"' = "#{container_parts.join(', ')}.".html_safe
Version data entries
16 entries across 16 versions & 1 rubygems