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

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