extend layout

block title
  | #{ popit.instance_name() }

block meta_headers
  meta(name='description', content="Welcome to #{ popit.instance_name() }")


block content

  h1 Welcome to #{ popit.instance_name() }

  
      

  #person-summary(class="homepage-summary-box")
    h2 People
    ul
      if persons.length    
        for person in persons
          li 
            a(href="/person/#{person.slug}") #{person.name}
        if person_count > summary_listing_count
          li
            | and 
            a(href="/person") #{ person_count - summary_listing_count } more
    
      else
        li There are no people in the database yet. 
            br
            span.admin-options
              a#new-person(href="#") Add a new person
    
    p
      a(href="/person") Complete list (#{person_count})

  
    
  #organisation-summary(class="homepage-summary-box")
    h2 Organisations
    ul
      if organisations.length    
        for organisation in organisations
          li 
            a(href="/organisation/#{organisation.slug}") #{organisation.name}
        if organisation_count > summary_listing_count
          li
            | and 
            a(href="/organisation") #{ organisation_count - summary_listing_count } more
    
      else
        li There are no people in the database yet. 
          br
          span.admin-options
            a#new-organisation(href="#") Add a new organisation
    
    p
      a(href="/organisation") Complete list (#{organisation_count})

extend layout

block title
  | #{ popit.instance_name() }

block meta_headers
  meta(name='description', content="Welcome to #{ popit.instance_name() }")


block content

  h1 Welcome to #{ popit.instance_name() }

  
      

  #person-summary(class="homepage-summary-box")
    h2 People
    ul
      if persons.length    
        for person in persons
          li 
            a(href="/person/#{person.slug}") #{person.name}
        if person_count > summary_listing_count
          li
            | and 
            a(href="/person") #{ person_count - summary_listing_count } more
    
      else
        li There are no people in the database yet. 
            br
            span.admin-options
              a#new-person(href="#") Add a new person
    
    p
      a(href="/person") Complete list (#{person_count})

  
    
  #organisation-summary(class="homepage-summary-box")
    h2 Organisations
    ul
      if organisations.length    
        for organisation in organisations
          li 
            a(href="/organisation/#{organisation.slug}") #{organisation.name}
        if organisation_count > summary_listing_count
          li
            | and 
            a(href="/organisation") #{ organisation_count - summary_listing_count } more
    
      else
        li There are no organisations in the database yet. 
          br
          span.admin-options
            a#new-organisation(href="#") Add a new organisation
    
    p
      a(href="/organisation") Complete list (#{organisation_count})



  #actions(class="homepage-summary-box")

    div(class="info")
      p
        a(href='#{config.hosting_site_base_url}/info/about') Learn more about PopIt
        |  - the pre-alpha platform that hosts this database.

    div(class="info admin-options")
        a(href="#") Add a new person to the database.

Add call-to-actions links to instance hompage
Add call-to-actions links to instance hompage
