/ shared/_child

/ Variables
/ Timestamp
- timestamp = repo.github_updated_at && repo.github_updated_at.utc

/ Single Repo in Overview
.repo
  / Owner and Name
  = link_to repo do
    span.name = repo.name
    | &nbsp;by&nbsp;
    span.owner = repo.owner

  / Stars
  span.stars
    i.icon-star
    | &nbsp;
    = repo.stars

  / Url, Activity & Toggle Children
  div
    / Url
    span.homepage_url = link_to repo.homepage_url, repo.homepage_url
    link rel="dns-prefetch" href="#{ repo.homepage_url }"

    / Activity
    span.activity class=activity_color(timestamp)
      i.icon-leaf
      | &nbsp;
      abbr.timeago title=timestamp.iso8601 = timestamp.to_s(:long)

  / Description
  .description  = repo.description

  / Stats
  span.knight_score = repo.knight_score
  span.updated_at   = timestamp.iso8601

/ shared/_child

/ Single Repo in Overview
.repo
  / Owner and Name
  = link_to repo do
    span.n = repo.name
    '  by
    span.o = repo.owner

  / Stars
  = stars_mixin(repo.stars)

  / Url, Activity & Toggle Children
  div
    / Url
    span.hp = link_to repo.homepage_url, repo.homepage_url
    link rel="dns-prefetch" href="#{ repo.homepage_url }"

    / Activity
    span.ac class=activity_color(repo.github_updated_at)
      i.icon-leaf
      '
      abbr.timeago title=repo.smart_timestamp = repo.github_updated_at.to_s(:long)

  / Description
  .description  = repo.description

Adjust child partial to reflect repo partial, still duplication
Adjust child partial to reflect repo partial, still duplication

thomasklemm/pluginGeek