Sha256: c9c5d0d3669bd04166cd6a96eb34184f0a7d5d2901e4ae24297e1c09337e1977

Contents?: true

Size: 993 Bytes

Versions: 4

Compression:

Stored size: 993 Bytes

Contents

- reader ||= @reader

%div.contact
  - if reader.unshareable?
    - if reader == current_reader
      %p.warning
        = t('reader_extension.you_are_not_shared')
  - else
    %h3
      = link_to reader.name, reader_url(reader, :format => :vcard), :class => 'vcard', :title => t('reader_extension.directory.vcard_link')
      - if reader == current_reader
        %span.note
          = link_to t("reader_extension.edit_profile"), reader_edit_profile_url, :class => 'edit'
    %ul
      - if email = reader.email
        %li
          = t("reader_extension.directory.email") + ': '
          = email_link email
      - %w{phone mobile}.each do |field|
        - if value = reader.send(field.to_sym)
          %li
            = t("reader_extension.directory.#{field}") + ': '
            = value
      - if reader.postal_address?
        %li
          %span.indent
            = t("reader_extension.directory.postal_address") + ': '
          = reader.postal_address.to_html
          
      

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
radiant-reader-extension-3.0.38 app/views/readers/_profile.html.haml
radiant-reader-extension-3.0.37 app/views/readers/_profile.html.haml
radiant-reader-extension-3.0.36 app/views/readers/_profile.html.haml
radiant-reader-extension-3.0.35 app/views/readers/_profile.html.haml