extend ../layout

block title
  | #{ person.name }

block content
  .page-header
    h1 #{ person.name }

  p 
    | #{ person.summary }
    a(href="#{person.slug_url}/edit") Edit
  
  pre
    #{ JSON.stringify( person ) }

  h2 Contact details
  
  ul
    for contact in person.contact_details
      li
        b #{ contact.kind }: 
        | #{ contact.value } 
        a(href="#{person.slug_url}/contacts/#{contact.id}/edit") Edit
    li 
      a(href="#{person.slug_url}/contacts/new/edit") create new contact

  h2 Links
  
  ul
    for link in person.links
      li
        a(href=link.url) #{ link.url }: 
        | #{ link.comment } 
        a(href="#{person.slug_url}/links/#{link.id}/edit") Edit
    li 
      a(href="#{person.slug_url}/links/new/edit") create new link

extend ../layout

block title
  | #{ person.name }

block content
  .page-header
    h1 #{ person.name }

  p 
    | #{ person.summary }
    a(href="#{person.slug_url}/edit") Edit
  
  h2 Contact details
  
  ul
    for contact in person.contact_details
      li
        b #{ contact.kind }: 
        | #{ contact.value } 
        a(href="#{person.slug_url}/contacts/#{contact.id}/edit") Edit
    li 
      a(href="#{person.slug_url}/contacts/new/edit") create new contact

  h2 Links
  
  ul
    for link in person.links
      li
        a(href=link.url) #{ link.url }: 
        | #{ link.comment } 
        a(href="#{person.slug_url}/links/#{link.id}/edit") Edit
    li 
      a(href="#{person.slug_url}/links/new/edit") create new link

  h2 Raw data
  
  pre
    #{ JSON.stringify( person ) }


Tidy up person page - but the data dump at the end.
Tidy up person page - but the data dump at the end.
