Sha256: f353355fcca00c2be7c4cd5a999278608ee91f3777b6ca107837db57abecaf51

Contents?: true

Size: 743 Bytes

Versions: 11

Compression:

Stored size: 743 Bytes

Contents

:ruby
  container_parts = []
  container_parts << "Received by #{list_names(contributors.receivers)}" if contributors.receivers.any?
  container_parts << citation.publisher if citation.publisher.present?
  container_parts << citation.published_at.mla_datetime if citation.published_at.present?
  container_parts << link_to(citation.url.gsub(%r{https?://}, ''), citation.url).html_safe if citation.url.present?
- if contributors.authors.any?
  = "@#{contributors.authors.first.handle}."
- 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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
works_cited-0.1.10 app/views/works_cited/citation_types/citation/_tweet.html.haml
works_cited-0.1.9 app/views/works_cited/citation_types/citation/_tweet.html.haml
works_cited-0.1.8 app/views/works_cited/citation_types/citation/_tweet.html.haml
works_cited-0.1.7 app/views/works_cited/citation_types/citation/_tweet.html.haml
works_cited-0.1.6 app/views/works_cited/citation_types/citation/_tweet.html.haml
works_cited-0.1.5 app/views/works_cited/citation_types/citation/_tweet.html.haml
works_cited-0.1.4 app/views/works_cited/citation_types/citation/_tweet.html.haml
works_cited-0.1.3 app/views/works_cited/citation_types/citation/_tweet.html.haml
works_cited-0.1.2 app/views/works_cited/citation_types/citation/_tweet.html.haml
works_cited-0.1.1 app/views/works_cited/citation_types/citation/_tweet.html.haml
works_cited-0.1.0 app/views/works_cited/citation_types/citation/_tweet.html.haml