Sha256: a72ad58e637957f7390335761e3d958a650b362700cf49d1b542e39c13ac60dc

Contents?: true

Size: 616 Bytes

Versions: 12

Compression:

Stored size: 616 Bytes

Contents

!!! 5
- nav = render_haml('_nav.haml', self)
- css = render_haml('_css.haml', self)
%html
  %head
    %title Flapjack - Contacts
    = css
  %body
    %div#wrapper
      = nav
      %h1 Contacts
      - if @contacts && !@contacts.empty?
        %table
          %tr
            %th Name
            %th Email
          - @contacts.sort_by {|c| [c.last_name, c.first_name] }.each do |contact|
            %tr
              %td
                - link = "/contacts/#{contact.id}"
                %a(title='contact details' href=link) #{contact.name}
              %td= contact.email
      - else
        %p No contacts

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
flapjack-0.7.1 lib/flapjack/gateways/web/views/contacts.haml
flapjack-0.7.0 lib/flapjack/gateways/web/views/contacts.haml
flapjack-0.6.61 lib/flapjack/gateways/web/views/contacts.haml
flapjack-0.6.60 lib/flapjack/gateways/web/views/contacts.haml
flapjack-0.6.59 lib/flapjack/gateways/web/views/contacts.haml
flapjack-0.6.58 lib/flapjack/gateways/web/views/contacts.haml
flapjack-0.6.57 lib/flapjack/gateways/web/views/contacts.haml
flapjack-0.6.56 lib/flapjack/gateways/web/views/contacts.haml
flapjack-0.6.55 lib/flapjack/gateways/web/views/contacts.haml
flapjack-0.6.54 lib/flapjack/gateways/web/views/contacts.haml
flapjack-0.6.53 lib/flapjack/gateways/web/views/contacts.haml
flapjack-0.6.52 lib/flapjack/gateways/web/views/contacts.haml