Sha256: 508d0f1c12bae4f56ab5ff08e269e54ec5bb7130b0d666243257c1b5aa8afd56

Contents?: true

Size: 776 Bytes

Versions: 4

Compression:

Stored size: 776 Bytes

Contents

-# View to invite friends to a conference.
-# origin: M

= page_head :title => "Invite contacts to ".html_safe + link_to(object.conference.name, object.conference)

#invite_friends
  - if current_user.friends.any?
    %table.grid
      - for friend in current_user.friends
        - friend_name = current_user.name_for(friend)
        %tr{:id => "friend_#{friend.username}"}
          %td.beside_buttons
            = link_to icon(:user, friend_name), friend
          %td
            - buttons do
              = link_to icon(:invite, 'Invite'), invitations_path(:invitation => { :conference_id => object.conference.id, :recipient_id => friend.id }), :method => :post
  - else
    .none
      You have no contacts to invite.

:javascript
  someFunction(#{@some_var.to_json})

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
serum-rails-0.2.1 spec/test_apps/rails-2-3/app/views/invitations/new.html.haml
serum-rails-0.2.0 spec/test_apps/rails-2-3/app/views/invitations/new.html.haml
serum-rails-0.1.1 spec/test_app/app/views/invitations/new.html.haml
serum-rails-0.1.0 spec/test_app/app/views/invitations/new.html.haml