Sha256: 7626cf6a771e65b0934a53c68696fc47c8d9d71408f8d09f51ea23619299ef5f

Contents?: true

Size: 1.64 KB

Versions: 16

Compression:

Stored size: 1.64 KB

Contents

:ruby
  container_parts = []
  container_parts << "Received by #{list_names(contributors.receivers)}" if contributors.receivers.any?
  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.media if citation.media.present?
  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?
  container_parts << content_tag(:em, citation.online_database) if citation.online_database.present?
  container_parts << citation.doi if citation.doi.present?
  container_parts << link_to(citation.url.gsub(%r{https?://}, ''), citation.url).html_safe if citation.url.present?
- if contributors.authors.any?
  = "#{list_names(contributors.authors)}."
- if citation.container_title.present?
  = succeed '."' do
    = succeed citation.title do
      =  '"'
  %em= "#{citation.container_title},"
- else
  = succeed '."' do
    = succeed citation.title do
      =  '"'
= "#{container_parts.join(', ')}.".html_safe
- if citation.accessed_at.present?
  = "Accessed #{citation.accessed_at.mla_date}."

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
works_cited-0.1.16 app/views/works_cited/citation_types/citation/_email.html.haml
works_cited-0.1.15 app/views/works_cited/citation_types/citation/_email.html.haml
works_cited-0.1.14 app/views/works_cited/citation_types/citation/_email.html.haml
works_cited-0.1.13 app/views/works_cited/citation_types/citation/_email.html.haml
works_cited-0.1.11 app/views/works_cited/citation_types/citation/_email.html.haml
works_cited-0.1.10 app/views/works_cited/citation_types/citation/_email.html.haml
works_cited-0.1.9 app/views/works_cited/citation_types/citation/_email.html.haml
works_cited-0.1.8 app/views/works_cited/citation_types/citation/_email.html.haml
works_cited-0.1.7 app/views/works_cited/citation_types/citation/_email.html.haml
works_cited-0.1.6 app/views/works_cited/citation_types/citation/_email.html.haml
works_cited-0.1.5 app/views/works_cited/citation_types/citation/_email.html.haml
works_cited-0.1.4 app/views/works_cited/citation_types/citation/_email.html.haml
works_cited-0.1.3 app/views/works_cited/citation_types/citation/_email.html.haml
works_cited-0.1.2 app/views/works_cited/citation_types/citation/_email.html.haml
works_cited-0.1.1 app/views/works_cited/citation_types/citation/_email.html.haml
works_cited-0.1.0 app/views/works_cited/citation_types/citation/_email.html.haml