<commit_before>extends ./layout.jade

block additionalStyles
  link(rel='stylesheet', href='https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css')

block content
  div.row
    div.col.s12
      if (!connected)
        h1#heading.center.thin Welcome back, #{locals.displayName}!
        h2.center.thin: a(href='/connect') Get started by connecting a site!
      else
        h1#heading.center.thin Welcome back, #{locals.displayName}!
        if posts.length > 0
          each post in posts.reverse()
            div.row
              div.col.l6.offset-l3.s12
                div.card.facebook
                  div.card-content
                    a(onclick='dismiss("#{post._id}", this)'): i.fa.fa-times.close.grey-text.darken-3
                    div.postInfo
                      p.card-title= post.title                        
                      p.timestamp(data-timestamp='#{post.timestamp}')
                        span= moment(new Date(post.timestamp).toISOString()).fromNow()
                        if post.permalink
                          span &nbsp;&bull;&nbsp;
                            a(href='#{post.permalink}', target='_blank') permalink
                        if post.url
                          span &nbsp;&bull;&nbsp;
                            a(href='#{post.url}', target='_blank') shared link
                    p.content= post.content
                  if post.picture
                    if post.url
                      a(href='#{post.url}', target='_blank')
                        div.card-image(style='background-image: url("#{post.picture}");')
                    else
                      div.card-image(style='background-image: url("#{post.picture}");')
        else
          h5.center.thin (No updates... check back later!)

block additionalScripts
  script(src='/static/js/contentActions.js')
  script(src='/calendar/moment.js')<commit_msg>Show action next to timestamp and links in posts<commit_after>extends ./layout.jade

block additionalStyles
  link(rel='stylesheet', href='https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css')

block content
  div.row
    div.col.s12
      if (!connected)
        h1#heading.center.thin Welcome back, #{locals.displayName}!
        h2.center.thin: a(href='/connect') Get started by connecting a site!
      else
        h1#heading.center.thin Welcome back, #{locals.displayName}!
        if posts.length > 0
          each post in posts.reverse()
            div.row
              div.col.l6.offset-l3.s12
                div.card.facebook
                  div.card-content
                    a(onclick='dismiss("#{post._id}", this)'): i.fa.fa-times.close.grey-text.darken-3
                    div.postInfo
                      p.card-title= post.title                        
                      p.timestamp.truncate(data-timestamp='#{post.timestamp}')
                        span= moment(new Date(post.timestamp).toISOString()).fromNow()
                        if post.permalink
                          span &nbsp;&bull;&nbsp;
                            a(href='#{post.permalink}', target='_blank') permalink
                        if post.url
                          span &nbsp;&bull;&nbsp;
                            a(href='#{post.url}', target='_blank') shared link
                        if post.actionDescription
                          span(title='#{post.actionDescription}') &nbsp;&bull;&nbsp; #{post.actionDescription}
                    p.content= post.content
                  if post.picture
                    if post.url
                      a(href='#{post.url}', target='_blank')
                        div.card-image(style='background-image: url("#{post.picture}");')
                    else
                      div.card-image(style='background-image: url("#{post.picture}");')
        else
          h5.center.thin (No updates... check back later!)

block additionalScripts
  script(src='/static/js/dashboardActions.js')
  script(src='/calendar/moment.js')
{'fraction_non_alphanumeric': 0.1283700222606975, 'fraction_numerical': 0.007420232500618353, 'mean_word_length': 1.549810844892812, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '619069', 'n_tokens_mistral': 1131, 'n_tokens_neox': 1085, 'n_words': 190}