Sha256: 4c569c41f58c1de7d9884fdebe6853f5c9d182f97f5febc65e832e2826ad7b96
Contents?: true
Size: 1 KB
Versions: 16
Compression:
Stored size: 1 KB
Contents
%h1 = @citation.citation_type.titleize %small - if @citation.container_title.present? = succeed '"' do = succeed @citation.title do = '"' %em= @citation.container_title - else %em= @citation.title %p#notice= notice %h2 Preview %p= works_cited_citation @citation %h2 Details %dl.dl-works_cited - WorksCited::Citation.columns.each do |column| :ruby value = @citation.send(column.name.to_sym) - if value.present? %dt= WorksCited::Citation.human_attribute_name(column.name) %dd= value - if @citation.works_cited_contributors.any? - WorksCited.configuration.valid_contributor_roles.each do |contributor_role| :ruby plural_role_name = contributor_role.pluralize contributors = @citation.works_cited_contributors.send(plural_role_name.to_sym) - if contributors.any? %dt= plural_role_name.titleize %dd %ul - contributors.each do |contributor| %li= contributor.full_name
Version data entries
16 entries across 16 versions & 1 rubygems