Sha256: b1d5f91d04b6b7ace95c34b6f65d54d48f65816570985b166bc67962194b829e

Contents?: true

Size: 1.06 KB

Versions: 11

Compression:

Stored size: 1.06 KB

Contents

- if Radiant.config['reader.share_details?']
  - reader ||= @reader
  
  - if reader.unshareable?
    - if reader == current_reader
      %p.warning
        = t('reader_extension.you_are_not_shared')
  - else
    %div.contact
      %h3
        = link_to reader.preferred_name, reader_url(reader, :format => :vcard), :class => 'vcard', :title => t('reader_extension.directory.vcard_link')
      %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
        - if reader == current_reader
          %li.edit
            = link_to t("reader_extension.edit_profile"), reader_edit_profile_url, :class => 'edit'
          

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
radiant-reader-extension-3.0.33 app/views/readers/_profile.html.haml
radiant-reader-extension-3.0.32 app/views/readers/_profile.html.haml
radiant-reader-extension-3.0.31 app/views/readers/_profile.html.haml
radiant-reader-extension-3.0.30 app/views/readers/_profile.html.haml
radiant-reader-extension-3.0.29 app/views/readers/_profile.html.haml
radiant-reader-extension-3.0.28 app/views/readers/_profile.html.haml
radiant-reader-extension-3.0.27 app/views/readers/_profile.html.haml
radiant-reader-extension-3.0.26 app/views/readers/_profile.html.haml
radiant-reader-extension-3.0.25 app/views/readers/_profile.html.haml
radiant-reader-extension-3.0.24 app/views/readers/_profile.html.haml
radiant-reader-extension-3.0.23 app/views/readers/_profile.html.haml